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

GUI2K4.fntUT2k4MidGame


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
class fntUT2k4MidGame 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
{
     FontScreenWidth(0)=2048
     FontScreenWidth(1)=1600
     FontScreenWidth(2)=1280
     FontScreenWidth(3)=1024
     FontScreenWidth(4)=800
     FontScreenWidth(5)=640
     FontScreenWidth(6)=600
     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"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:13:14.000 - Creation time: Wed 7/2/2007 19:16:39.484 - Created with UnCodeX