Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

XInterface.UT2MidGameFont


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
class UT2MidGameFont extends GUIFont;

var int FontScreenWidth[7];

static function Font GetMidGameFont(int xRes)
{
	local int i;
	for(i=0; i<7; i++)
	{
		if ( default.FontScreenWidth[i] <= XRes )
			return LoadFontStatic(i);
	}

	return LoadFontStatic(6);
}

// Same as 
event Font GetFont(int XRes)
{
	return GetMidGameFont(xRes);
}


defaultproperties
{
	KeyName="UT2MidGameFont"

    FontArrayNames(0)="UT2003Fonts.FontEurostile17"
    FontArrayNames(1)="UT2003Fonts.FontEurostile14"
    FontArrayNames(2)="UT2003Fonts.FontEurostile11"
    FontArrayNames(3)="UT2003Fonts.FontEurostile11"
    FontArrayNames(4)="UT2003Fonts.FontEurostile9"
    FontArrayNames(5)="UT2003Fonts.FontNeuzeit9"
    FontArrayNames(6)="UT2003Fonts.FontSmallText"

    FontScreenWidth(0)=2048
    FontScreenWidth(1)=1600
    FontScreenWidth(2)=1280
    FontScreenWidth(3)=1024
    FontScreenWidth(4)=800
    FontScreenWidth(5)=640
    FontScreenWidth(6)=600
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:28.000 - Creation time: Do 14.8.2014 09:58:54.643 - Created with UnCodeX