home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Patche / ut2004-winpatch3204.exe / UT2004-Patch / System / Skaarjpack.u / ScriptText.TextBuffer < prev    next >
Unknown  |  2004-05-10  |  10.5 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 74 a7 01 63 6c 61 73 73 |........|t..class|
|00000010| 20 53 63 6f 72 65 42 6f | 61 72 64 49 6e 76 61 73 | ScoreBo|ardInvas|
|00000020| 69 6f 6e 20 65 78 74 65 | 6e 64 73 20 53 63 6f 72 |ion exte|nds Scor|
|00000030| 65 42 6f 61 72 64 44 65 | 61 74 68 4d 61 74 63 68 |eBoardDe|athMatch|
|00000040| 3b 0d 0a 0d 0a 76 61 72 | 20 6c 6f 63 61 6c 69 7a |;....var| localiz|
|00000050| 65 64 20 73 74 72 69 6e | 67 20 54 65 61 6d 53 63 |ed strin|g TeamSc|
|00000060| 6f 72 65 53 74 72 69 6e | 67 3b 0d 0a 76 61 72 20 |oreStrin|g;..var |
|00000070| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 74 72 69 6e 67 |localize|d string|
|00000080| 20 57 61 76 65 53 74 72 | 69 6e 67 3b 0d 0a 09 0d | WaveStr|ing;....|
|00000090| 0a 66 75 6e 63 74 69 6f | 6e 20 44 72 61 77 54 69 |.functio|n DrawTi|
|000000a0| 74 6c 65 28 43 61 6e 76 | 61 73 20 43 61 6e 76 61 |tle(Canv|as Canva|
|000000b0| 73 2c 20 66 6c 6f 61 74 | 20 48 65 61 64 65 72 4f |s, float| HeaderO|
|000000c0| 66 66 73 65 74 59 2c 20 | 66 6c 6f 61 74 20 50 6c |ffsetY, |float Pl|
|000000d0| 61 79 65 72 41 72 65 61 | 59 2c 20 66 6c 6f 61 74 |ayerArea|Y, float|
|000000e0| 20 50 6c 61 79 65 72 42 | 6f 78 53 69 7a 65 59 29 | PlayerB|oxSizeY)|
|000000f0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |..{...lo|cal stri|
|00000100| 6e 67 20 74 69 74 6c 65 | 73 74 72 69 6e 67 2c 73 |ng title|string,s|
|00000110| 63 6f 72 65 69 6e 66 6f | 73 74 72 69 6e 67 2c 52 |coreinfo|string,R|
|00000120| 65 73 74 61 72 74 53 74 | 72 69 6e 67 3b 0d 0a 09 |estartSt|ring;...|
|00000130| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 54 69 74 6c |local fl|oat Titl|
|00000140| 65 58 4c 2c 53 63 6f 72 | 65 49 6e 66 6f 58 4c 2c |eXL,Scor|eInfoXL,|
|00000150| 59 4c 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 43 61 6e |YL;.....|if ( Can|
|00000160| 76 61 73 2e 43 6c 69 70 | 58 20 3c 20 35 31 32 20 |vas.Clip|X < 512 |
|00000170| 29 0d 0a 09 09 72 65 74 | 75 72 6e 3b 09 0d 0a 0d |)....ret|urn;....|
|00000180| 0a 09 74 69 74 6c 65 73 | 74 72 69 6e 67 20 3d 20 |..titles|tring = |
|00000190| 53 6b 69 6c 6c 4c 65 76 | 65 6c 5b 43 6c 61 6d 70 |SkillLev|el[Clamp|
|000001a0| 28 49 6e 76 61 73 69 6f | 6e 47 61 6d 65 52 65 70 |(Invasio|nGameRep|
|000001b0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 47 52 49 |lication|Info(GRI|
|000001c0| 29 2e 42 61 73 65 44 69 | 66 66 69 63 75 6c 74 79 |).BaseDi|fficulty|
|000001d0| 2c 30 2c 37 29 5d 40 47 | 52 49 2e 47 61 6d 65 4e |,0,7)]@G|RI.GameN|
|000001e0| 61 6d 65 40 57 61 76 65 | 53 74 72 69 6e 67 40 28 |ame@Wave|String@(|
|000001f0| 49 6e 76 61 73 69 6f 6e | 47 61 6d 65 52 65 70 6c |Invasion|GameRepl|
|00000200| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 28 47 52 49 29 |icationI|nfo(GRI)|
|00000210| 2e 57 61 76 65 4e 75 6d | 62 65 72 2b 31 29 24 4d |.WaveNum|ber+1)$M|
|00000220| 61 70 4e 61 6d 65 24 4c | 65 76 65 6c 2e 54 69 74 |apName$L|evel.Tit|
|00000230| 6c 65 3b 0d 0a 09 43 61 | 6e 76 61 73 2e 53 74 72 |le;...Ca|nvas.Str|
|00000240| 4c 65 6e 28 54 69 74 6c | 65 53 74 72 69 6e 67 2c |Len(Titl|eString,|
|00000250| 54 69 74 6c 65 58 4c 2c | 59 4c 29 3b 0d 0a 0d 0a |TitleXL,|YL);....|
|00000260| 09 69 66 20 28 20 47 52 | 49 2e 4d 61 78 4c 69 76 |.if ( GR|I.MaxLiv|
|00000270| 65 73 20 21 3d 20 30 20 | 29 0d 0a 09 09 53 63 6f |es != 0 |)....Sco|
|00000280| 72 65 49 6e 66 6f 53 74 | 72 69 6e 67 20 3d 20 4d |reInfoSt|ring = M|
|00000290| 61 78 4c 69 76 65 73 40 | 47 52 49 2e 4d 61 78 4c |axLives@|GRI.MaxL|
|000002a0| 69 76 65 73 3b 0d 0a 09 | 65 6c 73 65 20 69 66 20 |ives;...|else if |
|000002b0| 28 20 47 52 49 2e 47 6f | 61 6c 53 63 6f 72 65 20 |( GRI.Go|alScore |
|000002c0| 21 3d 20 30 20 29 0d 0a | 09 09 53 63 6f 72 65 49 |!= 0 )..|..ScoreI|
|000002d0| 6e 66 6f 53 74 72 69 6e | 67 20 3d 20 46 72 61 67 |nfoStrin|g = Frag|
|000002e0| 4c 69 6d 69 74 40 47 52 | 49 2e 47 6f 61 6c 53 63 |Limit@GR|I.GoalSc|
|000002f0| 6f 72 65 3b 0d 0a 09 69 | 66 20 28 20 47 52 49 2e |ore;...i|f ( GRI.|
|00000300| 54 69 6d 65 4c 69 6d 69 | 74 20 21 3d 20 30 20 29 |TimeLimi|t != 0 )|
|00000310| 0d 0a 09 09 53 63 6f 72 | 65 49 6e 66 6f 53 74 72 |....Scor|eInfoStr|
|00000320| 69 6e 67 20 3d 20 53 63 | 6f 72 65 49 6e 66 6f 53 |ing = Sc|oreInfoS|
|00000330| 74 72 69 6e 67 40 73 70 | 61 63 65 72 40 54 69 6d |tring@sp|acer@Tim|
|00000340| 65 4c 69 6d 69 74 24 46 | 6f 72 6d 61 74 54 69 6d |eLimit$F|ormatTim|
|00000350| 65 28 47 52 49 2e 52 65 | 6d 61 69 6e 69 6e 67 54 |e(GRI.Re|mainingT|
|00000360| 69 6d 65 29 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |ime);...|else....|
|00000370| 53 63 6f 72 65 49 6e 66 | 6f 53 74 72 69 6e 67 20 |ScoreInf|oString |
|00000380| 3d 20 53 63 6f 72 65 49 | 6e 66 6f 53 74 72 69 6e |= ScoreI|nfoStrin|
|00000390| 67 40 73 70 61 63 65 72 | 40 46 6f 6f 74 65 72 54 |g@spacer|@FooterT|
|000003a0| 65 78 74 40 46 6f 72 6d | 61 74 54 69 6d 65 28 47 |ext@Form|atTime(G|
|000003b0| 52 49 2e 45 6c 61 70 73 | 65 64 54 69 6d 65 29 3b |RI.Elaps|edTime);|
|000003c0| 0d 0a 0d 0a 09 43 61 6e | 76 61 73 2e 44 72 61 77 |.....Can|vas.Draw|
|000003d0| 43 6f 6c 6f 72 20 3d 20 | 48 55 44 43 6c 61 73 73 |Color = |HUDClass|
|000003e0| 2e 64 65 66 61 75 6c 74 | 2e 47 6f 6c 64 43 6f 6c |.default|.GoldCol|
|000003f0| 6f 72 3b 0d 0a 09 69 66 | 20 28 20 55 6e 72 65 61 |or;...if| ( Unrea|
|00000400| 6c 50 6c 61 79 65 72 28 | 4f 77 6e 65 72 29 2e 62 |lPlayer(|Owner).b|
|00000410| 44 69 73 70 6c 61 79 4c | 6f 73 65 72 20 29 0d 0a |DisplayL|oser )..|
|00000420| 09 09 53 63 6f 72 65 49 | 6e 66 6f 53 74 72 69 6e |..ScoreI|nfoStrin|
|00000430| 67 20 3d 20 63 6c 61 73 | 73 27 48 55 44 42 61 73 |g = clas|s'HUDBas|
|00000440| 65 27 2e 64 65 66 61 75 | 6c 74 2e 59 6f 75 76 65 |e'.defau|lt.Youve|
|00000450| 4c 6f 73 74 54 68 65 4d | 61 74 63 68 3b 0d 0a 09 |LostTheM|atch;...|
|00000460| 65 6c 73 65 20 69 66 20 | 28 20 55 6e 72 65 61 6c |else if |( Unreal|
|00000470| 50 6c 61 79 65 72 28 4f | 77 6e 65 72 29 2e 62 44 |Player(O|wner).bD|
|00000480| 69 73 70 6c 61 79 57 69 | 6e 6e 65 72 20 29 0d 0a |isplayWi|nner )..|
|00000490| 09 09 53 63 6f 72 65 49 | 6e 66 6f 53 74 72 69 6e |..ScoreI|nfoStrin|
|000004a0| 67 20 3d 20 63 6c 61 73 | 73 27 48 55 44 42 61 73 |g = clas|s'HUDBas|
|000004b0| 65 27 2e 64 65 66 61 75 | 6c 74 2e 59 6f 75 76 65 |e'.defau|lt.Youve|
|000004c0| 57 6f 6e 54 68 65 4d 61 | 74 63 68 3b 0d 0a 09 65 |WonTheMa|tch;...e|
|000004d0| 6c 73 65 20 69 66 20 28 | 20 50 6c 61 79 65 72 43 |lse if (| PlayerC|
|000004e0| 6f 6e 74 72 6f 6c 6c 65 | 72 28 4f 77 6e 65 72 29 |ontrolle|r(Owner)|
|000004f0| 2e 49 73 44 65 61 64 28 | 29 20 29 0d 0a 09 7b 0d |.IsDead(|) )...{.|
|00000500| 0a 09 09 52 65 73 74 61 | 72 74 53 74 72 69 6e 67 |...Resta|rtString|
|00000510| 20 3d 20 52 65 73 74 61 | 72 74 3b 0d 0a 09 09 69 | = Resta|rt;....i|
|00000520| 66 20 28 20 50 6c 61 79 | 65 72 43 6f 6e 74 72 6f |f ( Play|erContro|
|00000530| 6c 6c 65 72 28 4f 77 6e | 65 72 29 2e 50 6c 61 79 |ller(Own|er).Play|
|00000540| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000550| 6f 2e 62 4f 75 74 4f 66 | 4c 69 76 65 73 20 29 0d |o.bOutOf|Lives ).|
|00000560| 0a 09 09 09 52 65 73 74 | 61 72 74 53 74 72 69 6e |....Rest|artStrin|
|00000570| 67 20 3d 20 4f 75 74 46 | 69 72 65 54 65 78 74 3b |g = OutF|ireText;|
|00000580| 0d 0a 09 09 69 66 20 28 | 20 43 61 6e 76 61 73 2e |....if (| Canvas.|
|00000590| 43 6c 69 70 59 20 2d 20 | 48 65 61 64 65 72 4f 66 |ClipY - |HeaderOf|
|000005a0| 66 73 65 74 59 20 2d 20 | 50 6c 61 79 65 72 41 72 |fsetY - |PlayerAr|
|000005b0| 65 61 59 20 3e 3d 20 32 | 2e 35 20 2a 20 59 4c 20 |eaY >= 2|.5 * YL |
|000005c0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 43 61 6e 76 61 |)....{..|...Canva|
|000005d0| 73 2e 53 74 72 4c 65 6e | 28 52 65 73 74 61 72 74 |s.StrLen|(Restart|
|000005e0| 53 74 72 69 6e 67 2c 53 | 63 6f 72 65 49 6e 66 6f |String,S|coreInfo|
|000005f0| 58 4c 2c 59 4c 29 3b 0d | 0a 09 09 09 43 61 6e 76 |XL,YL);.|....Canv|
|00000600| 61 73 2e 53 65 74 50 6f | 73 28 30 2e 35 2a 28 43 |as.SetPo|s(0.5*(C|
|00000610| 61 6e 76 61 73 2e 43 6c | 69 70 58 2d 53 63 6f 72 |anvas.Cl|ipX-Scor|
|00000620| 65 49 6e 66 6f 58 4c 29 | 2c 20 43 61 6e 76 61 73 |eInfoXL)|, Canvas|
|00000630| 2e 43 6c 69 70 59 20 2d | 20 32 2e 35 20 2a 20 59 |.ClipY -| 2.5 * Y|
|00000640| 4c 29 3b 0d 0a 09 09 09 | 43 61 6e 76 61 73 2e 44 |L);.....|Canvas.D|
|00000650| 72 61 77 54 65 78 74 28 | 52 65 73 74 61 72 74 53 |rawText(|RestartS|
|00000660| 74 72 69 6e 67 2c 74 72 | 75 65 29 3b 0d 0a 09 09 |tring,tr|ue);....|
|00000670| 7d 09 09 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |}......e|lse.....|
|00000680| 53 63 6f 72 65 49 6e 66 | 6f 53 74 72 69 6e 67 20 |ScoreInf|oString |
|00000690| 3d 20 52 65 73 74 61 72 | 74 53 74 72 69 6e 67 3b |= Restar|tString;|
|000006a0| 0d 0a 09 7d 0d 0a 09 43 | 61 6e 76 61 73 2e 53 74 |...}...C|anvas.St|
|000006b0| 72 4c 65 6e 28 53 63 6f | 72 65 49 6e 66 6f 53 74 |rLen(Sco|reInfoSt|
|000006c0| 72 69 6e 67 2c 53 63 6f | 72 65 49 6e 66 6f 58 4c |ring,Sco|reInfoXL|
|000006d0| 2c 59 4c 29 3b 0d 0a 09 | 0d 0a 09 43 61 6e 76 61 |,YL);...|...Canva|
|000006e0| 73 2e 53 65 74 50 6f 73 | 28 30 2e 35 2a 28 43 61 |s.SetPos|(0.5*(Ca|
|000006f0| 6e 76 61 73 2e 43 6c 69 | 70 58 2d 54 69 74 6c 65 |nvas.Cli|pX-Title|
|00000700| 58 4c 29 2c 20 28 28 48 | 65 61 64 65 72 4f 66 66 |XL), ((H|eaderOff|
|00000710| 73 65 74 59 2d 50 6c 61 | 79 65 72 42 6f 78 53 69 |setY-Pla|yerBoxSi|
|00000720| 7a 65 59 29 20 2d 20 59 | 4c 29 2a 30 2e 35 20 29 |zeY) - Y|L)*0.5 )|
|00000730| 3b 0d 0a 09 2f 2f 43 61 | 6e 76 61 73 2e 53 65 74 |;...//Ca|nvas.Set|
|00000740| 50 6f 73 28 30 2e 35 2a | 28 43 61 6e 76 61 73 2e |Pos(0.5*|(Canvas.|
|00000750| 43 6c 69 70 58 2d 54 69 | 74 6c 65 58 4c 29 2c 20 |ClipX-Ti|tleXL), |
|00000760| 30 2e 35 2a 59 4c 29 3b | 0d 0a 09 43 61 6e 76 61 |0.5*YL);|...Canva|
|00000770| 73 2e 44 72 61 77 54 65 | 78 74 28 54 69 74 6c 65 |s.DrawTe|xt(Title|
|00000780| 53 74 72 69 6e 67 2c 74 | 72 75 65 29 3b 0d 0a 09 |String,t|rue);...|
|00000790| 43 61 6e 76 61 73 2e 53 | 65 74 50 6f 73 28 30 2e |Canvas.S|etPos(0.|
|000007a0| 35 2a 28 43 61 6e 76 61 | 73 2e 43 6c 69 70 58 2d |5*(Canva|s.ClipX-|
|000007b0| 53 63 6f 72 65 49 6e 66 | 6f 58 4c 29 2c 20 43 61 |ScoreInf|oXL), Ca|
|000007c0| 6e 76 61 73 2e 43 6c 69 | 70 59 20 2d 20 31 2e 35 |nvas.Cli|pY - 1.5|
|000007d0| 20 2a 20 59 4c 29 3b 0d | 0a 09 43 61 6e 76 61 73 | * YL);.|..Canvas|
|000007e0| 2e 44 72 61 77 54 65 78 | 74 28 53 63 6f 72 65 49 |.DrawTex|t(ScoreI|
|000007f0| 6e 66 6f 53 74 72 69 6e | 67 2c 74 72 75 65 29 3b |nfoStrin|g,true);|
|00000800| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00000810| 20 65 76 65 6e 74 20 55 | 70 64 61 74 65 53 63 6f | event U|pdateSco|
|00000820| 72 65 42 6f 61 72 64 28 | 43 61 6e 76 61 73 20 43 |reBoard(|Canvas C|
|00000830| 61 6e 76 61 73 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |anvas)..|{...loca|
|00000840| 6c 20 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |l Player|Replicat|
|00000850| 69 6f 6e 49 6e 66 6f 20 | 50 52 49 2c 20 4f 77 6e |ionInfo |PRI, Own|
|00000860| 65 72 50 52 49 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |erPRI;..|.local i|
|00000870| 6e 74 20 69 2c 20 46 6f | 6e 74 52 65 64 75 63 74 |nt i, Fo|ntReduct|
|00000880| 69 6f 6e 2c 20 4f 77 6e | 65 72 50 6f 73 2c 20 4e |ion, Own|erPos, N|
|00000890| 65 74 58 50 6f 73 2c 20 | 50 6c 61 79 65 72 43 6f |etXPos, |PlayerCo|
|000008a0| 75 6e 74 2c 48 65 61 64 | 65 72 4f 66 66 73 65 74 |unt,Head|erOffset|
|000008b0| 59 2c 48 65 61 64 46 6f | 6f 74 2c 20 4d 65 73 73 |Y,HeadFo|ot, Mess|
|000008c0| 61 67 65 46 6f 6f 74 2c | 20 50 6c 61 79 65 72 42 |ageFoot,| PlayerB|
|000008d0| 6f 78 53 69 7a 65 59 2c | 20 42 6f 78 53 70 61 63 |oxSizeY,| BoxSpac|
|000008e0| 65 59 2c 20 4e 61 6d 65 | 58 50 6f 73 2c 20 42 6f |eY, Name|XPos, Bo|
|000008f0| 78 54 65 78 74 4f 66 66 | 73 65 74 59 2c 20 4f 77 |xTextOff|setY, Ow|
|00000900| 6e 65 72 4f 66 66 73 65 | 74 2c 20 53 63 6f 72 65 |nerOffse|t, Score|
|00000910| 58 50 6f 73 2c 20 44 65 | 61 74 68 73 58 50 6f 73 |XPos, De|athsXPos|
|00000920| 2c 20 42 6f 78 58 50 6f | 73 2c 20 54 69 74 6c 65 |, BoxXPo|s, Title|
|00000930| 59 50 6f 73 2c 20 42 6f | 78 57 69 64 74 68 3b 0d |YPos, Bo|xWidth;.|
|00000940| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 58 4c |..local |float XL|
|00000950| 2c 59 4c 2c 20 4d 61 78 | 53 63 61 6c 69 6e 67 3b |,YL, Max|Scaling;|
|00000960| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 64 |...local| float d|
|00000970| 65 61 74 68 73 58 4c 2c | 20 73 63 6f 72 65 58 4c |eathsXL,| scoreXL|
|00000980| 2c 20 6e 65 74 58 4c 2c | 20 4d 61 78 4e 61 6d 65 |, netXL,| MaxName|
|00000990| 50 6f 73 3b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |Pos;...l|ocal str|
|000009a0| 69 6e 67 20 70 6c 61 79 | 65 72 6e 61 6d 65 5b 4d |ing play|ername[M|
|000009b0| 41 58 50 4c 41 59 45 52 | 53 5d 3b 0d 0a 09 6c 6f |AXPLAYER|S];...lo|
|000009c0| 63 61 6c 20 62 6f 6f 6c | 20 62 4e 61 6d 65 46 6f |cal bool| bNameFo|
|000009d0| 6e 74 52 65 64 75 63 74 | 69 6f 6e 3b 0d 0a 09 0d |ntReduct|ion;....|
|000009e0| 0a 09 4f 77 6e 65 72 50 | 52 49 20 3d 20 50 6c 61 |..OwnerP|RI = Pla|
|000009f0| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 4f 77 |yerContr|oller(Ow|
|00000a00| 6e 65 72 29 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ner).Pla|yerRepli|
|00000a10| 63 61 74 69 6f 6e 49 6e | 66 6f 3b 0d 0a 20 20 20 |cationIn|fo;.. |
|00000a20| 20 66 6f 72 20 28 69 3d | 30 3b 20 69 3c 47 52 49 | for (i=|0; i<GRI|
|00000a30| 2e 50 52 49 41 72 72 61 | 79 2e 4c 65 6e 67 74 68 |.PRIArra|y.Length|
|00000a40| 3b 20 69 2b 2b 29 0d 0a | 09 7b 0d 0a 09 09 50 52 |; i++)..|.{....PR|
|00000a50| 49 20 3d 20 47 52 49 2e | 50 52 49 41 72 72 61 79 |I = GRI.|PRIArray|
|00000a60| 5b 69 5d 3b 0d 0a 09 09 | 69 66 20 28 20 21 50 52 |[i];....|if ( !PR|
|00000a70| 49 2e 62 4f 6e 6c 79 53 | 70 65 63 74 61 74 6f 72 |I.bOnlyS|pectator|
|00000a80| 20 26 26 20 28 21 50 52 | 49 2e 62 49 73 53 70 65 | && (!PR|I.bIsSpe|
|00000a90| 63 74 61 74 6f 72 20 7c | 7c 20 50 52 49 2e 62 57 |ctator ||| PRI.bW|
|00000aa0| 61 69 74 69 6e 67 50 6c | 61 79 65 72 29 20 29 0d |aitingPl|ayer) ).|
|00000ab0| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 50 52 |...{....|.if ( PR|
|00000ac0| 49 20 3d 3d 20 4f 77 6e | 65 72 50 52 49 20 29 0d |I == Own|erPRI ).|
|00000ad0| 0a 09 09 09 09 4f 77 6e | 65 72 4f 66 66 73 65 74 |.....Own|erOffset|
|00000ae0| 20 3d 20 69 3b 0d 0a 09 | 09 09 50 6c 61 79 65 72 | = i;...|..Player|
|00000af0| 43 6f 75 6e 74 2b 2b 3b | 0d 0a 09 09 7d 0d 0a 09 |Count++;|....}...|
|00000b00| 7d 0d 0a 09 50 6c 61 79 | 65 72 43 6f 75 6e 74 20 |}...Play|erCount |
|00000b10| 3d 20 4d 69 6e 28 50 6c | 61 79 65 72 43 6f 75 6e |= Min(Pl|ayerCoun|
|00000b20| 74 2c 4d 41 58 50 4c 41 | 59 45 52 53 29 3b 0d 0a |t,MAXPLA|YERS);..|
|00000b30| 09 0d 0a 09 2f 2f 20 53 | 65 6c 65 63 74 20 62 65 |....// S|elect be|
|00000b40| 73 74 20 66 6f 6e 74 20 | 73 69 7a 65 20 61 6e 64 |st font |size and|
|00000b50| 20 62 6f 78 20 73 69 7a | 65 20 74 6f 20 66 69 74 | box siz|e to fit|
|00000b60| 20 61 73 20 6d 61 6e 79 | 20 70 6c 61 79 65 72 73 | as many| players|
|00000b70| 20 61 73 20 70 6f 73 73 | 69 62 6c 65 20 6f 6e 20 | as poss|ible on |
|00000b80| 73 63 72 65 65 6e 0d 0a | 09 43 61 6e 76 61 73 2e |screen..|.Canvas.|
|00000b90| 46 6f 6e 74 20 3d 20 48 | 55 44 43 6c 61 73 73 2e |Font = H|UDClass.|
|00000ba0| 73 74 61 74 69 63 2e 47 | 65 74 4d 65 64 69 75 6d |static.G|etMedium|
|00000bb0| 46 6f 6e 74 46 6f 72 28 | 43 61 6e 76 61 73 29 3b |FontFor(|Canvas);|
|00000bc0| 0d 0a 09 43 61 6e 76 61 | 73 2e 53 74 72 4c 65 6e |...Canva|s.StrLen|
|00000bd0| 28 22 54 65 73 74 22 2c | 20 58 4c 2c 20 59 4c 29 |("Test",| XL, YL)|
|00000be0| 3b 0d 0a 09 42 6f 78 53 | 70 61 63 65 59 20 3d 20 |;...BoxS|paceY = |
|00000bf0| 30 2e 32 35 20 2a 20 59 | 4c 3b 0d 0a 09 50 6c 61 |0.25 * Y|L;...Pla|
|00000c00| 79 65 72 42 6f 78 53 69 | 7a 65 59 20 3d 20 31 2e |yerBoxSi|zeY = 1.|
|00000c10| 35 20 2a 20 59 4c 3b 0d | 0a 09 48 65 61 64 46 6f |5 * YL;.|..HeadFo|
|00000c20| 6f 74 20 3d 20 37 2a 59 | 4c 3b 0d 0a 09 4d 65 73 |ot = 7*Y|L;...Mes|
|00000c30| 73 61 67 65 46 6f 6f 74 | 20 3d 20 31 2e 35 20 2a |sageFoot| = 1.5 *|
|00000c40| 20 48 65 61 64 46 6f 6f | 74 3b 0d 0a 09 69 66 20 | HeadFoo|t;...if |
|00000c50| 28 20 50 6c 61 79 65 72 | 43 6f 75 6e 74 20 3e 20 |( Player|Count > |
|00000c60| 28 43 61 6e 76 61 73 2e | 43 6c 69 70 59 20 2d 20 |(Canvas.|ClipY - |
|00000c70| 31 2e 35 20 2a 20 48 65 | 61 64 46 6f 6f 74 29 2f |1.5 * He|adFoot)/|
|00000c80| 28 50 6c 61 79 65 72 42 | 6f 78 53 69 7a 65 59 20 |(PlayerB|oxSizeY |
|00000c90| 2b 20 42 6f 78 53 70 61 | 63 65 59 29 20 29 0d 0a |+ BoxSpa|ceY) )..|
|00000ca0| 09 7b 0d 0a 09 09 42 6f | 78 53 70 61 63 65 59 20 |.{....Bo|xSpaceY |
|00000cb0| 3d 20 30 2e 31 32 35 20 | 2a 20 59 4c 3b 0d 0a 09 |= 0.125 |* YL;...|
|00000cc0| 09 50 6c 61 79 65 72 42 | 6f 78 53 69 7a 65 59 20 |.PlayerB|oxSizeY |
|00000cd0| 3d 20 31 2e 32 35 20 2a | 20 59 4c 3b 0d 0a 09 09 |= 1.25 *| YL;....|
|00000ce0| 69 66 20 28 20 50 6c 61 | 79 65 72 43 6f 75 6e 74 |if ( Pla|yerCount|
|00000cf0| 20 3e 20 28 43 61 6e 76 | 61 73 2e 43 6c 69 70 59 | > (Canv|as.ClipY|
|00000d00| 20 2d 20 31 2e 35 20 2a | 20 48 65 61 64 46 6f 6f | - 1.5 *| HeadFoo|
|00000d10| 74 29 2f 28 50 6c 61 79 | 65 72 42 6f 78 53 69 7a |t)/(Play|erBoxSiz|
|00000d20| 65 59 20 2b 20 42 6f 78 | 53 70 61 63 65 59 29 20 |eY + Box|SpaceY) |
|00000d30| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |)....{..|...if ( |
|00000d40| 50 6c 61 79 65 72 43 6f | 75 6e 74 20 3e 20 28 43 |PlayerCo|unt > (C|
|00000d50| 61 6e 76 61 73 2e 43 6c | 69 70 59 20 2d 20 31 2e |anvas.Cl|ipY - 1.|
|00000d60| 35 20 2a 20 48 65 61 64 | 46 6f 6f 74 29 2f 28 50 |5 * Head|Foot)/(P|
|00000d70| 6c 61 79 65 72 42 6f 78 | 53 69 7a 65 59 20 2b 20 |layerBox|SizeY + |
|00000d80| 42 6f 78 53 70 61 63 65 | 59 29 20 29 0d 0a 09 09 |BoxSpace|Y) )....|
|00000d90| 09 09 50 6c 61 79 65 72 | 42 6f 78 53 69 7a 65 59 |..Player|BoxSizeY|
|00000da0| 20 3d 20 31 2e 31 32 35 | 20 2a 20 59 4c 3b 0d 0a | = 1.125| * YL;..|
|00000db0| 09 09 09 69 66 20 28 20 | 50 6c 61 79 65 72 43 6f |...if ( |PlayerCo|
|00000dc0| 75 6e 74 20 3e 20 28 43 | 61 6e 76 61 73 2e 43 6c |unt > (C|anvas.Cl|
|00000dd0| 69 70 59 20 2d 20 31 2e | 35 20 2a 20 48 65 61 64 |ipY - 1.|5 * Head|
|00000de0| 46 6f 6f 74 29 2f 28 50 | 6c 61 79 65 72 42 6f 78 |Foot)/(P|layerBox|
|00000df0| 53 69 7a 65 59 20 2b 20 | 42 6f 78 53 70 61 63 65 |SizeY + |BoxSpace|
|00000e00| 59 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |Y) )....|.{......|
|00000e10| 46 6f 6e 74 52 65 64 75 | 63 74 69 6f 6e 2b 2b 3b |FontRedu|ction++;|
|00000e20| 0d 0a 09 09 09 09 43 61 | 6e 76 61 73 2e 46 6f 6e |......Ca|nvas.Fon|
|00000e30| 74 20 3d 20 47 65 74 53 | 6d 61 6c 6c 65 72 46 6f |t = GetS|mallerFo|
|00000e40| 6e 74 46 6f 72 28 43 61 | 6e 76 61 73 2c 46 6f 6e |ntFor(Ca|nvas,Fon|
|00000e50| 74 52 65 64 75 63 74 69 | 6f 6e 29 3b 20 0d 0a 09 |tReducti|on); ...|
|00000e60| 09 09 09 43 61 6e 76 61 | 73 2e 53 74 72 4c 65 6e |...Canva|s.StrLen|
|00000e70| 28 22 54 65 73 74 22 2c | 20 58 4c 2c 20 59 4c 29 |("Test",| XL, YL)|
|00000e80| 3b 0d 0a 09 09 09 09 42 | 6f 78 53 70 61 63 65 59 |;......B|oxSpaceY|
|00000e90| 20 3d 20 30 2e 31 32 35 | 20 2a 20 59 4c 3b 0d 0a | = 0.125| * YL;..|
|00000ea0| 09 09 09 09 50 6c 61 79 | 65 72 42 6f 78 53 69 7a |....Play|erBoxSiz|
|00000eb0| 65 59 20 3d 20 31 2e 31 | 32 35 20 2a 20 59 4c 3b |eY = 1.1|25 * YL;|
|00000ec0| 0d 0a 09 09 09 09 48 65 | 61 64 46 6f 6f 74 20 3d |......He|adFoot =|
|00000ed0| 20 37 2a 59 4c 3b 0d 0a | 09 09 09 09 69 66 20 28 | 7*YL;..|....if (|
|00000ee0| 20 50 6c 61 79 65 72 43 | 6f 75 6e 74 20 3e 20 28 | PlayerC|ount > (|
|00000ef0| 43 61 6e 76 61 73 2e 43 | 6c 69 70 59 20 2d 20 48 |Canvas.C|lipY - H|
|00000f00| 65 61 64 46 6f 6f 74 29 | 2f 28 50 6c 61 79 65 72 |eadFoot)|/(Player|
|00000f10| 42 6f 78 53 69 7a 65 59 | 20 2b 20 42 6f 78 53 70 |BoxSizeY| + BoxSp|
|00000f20| 61 63 65 59 29 20 29 0d | 0a 09 09 09 09 7b 0d 0a |aceY) ).|.....{..|
|00000f30| 09 09 09 09 09 46 6f 6e | 74 52 65 64 75 63 74 69 |.....Fon|tReducti|
|00000f40| 6f 6e 2b 2b 3b 0d 0a 09 | 09 09 09 09 43 61 6e 76 |on++;...|....Canv|
|00000f50| 61 73 2e 46 6f 6e 74 20 | 3d 20 47 65 74 53 6d 61 |as.Font |= GetSma|
|00000f60| 6c 6c 65 72 46 6f 6e 74 | 46 6f 72 28 43 61 6e 76 |llerFont|For(Canv|
|00000f70| 61 73 2c 46 6f 6e 74 52 | 65 64 75 63 74 69 6f 6e |as,FontR|eduction|
|00000f80| 29 3b 20 0d 0a 09 09 09 | 09 09 43 61 6e 76 61 73 |); .....|..Canvas|
|00000f90| 2e 53 74 72 4c 65 6e 28 | 22 54 65 73 74 22 2c 20 |.StrLen(|"Test", |
|00000fa0| 58 4c 2c 20 59 4c 29 3b | 0d 0a 09 09 09 09 09 42 |XL, YL);|.......B|
|00000fb0| 6f 78 53 70 61 63 65 59 | 20 3d 20 30 2e 31 32 35 |oxSpaceY| = 0.125|
|00000fc0| 20 2a 20 59 4c 3b 0d 0a | 09 09 09 09 09 50 6c 61 | * YL;..|.....Pla|
|00000fd0| 79 65 72 42 6f 78 53 69 | 7a 65 59 20 3d 20 31 2e |yerBoxSi|zeY = 1.|
|00000fe0| 31 32 35 20 2a 20 59 4c | 3b 0d 0a 09 09 09 09 09 |125 * YL|;.......|
|00000ff0| 48 65 61 64 46 6f 6f 74 | 20 3d 20 37 2a 59 4c 3b |HeadFoot| = 7*YL;|
|00001000| 0d 0a 09 09 09 09 09 69 | 66 20 28 20 28 43 61 6e |.......i|f ( (Can|
|00001010| 76 61 73 2e 43 6c 69 70 | 59 20 3e 3d 20 37 36 38 |vas.Clip|Y >= 768|
|00001020| 29 20 26 26 20 28 50 6c | 61 79 65 72 43 6f 75 6e |) && (Pl|ayerCoun|
|00001030| 74 20 3e 20 28 43 61 6e | 76 61 73 2e 43 6c 69 70 |t > (Can|vas.Clip|
|00001040| 59 20 2d 20 48 65 61 64 | 46 6f 6f 74 29 2f 28 50 |Y - Head|Foot)/(P|
|00001050| 6c 61 79 65 72 42 6f 78 | 53 69 7a 65 59 20 2b 20 |layerBox|SizeY + |
|00001060| 42 6f 78 53 70 61 63 65 | 59 29 29 20 29 0d 0a 09 |BoxSpace|Y)) )...|
|00001070| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 09 46 6f 6e |....{...|.....Fon|
|00001080| 74 52 65 64 75 63 74 69 | 6f 6e 2b 2b 3b 0d 0a 09 |tReducti|on++;...|
|00001090| 09 09 09 09 09 43 61 6e | 76 61 73 2e 46 6f 6e 74 |.....Can|vas.Font|
|000010a0| 20 3d 20 47 65 74 53 6d | 61 6c 6c 65 72 46 6f 6e | = GetSm|allerFon|
|000010b0| 74 46 6f 72 28 43 61 6e | 76 61 73 2c 46 6f 6e 74 |tFor(Can|vas,Font|
|000010c0| 52 65 64 75 63 74 69 6f | 6e 29 3b 20 0d 0a 09 09 |Reductio|n); ....|
|000010d0| 09 09 09 09 43 61 6e 76 | 61 73 2e 53 74 72 4c 65 |....Canv|as.StrLe|
|000010e0| 6e 28 22 54 65 73 74 22 | 2c 20 58 4c 2c 20 59 4c |n("Test"|, XL, YL|
|000010f0| 29 3b 0d 0a 09 09 09 09 | 09 09 42 6f 78 53 70 61 |);......|..BoxSpa|
|00001100| 63 65 59 20 3d 20 30 2e | 31 32 35 20 2a 20 59 4c |ceY = 0.|125 * YL|
|00001110| 3b 0d 0a 09 09 09 09 09 | 09 50 6c 61 79 65 72 42 |;.......|.PlayerB|
|00001120| 6f 78 53 69 7a 65 59 20 | 3d 20 31 2e 31 32 35 20 |oxSizeY |= 1.125 |
|00001130| 2a 20 59 4c 3b 0d 0a 09 | 09 09 09 09 09 48 65 61 |* YL;...|.....Hea|
|00001140| 64 46 6f 6f 74 20 3d 20 | 37 2a 59 4c 3b 0d 0a 09 |dFoot = |7*YL;...|
|00001150| 09 09 09 09 7d 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |....}...|...}....|
|00001160| 09 7d 09 0d 0a 09 09 7d | 09 0d 0a 09 7d 09 0d 0a |.}.....}|....}...|
|00001170| 09 69 66 20 28 20 43 61 | 6e 76 61 73 2e 43 6c 69 |.if ( Ca|nvas.Cli|
|00001180| 70 58 20 3c 20 35 31 32 | 20 29 0d 0a 09 09 50 6c |pX < 512| )....Pl|
|00001190| 61 79 65 72 43 6f 75 6e | 74 20 3d 20 4d 69 6e 28 |ayerCoun|t = Min(|
|000011a0| 50 6c 61 79 65 72 43 6f | 75 6e 74 2c 20 31 2b 28 |PlayerCo|unt, 1+(|
|000011b0| 43 61 6e 76 61 73 2e 43 | 6c 69 70 59 20 2d 20 48 |Canvas.C|lipY - H|
|000011c0| 65 61 64 46 6f 6f 74 29 | 2f 28 50 6c 61 79 65 72 |eadFoot)|/(Player|
|000011d0| 42 6f 78 53 69 7a 65 59 | 20 2b 20 42 6f 78 53 70 |BoxSizeY| + BoxSp|
|000011e0| 61 63 65 59 29 20 29 3b | 0d 0a 09 65 6c 73 65 0d |aceY) );|...else.|
|000011f0| 0a 09 09 50 6c 61 79 65 | 72 43 6f 75 6e 74 20 3d |...Playe|rCount =|
|00001200| 20 4d 69 6e 28 50 6c 61 | 79 65 72 43 6f 75 6e 74 | Min(Pla|yerCount|
|00001210| 2c 20 28 43 61 6e 76 61 | 73 2e 43 6c 69 70 59 20 |, (Canva|s.ClipY |
|00001220| 2d 20 48 65 61 64 46 6f | 6f 74 29 2f 28 50 6c 61 |- HeadFo|ot)/(Pla|
|00001230| 79 65 72 42 6f 78 53 69 | 7a 65 59 20 2b 20 42 6f |yerBoxSi|zeY + Bo|
|00001240| 78 53 70 61 63 65 59 29 | 20 29 3b 0d 0a 09 69 66 |xSpaceY)| );...if|
|00001250| 20 28 20 4f 77 6e 65 72 | 4f 66 66 73 65 74 20 3e | ( Owner|Offset >|
|00001260| 3d 20 50 6c 61 79 65 72 | 43 6f 75 6e 74 20 29 0d |= Player|Count ).|
|00001270| 0a 09 09 50 6c 61 79 65 | 72 43 6f 75 6e 74 20 2d |...Playe|rCount -|
|00001280| 3d 20 31 3b 0d 0a 0d 0a | 09 69 66 20 28 20 46 6f |= 1;....|.if ( Fo|
|00001290| 6e 74 52 65 64 75 63 74 | 69 6f 6e 20 3e 20 32 20 |ntReduct|ion > 2 |
|000012a0| 29 0d 0a 09 09 4d 61 78 | 53 63 61 6c 69 6e 67 20 |)....Max|Scaling |
|000012b0| 3d 20 33 3b 09 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |= 3;....|else....|
|000012c0| 4d 61 78 53 63 61 6c 69 | 6e 67 20 3d 20 32 2e 31 |MaxScali|ng = 2.1|
|000012d0| 32 35 3b 0d 0a 09 50 6c | 61 79 65 72 42 6f 78 53 |25;...Pl|ayerBoxS|
|000012e0| 69 7a 65 59 20 3d 20 46 | 43 6c 61 6d 70 28 28 31 |izeY = F|Clamp((1|
|000012f0| 2b 28 43 61 6e 76 61 73 | 2e 43 6c 69 70 59 20 2d |+(Canvas|.ClipY -|
|00001300| 20 30 2e 36 37 20 2a 20 | 4d 65 73 73 61 67 65 46 | 0.67 * |MessageF|
|00001310| 6f 6f 74 29 29 2f 50 6c | 61 79 65 72 43 6f 75 6e |oot))/Pl|ayerCoun|
|00001320| 74 20 2d 20 42 6f 78 53 | 70 61 63 65 59 2c 20 50 |t - BoxS|paceY, P|
|00001330| 6c 61 79 65 72 42 6f 78 | 53 69 7a 65 59 2c 20 4d |layerBox|SizeY, M|
|00001340| 61 78 53 63 61 6c 69 6e | 67 20 2a 20 59 4c 29 3b |axScalin|g * YL);|
|00001350| 0d 0a 09 09 0d 0a 09 62 | 44 69 73 70 6c 61 79 4d |.......b|DisplayM|
|00001360| 65 73 73 61 67 65 73 20 | 3d 20 28 50 6c 61 79 65 |essages |= (Playe|
|00001370| 72 43 6f 75 6e 74 20 3c | 3d 20 28 43 61 6e 76 61 |rCount <|= (Canva|
|00001380| 73 2e 43 6c 69 70 59 20 | 2d 20 4d 65 73 73 61 67 |s.ClipY |- Messag|
|00001390| 65 46 6f 6f 74 29 2f 28 | 50 6c 61 79 65 72 42 6f |eFoot)/(|PlayerBo|
|000013a0| 78 53 69 7a 65 59 20 2b | 20 42 6f 78 53 70 61 63 |xSizeY +| BoxSpac|
|000013b0| 65 59 29 29 3b 0d 0a 09 | 48 65 61 64 65 72 4f 66 |eY));...|HeaderOf|
|000013c0| 66 73 65 74 59 20 3d 20 | 35 20 2a 20 59 4c 3b 0d |fsetY = |5 * YL;.|
|000013d0| 0a 09 42 6f 78 57 69 64 | 74 68 20 3d 20 30 2e 39 |..BoxWid|th = 0.9|
|000013e0| 33 37 35 20 2a 20 43 61 | 6e 76 61 73 2e 43 6c 69 |375 * Ca|nvas.Cli|
|000013f0| 70 58 3b 0d 0a 09 42 6f | 78 58 50 6f 73 20 3d 20 |pX;...Bo|xXPos = |
|00001400| 30 2e 35 20 2a 20 28 43 | 61 6e 76 61 73 2e 43 6c |0.5 * (C|anvas.Cl|
|00001410| 69 70 58 20 2d 20 42 6f | 78 57 69 64 74 68 29 3b |ipX - Bo|xWidth);|
|00001420| 0d 0a 09 42 6f 78 57 69 | 64 74 68 20 3d 20 43 61 |...BoxWi|dth = Ca|
|00001430| 6e 76 61 73 2e 43 6c 69 | 70 58 20 2d 20 32 2a 42 |nvas.Cli|pX - 2*B|
|00001440| 6f 78 58 50 6f 73 3b 0d | 0a 09 4e 61 6d 65 58 50 |oxXPos;.|..NameXP|
|00001450| 6f 73 20 3d 20 42 6f 78 | 58 50 6f 73 20 2b 20 30 |os = Box|XPos + 0|
|00001460| 2e 30 36 32 35 20 2a 20 | 42 6f 78 57 69 64 74 68 |.0625 * |BoxWidth|
|00001470| 3b 0d 0a 09 53 63 6f 72 | 65 58 50 6f 73 20 3d 20 |;...Scor|eXPos = |
|00001480| 42 6f 78 58 50 6f 73 20 | 2b 20 30 2e 35 20 2a 20 |BoxXPos |+ 0.5 * |
|00001490| 42 6f 78 57 69 64 74 68 | 3b 0d 0a 09 44 65 61 74 |BoxWidth|;...Deat|
|000014a0| 68 73 58 50 6f 73 20 3d | 20 42 6f 78 58 50 6f 73 |hsXPos =| BoxXPos|
|000014b0| 20 2b 20 30 2e 36 38 37 | 35 20 2a 20 42 6f 78 57 | + 0.687|5 * BoxW|
|000014c0| 69 64 74 68 3b 0d 0a 09 | 4e 65 74 58 50 6f 73 20 |idth;...|NetXPos |
|000014d0| 3d 20 42 6f 78 58 50 6f | 73 20 2b 20 30 2e 38 31 |= BoxXPo|s + 0.81|
|000014e0| 32 35 20 2a 20 42 6f 78 | 57 69 64 74 68 3b 0d 0a |25 * Box|Width;..|
|000014f0| 09 09 0d 0a 09 2f 2f 20 | 64 72 61 77 20 62 61 63 |.....// |draw bac|
|00001500| 6b 67 72 6f 75 6e 64 20 | 62 6f 78 65 73 0d 0a 09 |kground |boxes...|
|00001510| 43 61 6e 76 61 73 2e 53 | 74 79 6c 65 20 3d 20 45 |Canvas.S|tyle = E|
|00001520| 52 65 6e 64 65 72 53 74 | 79 6c 65 2e 53 54 59 5f |RenderSt|yle.STY_|
|00001530| 41 6c 70 68 61 3b 0d 0a | 09 43 61 6e 76 61 73 2e |Alpha;..|.Canvas.|
|00001540| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 48 55 44 43 |DrawColo|r = HUDC|
|00001550| 6c 61 73 73 2e 64 65 66 | 61 75 6c 74 2e 57 68 69 |lass.def|ault.Whi|
|00001560| 74 65 43 6f 6c 6f 72 20 | 2a 20 30 2e 35 3b 0d 0a |teColor |* 0.5;..|
|00001570| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 50 6c |.for ( i|=0; i<Pl|
|00001580| 61 79 65 72 43 6f 75 6e | 74 3b 20 69 2b 2b 20 29 |ayerCoun|t; i++ )|
|00001590| 0d 0a 09 7b 0d 0a 09 09 | 43 61 6e 76 61 73 2e 53 |...{....|Canvas.S|
|000015a0| 65 74 50 6f 73 28 42 6f | 78 58 50 6f 73 2c 20 48 |etPos(Bo|xXPos, H|
|000015b0| 65 61 64 65 72 4f 66 66 | 73 65 74 59 20 2b 20 28 |eaderOff|setY + (|
|000015c0| 50 6c 61 79 65 72 42 6f | 78 53 69 7a 65 59 20 2b |PlayerBo|xSizeY +|
|000015d0| 20 42 6f 78 53 70 61 63 | 65 59 29 2a 69 29 3b 0d | BoxSpac|eY)*i);.|
|000015e0| 0a 09 09 43 61 6e 76 61 | 73 2e 44 72 61 77 54 69 |...Canva|s.DrawTi|
|000015f0| 6c 65 53 74 72 65 74 63 | 68 65 64 28 20 42 6f 78 |leStretc|hed( Box|
|00001600| 4d 61 74 65 72 69 61 6c | 2c 20 42 6f 78 57 69 64 |Material|, BoxWid|
|00001610| 74 68 2c 20 50 6c 61 79 | 65 72 42 6f 78 53 69 7a |th, Play|erBoxSiz|
|00001620| 65 59 29 3b 0d 0a 09 7d | 0d 0a 09 0d 0a 09 2f 2f |eY);...}|......//|
|00001630| 20 64 72 61 77 20 74 65 | 61 6d 20 73 63 6f 72 65 | draw te|am score|
|00001640| 20 62 6f 78 0d 0a 09 43 | 61 6e 76 61 73 2e 53 74 | box...C|anvas.St|
|00001650| 72 4c 65 6e 28 54 65 61 | 6d 53 63 6f 72 65 53 74 |rLen(Tea|mScoreSt|
|00001660| 72 69 6e 67 24 22 20 20 | 20 20 22 24 69 6e 74 28 |ring$" | "$int(|
|00001670| 47 52 49 2e 54 65 61 6d | 73 5b 30 5d 2e 53 63 6f |GRI.Team|s[0].Sco|
|00001680| 72 65 29 2c 20 53 63 6f | 72 65 58 4c 2c 20 59 4c |re), Sco|reXL, YL|
|00001690| 29 3b 0d 0a 09 43 61 6e | 76 61 73 2e 44 72 61 77 |);...Can|vas.Draw|
|000016a0| 43 6f 6c 6f 72 20 3d 20 | 48 55 44 43 6c 61 73 73 |Color = |HUDClass|
|000016b0| 2e 44 65 66 61 75 6c 74 | 2e 42 6c 75 65 43 6f 6c |.Default|.BlueCol|
|000016c0| 6f 72 3b 0d 0a 09 43 61 | 6e 76 61 73 2e 53 65 74 |or;...Ca|nvas.Set|
|000016d0| 50 6f 73 28 42 6f 78 58 | 50 6f 73 2c 20 48 65 61 |Pos(BoxX|Pos, Hea|
|000016e0| 64 65 72 4f 66 66 73 65 | 74 59 20 2d 20 32 2e 37 |derOffse|tY - 2.7|
|000016f0| 35 2a 59 4c 29 3b 0d 0a | 09 43 61 6e 76 61 73 2e |5*YL);..|.Canvas.|
|00001700| 44 72 61 77 54 69 6c 65 | 53 74 72 65 74 63 68 65 |DrawTile|Stretche|
|00001710| 64 28 20 42 6f 78 4d 61 | 74 65 72 69 61 6c 2c 20 |d( BoxMa|terial, |
|00001720| 53 63 6f 72 65 58 4c 2b | 20 30 2e 31 32 35 20 2a |ScoreXL+| 0.125 *|
|00001730| 20 42 6f 78 57 69 64 74 | 68 2c 20 31 2e 32 35 20 | BoxWidt|h, 1.25 |
|00001740| 2a 20 59 4c 29 3b 0d 0a | 09 0d 0a 09 2f 2f 20 64 |* YL);..|....// d|
|00001750| 72 61 77 20 74 69 74 6c | 65 0d 0a 09 43 61 6e 76 |raw titl|e...Canv|
|00001760| 61 73 2e 53 74 79 6c 65 | 20 3d 20 45 52 65 6e 64 |as.Style| = ERend|
|00001770| 65 72 53 74 79 6c 65 2e | 53 54 59 5f 4e 6f 72 6d |erStyle.|STY_Norm|
|00001780| 61 6c 3b 0d 0a 09 44 72 | 61 77 54 69 74 6c 65 28 |al;...Dr|awTitle(|
|00001790| 43 61 6e 76 61 73 2c 20 | 48 65 61 64 65 72 4f 66 |Canvas, |HeaderOf|
|000017a0| 66 73 65 74 59 2c 20 28 | 50 6c 61 79 65 72 43 6f |fsetY, (|PlayerCo|
|000017b0| 75 6e 74 2b 31 29 2a 28 | 50 6c 61 79 65 72 42 6f |unt+1)*(|PlayerBo|
|000017c0| 78 53 69 7a 65 59 20 2b | 20 42 6f 78 53 70 61 63 |xSizeY +| BoxSpac|
|000017d0| 65 59 29 2c 20 50 6c 61 | 79 65 72 42 6f 78 53 69 |eY), Pla|yerBoxSi|
|000017e0| 7a 65 59 29 3b 0d 0a 0d | 0a 09 2f 2f 20 64 72 61 |zeY);...|..// dra|
|000017f0| 77 20 74 65 61 6d 20 73 | 63 6f 72 65 20 62 6f 78 |w team s|core box|
|00001800| 0d 0a 09 43 61 6e 76 61 | 73 2e 53 65 74 50 6f 73 |...Canva|s.SetPos|
|00001810| 28 4e 61 6d 65 58 50 6f | 73 2c 48 65 61 64 65 72 |(NameXPo|s,Header|
|00001820| 4f 66 66 73 65 74 59 20 | 2d 20 32 2e 35 2a 59 4c |OffsetY |- 2.5*YL|
|00001830| 29 3b 0d 0a 09 43 61 6e | 76 61 73 2e 44 72 61 77 |);...Can|vas.Draw|
|00001840| 54 65 78 74 28 54 65 61 | 6d 53 63 6f 72 65 53 74 |Text(Tea|mScoreSt|
|00001850| 72 69 6e 67 24 22 20 20 | 20 20 22 24 69 6e 74 28 |ring$" | "$int(|
|00001860| 47 52 49 2e 54 65 61 6d | 73 5b 30 5d 2e 53 63 6f |GRI.Team|s[0].Sco|
|00001870| 72 65 29 2c 74 72 75 65 | 29 3b 0d 0a 09 0d 0a 09 |re),true|);......|
|00001880| 2f 2f 20 44 72 61 77 20 | 68 65 61 64 65 72 73 0d |// Draw |headers.|
|00001890| 0a 09 54 69 74 6c 65 59 | 50 6f 73 20 3d 20 48 65 |..TitleY|Pos = He|
|000018a0| 61 64 65 72 4f 66 66 73 | 65 74 59 20 2d 20 31 2e |aderOffs|etY - 1.|
|000018b0| 32 35 2a 59 4c 3b 0d 0a | 09 43 61 6e 76 61 73 2e |25*YL;..|.Canvas.|
|000018c0| 53 74 72 4c 65 6e 28 50 | 6f 69 6e 74 73 54 65 78 |StrLen(P|ointsTex|
|000018d0| 74 2c 20 53 63 6f 72 65 | 58 4c 2c 20 59 4c 29 3b |t, Score|XL, YL);|
|000018e0| 0d 0a 09 43 61 6e 76 61 | 73 2e 53 74 72 4c 65 6e |...Canva|s.StrLen|
|000018f0| 28 44 65 61 74 68 73 54 | 65 78 74 2c 20 44 65 61 |(DeathsT|ext, Dea|
|00001900| 74 68 73 58 4c 2c 20 59 | 4c 29 3b 0d 0a 09 0d 0a |thsXL, Y|L);.....|
|00001910| 09 43 61 6e 76 61 73 2e | 44 72 61 77 43 6f 6c 6f |.Canvas.|DrawColo|
|00001920| 72 20 3d 20 48 55 44 43 | 6c 61 73 73 2e 64 65 66 |r = HUDC|lass.def|
|00001930| 61 75 6c 74 2e 57 68 69 | 74 65 43 6f 6c 6f 72 3b |ault.Whi|teColor;|
|00001940| 0d 0a 09 43 61 6e 76 61 | 73 2e 53 65 74 50 6f 73 |...Canva|s.SetPos|
|00001950| 28 4e 61 6d 65 58 50 6f | 73 2c 20 54 69 74 6c 65 |(NameXPo|s, Title|
|00001960| 59 50 6f 73 29 3b 0d 0a | 09 43 61 6e 76 61 73 2e |YPos);..|.Canvas.|
|00001970| 44 72 61 77 54 65 78 74 | 28 50 6c 61 79 65 72 54 |DrawText|(PlayerT|
|00001980| 65 78 74 2c 74 72 75 65 | 29 3b 0d 0a 09 43 61 6e |ext,true|);...Can|
|00001990| 76 61 73 2e 53 65 74 50 | 6f 73 28 53 63 6f 72 65 |vas.SetP|os(Score|
|000019a0| 58 50 6f 73 20 2d 20 30 | 2e 35 2a 53 63 6f 72 65 |XPos - 0|.5*Score|
|000019b0| 58 4c 2c 20 54 69 74 6c | 65 59 50 6f 73 29 3b 0d |XL, Titl|eYPos);.|
|000019c0| 0a 09 43 61 6e 76 61 73 | 2e 44 72 61 77 54 65 78 |..Canvas|.DrawTex|
|000019d0| 74 28 50 6f 69 6e 74 73 | 54 65 78 74 2c 74 72 75 |t(Points|Text,tru|
|000019e0| 65 29 3b 0d 0a 09 69 66 | 20 28 20 47 52 49 2e 4d |e);...if| ( GRI.M|
|000019f0| 61 78 4c 69 76 65 73 20 | 21 3d 20 31 20 29 0d 0a |axLives |!= 1 )..|
|00001a00| 09 7b 0d 0a 09 09 43 61 | 6e 76 61 73 2e 53 65 74 |.{....Ca|nvas.Set|
|00001a10| 50 6f 73 28 44 65 61 74 | 68 73 58 50 6f 73 20 2d |Pos(Deat|hsXPos -|
|00001a20| 20 30 2e 35 2a 44 65 61 | 74 68 73 58 4c 2c 20 54 | 0.5*Dea|thsXL, T|
|00001a30| 69 74 6c 65 59 50 6f 73 | 29 3b 0d 0a 09 09 43 61 |itleYPos|);....Ca|
|00001a40| 6e 76 61 73 2e 44 72 61 | 77 54 65 78 74 28 44 65 |nvas.Dra|wText(De|
|00001a50| 61 74 68 73 54 65 78 74 | 2c 74 72 75 65 29 3b 0d |athsText|,true);.|
|00001a60| 0a 09 7d 0d 0a 09 09 09 | 0d 0a 09 2f 2f 20 64 72 |..}.....|...// dr|
|00001a70| 61 77 20 70 6c 61 79 65 | 72 20 6e 61 6d 65 73 0d |aw playe|r names.|
|00001a80| 0a 09 4d 61 78 4e 61 6d | 65 50 6f 73 20 3d 20 30 |..MaxNam|ePos = 0|
|00001a90| 2e 39 20 2a 20 28 53 63 | 6f 72 65 58 50 6f 73 20 |.9 * (Sc|oreXPos |
|00001aa0| 2d 20 4e 61 6d 65 58 50 | 6f 73 29 3b 0d 0a 09 66 |- NameXP|os);...f|
|00001ab0| 6f 72 20 28 20 69 3d 30 | 3b 20 69 3c 50 6c 61 79 |or ( i=0|; i<Play|
|00001ac0| 65 72 43 6f 75 6e 74 3b | 20 69 2b 2b 20 29 0d 0a |erCount;| i++ )..|
|00001ad0| 09 7b 0d 0a 09 09 70 6c | 61 79 65 72 6e 61 6d 65 |.{....pl|ayername|
|00001ae0| 5b 69 5d 20 3d 20 47 52 | 49 2e 50 52 49 41 72 72 |[i] = GR|I.PRIArr|
|00001af0| 61 79 5b 69 5d 2e 50 6c | 61 79 65 72 4e 61 6d 65 |ay[i].Pl|ayerName|
|00001b00| 3b 0d 0a 09 09 43 61 6e | 76 61 73 2e 53 74 72 4c |;....Can|vas.StrL|
|00001b10| 65 6e 28 70 6c 61 79 65 | 72 6e 61 6d 65 5b 69 5d |en(playe|rname[i]|
|00001b20| 2c 20 58 4c 2c 20 59 4c | 29 3b 0d 0a 09 09 69 66 |, XL, YL|);....if|
|00001b30| 20 28 20 58 4c 20 3e 20 | 4d 61 78 4e 61 6d 65 50 | ( XL > |MaxNameP|
|00001b40| 6f 73 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 62 4e |os )....|{.....bN|
|00001b50| 61 6d 65 46 6f 6e 74 52 | 65 64 75 63 74 69 6f 6e |ameFontR|eduction|
|00001b60| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 62 72 65 | = true;|.....bre|
|00001b70| 61 6b 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 69 |ak;....}|...}...i|
|00001b80| 66 20 28 20 21 62 4e 61 | 6d 65 46 6f 6e 74 52 65 |f ( !bNa|meFontRe|
|00001b90| 64 75 63 74 69 6f 6e 20 | 26 26 20 28 4f 77 6e 65 |duction |&& (Owne|
|00001ba0| 72 4f 66 66 73 65 74 20 | 3e 3d 20 50 6c 61 79 65 |rOffset |>= Playe|
|00001bb0| 72 43 6f 75 6e 74 29 20 | 29 0d 0a 09 7b 0d 0a 09 |rCount) |)...{...|
|00001bc0| 09 70 6c 61 79 65 72 6e | 61 6d 65 5b 4f 77 6e 65 |.playern|ame[Owne|
|00001bd0| 72 4f 66 66 73 65 74 5d | 20 3d 20 47 52 49 2e 50 |rOffset]| = GRI.P|
|00001be0| 52 49 41 72 72 61 79 5b | 4f 77 6e 65 72 4f 66 66 |RIArray[|OwnerOff|
|00001bf0| 73 65 74 5d 2e 50 6c 61 | 79 65 72 4e 61 6d 65 3b |set].Pla|yerName;|
|00001c00| 0d 0a 09 09 43 61 6e 76 | 61 73 2e 53 74 72 4c 65 |....Canv|as.StrLe|
|00001c10| 6e 28 70 6c 61 79 65 72 | 6e 61 6d 65 5b 4f 77 6e |n(player|name[Own|
|00001c20| 65 72 4f 66 66 73 65 74 | 5d 2c 20 58 4c 2c 20 59 |erOffset|], XL, Y|
|00001c30| 4c 29 3b 0d 0a 09 09 69 | 66 20 28 20 58 4c 20 3e |L);....i|f ( XL >|
|00001c40| 20 4d 61 78 4e 61 6d 65 | 50 6f 73 20 29 0d 0a 09 | MaxName|Pos )...|
|00001c50| 09 09 62 4e 61 6d 65 46 | 6f 6e 74 52 65 64 75 63 |..bNameF|ontReduc|
|00001c60| 74 69 6f 6e 20 3d 20 74 | 72 75 65 3b 0d 0a 09 7d |tion = t|rue;...}|
|00001c70| 09 0d 0a 09 09 0d 0a 09 | 69 66 20 28 20 62 4e 61 |........|if ( bNa|
|00001c80| 6d 65 46 6f 6e 74 52 65 | 64 75 63 74 69 6f 6e 20 |meFontRe|duction |
|00001c90| 29 0d 0a 09 09 43 61 6e | 76 61 73 2e 46 6f 6e 74 |)....Can|vas.Font|
|00001ca0| 20 3d 20 47 65 74 53 6d | 61 6c 6c 65 72 46 6f 6e | = GetSm|allerFon|
|00001cb0| 74 46 6f 72 28 43 61 6e | 76 61 73 2c 46 6f 6e 74 |tFor(Can|vas,Font|
|00001cc0| 52 65 64 75 63 74 69 6f | 6e 2b 31 29 3b 20 0d 0a |Reductio|n+1); ..|
|00001cd0| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 50 6c |.for ( i|=0; i<Pl|
|00001ce0| 61 79 65 72 43 6f 75 6e | 74 3b 20 69 2b 2b 20 29 |ayerCoun|t; i++ )|
|00001cf0| 0d 0a 09 7b 0d 0a 09 09 | 70 6c 61 79 65 72 6e 61 |...{....|playerna|
|00001d00| 6d 65 5b 69 5d 20 3d 20 | 47 52 49 2e 50 52 49 41 |me[i] = |GRI.PRIA|
|00001d10| 72 72 61 79 5b 69 5d 2e | 50 6c 61 79 65 72 4e 61 |rray[i].|PlayerNa|
|00001d20| 6d 65 3b 0d 0a 09 09 43 | 61 6e 76 61 73 2e 53 74 |me;....C|anvas.St|
|00001d30| 72 4c 65 6e 28 70 6c 61 | 79 65 72 6e 61 6d 65 5b |rLen(pla|yername[|
|00001d40| 69 5d 2c 20 58 4c 2c 20 | 59 4c 29 3b 0d 0a 09 09 |i], XL, |YL);....|
|00001d50| 69 66 20 28 20 58 4c 20 | 3e 20 4d 61 78 4e 61 6d |if ( XL |> MaxNam|
|00001d60| 65 50 6f 73 20 29 0d 0a | 09 09 09 70 6c 61 79 65 |ePos )..|...playe|
|00001d70| 72 6e 61 6d 65 5b 69 5d | 20 3d 20 6c 65 66 74 28 |rname[i]| = left(|
|00001d80| 70 6c 61 79 65 72 6e 61 | 6d 65 5b 69 5d 2c 20 4d |playerna|me[i], M|
|00001d90| 61 78 4e 61 6d 65 50 6f | 73 2f 58 4c 20 2a 20 6c |axNamePo|s/XL * l|
|00001da0| 65 6e 28 50 6c 61 79 65 | 72 4e 61 6d 65 5b 69 5d |en(Playe|rName[i]|
|00001db0| 29 29 3b 0d 0a 09 7d 0d | 0a 09 69 66 20 28 20 4f |));...}.|..if ( O|
|00001dc0| 77 6e 65 72 4f 66 66 73 | 65 74 20 3e 3d 20 50 6c |wnerOffs|et >= Pl|
|00001dd0| 61 79 65 72 43 6f 75 6e | 74 20 29 0d 0a 09 7b 0d |ayerCoun|t )...{.|
|00001de0| 0a 09 09 70 6c 61 79 65 | 72 6e 61 6d 65 5b 4f 77 |...playe|rname[Ow|
|00001df0| 6e 65 72 4f 66 66 73 65 | 74 5d 20 3d 20 47 52 49 |nerOffse|t] = GRI|
|00001e00| 2e 50 52 49 41 72 72 61 | 79 5b 4f 77 6e 65 72 4f |.PRIArra|y[OwnerO|
|00001e10| 66 66 73 65 74 5d 2e 50 | 6c 61 79 65 72 4e 61 6d |ffset].P|layerNam|
|00001e20| 65 3b 0d 0a 09 09 43 61 | 6e 76 61 73 2e 53 74 72 |e;....Ca|nvas.Str|
|00001e30| 4c 65 6e 28 70 6c 61 79 | 65 72 6e 61 6d 65 5b 4f |Len(play|ername[O|
|00001e40| 77 6e 65 72 4f 66 66 73 | 65 74 5d 2c 20 58 4c 2c |wnerOffs|et], XL,|
|00001e50| 20 59 4c 29 3b 0d 0a 09 | 09 69 66 20 28 20 58 4c | YL);...|.if ( XL|
|00001e60| 20 3e 20 4d 61 78 4e 61 | 6d 65 50 6f 73 20 29 0d | > MaxNa|mePos ).|
|00001e70| 0a 09 09 09 70 6c 61 79 | 65 72 6e 61 6d 65 5b 4f |....play|ername[O|
|00001e80| 77 6e 65 72 4f 66 66 73 | 65 74 5d 20 3d 20 6c 65 |wnerOffs|et] = le|
|00001e90| 66 74 28 70 6c 61 79 65 | 72 6e 61 6d 65 5b 4f 77 |ft(playe|rname[Ow|
|00001ea0| 6e 65 72 4f 66 66 73 65 | 74 5d 2c 20 4d 61 78 4e |nerOffse|t], MaxN|
|00001eb0| 61 6d 65 50 6f 73 2f 58 | 4c 20 2a 20 6c 65 6e 28 |amePos/X|L * len(|
|00001ec0| 50 6c 61 79 65 72 4e 61 | 6d 65 5b 4f 77 6e 65 72 |PlayerNa|me[Owner|
|00001ed0| 4f 66 66 73 65 74 5d 29 | 29 3b 0d 0a 09 7d 09 0d |Offset])|);...}..|
|00001ee0| 0a 09 09 0d 0a 09 43 61 | 6e 76 61 73 2e 53 74 79 |......Ca|nvas.Sty|
|00001ef0| 6c 65 20 3d 20 45 52 65 | 6e 64 65 72 53 74 79 6c |le = ERe|nderStyl|
|00001f00| 65 2e 53 54 59 5f 4e 6f | 72 6d 61 6c 3b 0d 0a 09 |e.STY_No|rmal;...|
|00001f10| 43 61 6e 76 61 73 2e 44 | 72 61 77 43 6f 6c 6f 72 |Canvas.D|rawColor|
|00001f20| 20 3d 20 48 55 44 43 6c | 61 73 73 2e 64 65 66 61 | = HUDCl|ass.defa|
|00001f30| 75 6c 74 2e 57 68 69 74 | 65 43 6f 6c 6f 72 3b 0d |ult.Whit|eColor;.|
|00001f40| 0a 09 43 61 6e 76 61 73 | 2e 53 65 74 50 6f 73 28 |..Canvas|.SetPos(|
|00001f50| 30 2e 35 20 2a 20 43 61 | 6e 76 61 73 2e 43 6c 69 |0.5 * Ca|nvas.Cli|
|00001f60| 70 58 2c 20 48 65 61 64 | 65 72 4f 66 66 73 65 74 |pX, Head|erOffset|
|00001f70| 59 20 2b 20 34 29 3b 0d | 0a 09 42 6f 78 54 65 78 |Y + 4);.|..BoxTex|
|00001f80| 74 4f 66 66 73 65 74 59 | 20 3d 20 48 65 61 64 65 |tOffsetY| = Heade|
|00001f90| 72 4f 66 66 73 65 74 59 | 20 2b 20 30 2e 35 20 2a |rOffsetY| + 0.5 *|
|00001fa0| 20 28 50 6c 61 79 65 72 | 42 6f 78 53 69 7a 65 59 | (Player|BoxSizeY|
|00001fb0| 20 2d 20 59 4c 29 3b 0d | 0a 0d 0a 09 43 61 6e 76 | - YL);.|....Canv|
|00001fc0| 61 73 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 48 |as.DrawC|olor = H|
|00001fd0| 55 44 43 6c 61 73 73 2e | 64 65 66 61 75 6c 74 2e |UDClass.|default.|
|00001fe0| 57 68 69 74 65 43 6f 6c | 6f 72 3b 0d 0a 09 66 6f |WhiteCol|or;...fo|
|00001ff0| 72 20 28 20 69 3d 30 3b | 20 69 3c 50 6c 61 79 65 |r ( i=0;| i<Playe|
|00002000| 72 43 6f 75 6e 74 3b 20 | 69 2b 2b 20 29 0d 0a 09 |rCount; |i++ )...|
|00002010| 09 69 66 20 28 20 69 20 | 21 3d 20 4f 77 6e 65 72 |.if ( i |!= Owner|
|00002020| 4f 66 66 73 65 74 20 29 | 0d 0a 09 09 7b 0d 0a 09 |Offset )|....{...|
|00002030| 09 09 43 61 6e 76 61 73 | 2e 53 65 74 50 6f 73 28 |..Canvas|.SetPos(|
|00002040| 4e 61 6d 65 58 50 6f 73 | 2c 20 28 50 6c 61 79 65 |NameXPos|, (Playe|
|00002050| 72 42 6f 78 53 69 7a 65 | 59 20 2b 20 42 6f 78 53 |rBoxSize|Y + BoxS|
|00002060| 70 61 63 65 59 29 2a 69 | 20 2b 20 42 6f 78 54 65 |paceY)*i| + BoxTe|
|00002070| 78 74 4f 66 66 73 65 74 | 59 29 3b 0d 0a 09 09 09 |xtOffset|Y);.....|
|00002080| 43 61 6e 76 61 73 2e 44 | 72 61 77 54 65 78 74 28 |Canvas.D|rawText(|
|00002090| 70 6c 61 79 65 72 6e 61 | 6d 65 5b 69 5d 2c 74 72 |playerna|me[i],tr|
|000020a0| 75 65 29 3b 0d 0a 09 09 | 7d 0d 0a 09 69 66 20 28 |ue);....|}...if (|
|000020b0| 20 62 4e 61 6d 65 46 6f | 6e 74 52 65 64 75 63 74 | bNameFo|ntReduct|
|000020c0| 69 6f 6e 20 29 0d 0a 09 | 09 43 61 6e 76 61 73 2e |ion )...|.Canvas.|
|000020d0| 46 6f 6e 74 20 3d 20 47 | 65 74 53 6d 61 6c 6c 65 |Font = G|etSmalle|
|000020e0| 72 46 6f 6e 74 46 6f 72 | 28 43 61 6e 76 61 73 2c |rFontFor|(Canvas,|
|000020f0| 46 6f 6e 74 52 65 64 75 | 63 74 69 6f 6e 29 3b 20 |FontRedu|ction); |
|00002100| 0d 0a 0d 0a 09 2f 2f 20 | 64 72 61 77 20 73 63 6f |.....// |draw sco|
|00002110| 72 65 73 0d 0a 09 43 61 | 6e 76 61 73 2e 44 72 61 |res...Ca|nvas.Dra|
|00002120| 77 43 6f 6c 6f 72 20 3d | 20 48 55 44 43 6c 61 73 |wColor =| HUDClas|
|00002130| 73 2e 64 65 66 61 75 6c | 74 2e 57 68 69 74 65 43 |s.defaul|t.WhiteC|
|00002140| 6f 6c 6f 72 3b 0d 0a 09 | 66 6f 72 20 28 20 69 3d |olor;...|for ( i=|
|00002150| 30 3b 20 69 3c 50 6c 61 | 79 65 72 43 6f 75 6e 74 |0; i<Pla|yerCount|
|00002160| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 69 66 20 28 20 |; i++ ).|...if ( |
|00002170| 69 20 21 3d 20 4f 77 6e | 65 72 4f 66 66 73 65 74 |i != Own|erOffset|
|00002180| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 43 61 6e 76 | )....{.|....Canv|
|00002190| 61 73 2e 53 65 74 50 6f | 73 28 53 63 6f 72 65 58 |as.SetPo|s(ScoreX|
|000021a0| 50 6f 73 2c 20 28 50 6c | 61 79 65 72 42 6f 78 53 |Pos, (Pl|ayerBoxS|
|000021b0| 69 7a 65 59 20 2b 20 42 | 6f 78 53 70 61 63 65 59 |izeY + B|oxSpaceY|
|000021c0| 29 2a 69 20 2b 20 42 6f | 78 54 65 78 74 4f 66 66 |)*i + Bo|xTextOff|
|000021d0| 73 65 74 59 29 3b 0d 0a | 09 09 09 43 61 6e 76 61 |setY);..|...Canva|
|000021e0| 73 2e 44 72 61 77 54 65 | 78 74 28 69 6e 74 28 47 |s.DrawTe|xt(int(G|
|000021f0| 52 49 2e 50 52 49 41 72 | 72 61 79 5b 69 5d 2e 53 |RI.PRIAr|ray[i].S|
|00002200| 63 6f 72 65 29 2c 74 72 | 75 65 29 3b 0d 0a 09 09 |core),tr|ue);....|
|00002210| 7d 0d 0a 09 0d 0a 09 2f | 2f 20 64 72 61 77 20 64 |}....../|/ draw d|
|00002220| 65 61 74 68 73 0d 0a 09 | 43 61 6e 76 61 73 2e 44 |eaths...|Canvas.D|
|00002230| 72 61 77 43 6f 6c 6f 72 | 20 3d 20 48 55 44 43 6c |rawColor| = HUDCl|
|00002240| 61 73 73 2e 64 65 66 61 | 75 6c 74 2e 57 68 69 74 |ass.defa|ult.Whit|
|00002250| 65 43 6f 6c 6f 72 3b 0d | 0a 09 66 6f 72 20 28 20 |eColor;.|..for ( |
|00002260| 69 3d 30 3b 20 69 3c 50 | 6c 61 79 65 72 43 6f 75 |i=0; i<P|layerCou|
|00002270| 6e 74 3b 20 69 2b 2b 20 | 29 0d 0a 09 09 69 66 20 |nt; i++ |)....if |
|00002280| 28 20 69 20 21 3d 20 4f | 77 6e 65 72 4f 66 66 73 |( i != O|wnerOffs|
|00002290| 65 74 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 43 61 |et )....|{.....Ca|
|000022a0| 6e 76 61 73 2e 53 65 74 | 50 6f 73 28 44 65 61 74 |nvas.Set|Pos(Deat|
|000022b0| 68 73 58 50 6f 73 2c 20 | 28 50 6c 61 79 65 72 42 |hsXPos, |(PlayerB|
|000022c0| 6f 78 53 69 7a 65 59 20 | 2b 20 42 6f 78 53 70 61 |oxSizeY |+ BoxSpa|
|000022d0| 63 65 59 29 2a 69 20 2b | 20 42 6f 78 54 65 78 74 |ceY)*i +| BoxText|
|000022e0| 4f 66 66 73 65 74 59 29 | 3b 0d 0a 09 09 09 69 66 |OffsetY)|;.....if|
|000022f0| 20 28 20 47 52 49 2e 50 | 52 49 41 72 72 61 79 5b | ( GRI.P|RIArray[|
|00002300| 69 5d 2e 62 4f 75 74 4f | 66 4c 69 76 65 73 20 29 |i].bOutO|fLives )|
|00002310| 0d 0a 09 09 09 09 43 61 | 6e 76 61 73 2e 44 72 61 |......Ca|nvas.Dra|
|00002320| 77 54 65 78 74 28 4f 75 | 74 54 65 78 74 2c 74 72 |wText(Ou|tText,tr|
|00002330| 75 65 29 3b 0d 0a 09 09 | 09 65 6c 73 65 20 69 66 |ue);....|.else if|
|00002340| 20 28 20 47 52 49 2e 4d | 61 78 4c 69 76 65 73 20 | ( GRI.M|axLives |
|00002350| 21 3d 20 31 20 29 20 0d | 0a 09 09 09 09 43 61 6e |!= 1 ) .|.....Can|
|00002360| 76 61 73 2e 44 72 61 77 | 54 65 78 74 28 69 6e 74 |vas.Draw|Text(int|
|00002370| 28 47 52 49 2e 50 52 49 | 41 72 72 61 79 5b 69 5d |(GRI.PRI|Array[i]|
|00002380| 2e 44 65 61 74 68 73 29 | 2c 74 72 75 65 29 3b 0d |.Deaths)|,true);.|
|00002390| 0a 09 09 7d 0d 0a 09 09 | 0d 0a 09 2f 2f 20 64 72 |...}....|...// dr|
|000023a0| 61 77 20 6f 77 6e 65 72 | 20 6c 69 6e 65 0d 0a 09 |aw owner| line...|
|000023b0| 69 66 20 28 20 4f 77 6e | 65 72 4f 66 66 73 65 74 |if ( Own|erOffset|
|000023c0| 20 3e 3d 20 50 6c 61 79 | 65 72 43 6f 75 6e 74 20 | >= Play|erCount |
|000023d0| 29 0d 0a 09 7b 0d 0a 09 | 09 4f 77 6e 65 72 50 6f |)...{...|.OwnerPo|
|000023e0| 73 20 3d 20 28 50 6c 61 | 79 65 72 42 6f 78 53 69 |s = (Pla|yerBoxSi|
|000023f0| 7a 65 59 20 2b 20 42 6f | 78 53 70 61 63 65 59 29 |zeY + Bo|xSpaceY)|
|00002400| 2a 50 6c 61 79 65 72 43 | 6f 75 6e 74 20 2b 20 42 |*PlayerC|ount + B|
|00002410| 6f 78 54 65 78 74 4f 66 | 66 73 65 74 59 3b 0d 0a |oxTextOf|fsetY;..|
|00002420| 09 09 2f 2f 20 64 72 61 | 77 20 65 78 74 72 61 20 |..// dra|w extra |
|00002430| 62 6f 78 09 0d 0a 09 09 | 43 61 6e 76 61 73 2e 53 |box.....|Canvas.S|
|00002440| 74 79 6c 65 20 3d 20 45 | 52 65 6e 64 65 72 53 74 |tyle = E|RenderSt|
|00002450| 79 6c 65 2e 53 54 59 5f | 41 6c 70 68 61 3b 0d 0a |yle.STY_|Alpha;..|
|00002460| 09 09 43 61 6e 76 61 73 | 2e 44 72 61 77 43 6f 6c |..Canvas|.DrawCol|
|00002470| 6f 72 20 3d 20 48 55 44 | 43 6c 61 73 73 2e 64 65 |or = HUD|Class.de|
|00002480| 66 61 75 6c 74 2e 54 75 | 72 71 43 6f 6c 6f 72 20 |fault.Tu|rqColor |
|00002490| 2a 20 30 2e 35 3b 0d 0a | 09 09 43 61 6e 76 61 73 |* 0.5;..|..Canvas|
|000024a0| 2e 53 65 74 50 6f 73 28 | 42 6f 78 58 50 6f 73 2c |.SetPos(|BoxXPos,|
|000024b0| 20 48 65 61 64 65 72 4f | 66 66 73 65 74 59 20 2b | HeaderO|ffsetY +|
|000024c0| 20 28 50 6c 61 79 65 72 | 42 6f 78 53 69 7a 65 59 | (Player|BoxSizeY|
|000024d0| 20 2b 20 42 6f 78 53 70 | 61 63 65 59 29 2a 50 6c | + BoxSp|aceY)*Pl|
|000024e0| 61 79 65 72 43 6f 75 6e | 74 29 3b 0d 0a 09 09 43 |ayerCoun|t);....C|
|000024f0| 61 6e 76 61 73 2e 44 72 | 61 77 54 69 6c 65 53 74 |anvas.Dr|awTileSt|
|00002500| 72 65 74 63 68 65 64 28 | 20 42 6f 78 4d 61 74 65 |retched(| BoxMate|
|00002510| 72 69 61 6c 2c 20 42 6f | 78 57 69 64 74 68 2c 20 |rial, Bo|xWidth, |
|00002520| 50 6c 61 79 65 72 42 6f | 78 53 69 7a 65 59 29 3b |PlayerBo|xSizeY);|
|00002530| 0d 0a 09 09 43 61 6e 76 | 61 73 2e 53 74 79 6c 65 |....Canv|as.Style|
|00002540| 20 3d 20 45 52 65 6e 64 | 65 72 53 74 79 6c 65 2e | = ERend|erStyle.|
|00002550| 53 54 59 5f 4e 6f 72 6d | 61 6c 3b 0d 0a 09 7d 0d |STY_Norm|al;...}.|
|00002560| 0a 09 65 6c 73 65 0d 0a | 09 09 4f 77 6e 65 72 50 |..else..|..OwnerP|
|00002570| 6f 73 20 3d 20 28 50 6c | 61 79 65 72 42 6f 78 53 |os = (Pl|ayerBoxS|
|00002580| 69 7a 65 59 20 2b 20 42 | 6f 78 53 70 61 63 65 59 |izeY + B|oxSpaceY|
|00002590| 29 2a 4f 77 6e 65 72 4f | 66 66 73 65 74 20 2b 20 |)*OwnerO|ffset + |
|000025a0| 42 6f 78 54 65 78 74 4f | 66 66 73 65 74 59 3b 0d |BoxTextO|ffsetY;.|
|000025b0| 0a 09 09 0d 0a 09 43 61 | 6e 76 61 73 2e 44 72 61 |......Ca|nvas.Dra|
|000025c0| 77 43 6f 6c 6f 72 20 3d | 20 48 55 44 43 6c 61 73 |wColor =| HUDClas|
|000025d0| 73 2e 64 65 66 61 75 6c | 74 2e 47 6f 6c 64 43 6f |s.defaul|t.GoldCo|
|000025e0| 6c 6f 72 3b 0d 0a 09 43 | 61 6e 76 61 73 2e 53 65 |lor;...C|anvas.Se|
|000025f0| 74 50 6f 73 28 4e 61 6d | 65 58 50 6f 73 2c 20 4f |tPos(Nam|eXPos, O|
|00002600| 77 6e 65 72 50 6f 73 29 | 3b 0d 0a 09 69 66 20 28 |wnerPos)|;...if (|
|00002610| 20 62 4e 61 6d 65 46 6f | 6e 74 52 65 64 75 63 74 | bNameFo|ntReduct|
|00002620| 69 6f 6e 20 29 0d 0a 09 | 09 43 61 6e 76 61 73 2e |ion )...|.Canvas.|
|00002630| 46 6f 6e 74 20 3d 20 47 | 65 74 53 6d 61 6c 6c 65 |Font = G|etSmalle|
|00002640| 72 46 6f 6e 74 46 6f 72 | 28 43 61 6e 76 61 73 2c |rFontFor|(Canvas,|
|00002650| 46 6f 6e 74 52 65 64 75 | 63 74 69 6f 6e 2b 31 29 |FontRedu|ction+1)|
|00002660| 3b 20 0d 0a 09 43 61 6e | 76 61 73 2e 44 72 61 77 |; ...Can|vas.Draw|
|00002670| 54 65 78 74 28 70 6c 61 | 79 65 72 6e 61 6d 65 5b |Text(pla|yername[|
|00002680| 4f 77 6e 65 72 4f 66 66 | 73 65 74 5d 2c 74 72 75 |OwnerOff|set],tru|
|00002690| 65 29 3b 0d 0a 09 69 66 | 20 28 20 62 4e 61 6d 65 |e);...if| ( bName|
|000026a0| 46 6f 6e 74 52 65 64 75 | 63 74 69 6f 6e 20 29 0d |FontRedu|ction ).|
|000026b0| 0a 09 09 43 61 6e 76 61 | 73 2e 46 6f 6e 74 20 3d |...Canva|s.Font =|
|000026c0| 20 47 65 74 53 6d 61 6c | 6c 65 72 46 6f 6e 74 46 | GetSmal|lerFontF|
|000026d0| 6f 72 28 43 61 6e 76 61 | 73 2c 46 6f 6e 74 52 65 |or(Canva|s,FontRe|
|000026e0| 64 75 63 74 69 6f 6e 29 | 3b 20 0d 0a 09 43 61 6e |duction)|; ...Can|
|000026f0| 76 61 73 2e 53 65 74 50 | 6f 73 28 53 63 6f 72 65 |vas.SetP|os(Score|
|00002700| 58 50 6f 73 2c 20 4f 77 | 6e 65 72 50 6f 73 29 3b |XPos, Ow|nerPos);|
|00002710| 0d 0a 09 43 61 6e 76 61 | 73 2e 44 72 61 77 54 65 |...Canva|s.DrawTe|
|00002720| 78 74 28 69 6e 74 28 47 | 52 49 2e 50 52 49 41 72 |xt(int(G|RI.PRIAr|
|00002730| 72 61 79 5b 4f 77 6e 65 | 72 4f 66 66 73 65 74 5d |ray[Owne|rOffset]|
|00002740| 2e 53 63 6f 72 65 29 2c | 74 72 75 65 29 3b 0d 0a |.Score),|true);..|
|00002750| 09 43 61 6e 76 61 73 2e | 53 65 74 50 6f 73 28 44 |.Canvas.|SetPos(D|
|00002760| 65 61 74 68 73 58 50 6f | 73 2c 20 4f 77 6e 65 72 |eathsXPo|s, Owner|
|00002770| 50 6f 73 29 3b 0d 0a 09 | 69 66 20 28 20 47 52 49 |Pos);...|if ( GRI|
|00002780| 2e 50 52 49 41 72 72 61 | 79 5b 4f 77 6e 65 72 4f |.PRIArra|y[OwnerO|
|00002790| 66 66 73 65 74 5d 2e 62 | 4f 75 74 4f 66 4c 69 76 |ffset].b|OutOfLiv|
|000027a0| 65 73 20 29 0d 0a 09 09 | 43 61 6e 76 61 73 2e 44 |es )....|Canvas.D|
|000027b0| 72 61 77 54 65 78 74 28 | 4f 75 74 54 65 78 74 2c |rawText(|OutText,|
|000027c0| 74 72 75 65 29 3b 0d 0a | 09 65 6c 73 65 20 69 66 |true);..|.else if|
|000027d0| 20 28 20 47 52 49 2e 4d | 61 78 4c 69 76 65 73 20 | ( GRI.M|axLives |
|000027e0| 21 3d 20 31 20 29 20 0d | 0a 09 09 43 61 6e 76 61 |!= 1 ) .|...Canva|
|000027f0| 73 2e 44 72 61 77 54 65 | 78 74 28 69 6e 74 28 47 |s.DrawTe|xt(int(G|
|00002800| 52 49 2e 50 52 49 41 72 | 72 61 79 5b 4f 77 6e 65 |RI.PRIAr|ray[Owne|
|00002810| 72 4f 66 66 73 65 74 5d | 2e 44 65 61 74 68 73 29 |rOffset]|.Deaths)|
|00002820| 2c 74 72 75 65 29 3b 0d | 0a 09 09 0d 0a 09 69 66 |,true);.|......if|
|00002830| 20 28 20 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 | ( Level|.NetMode|
|00002840| 20 3d 3d 20 4e 4d 5f 53 | 74 61 6e 64 61 6c 6f 6e | == NM_S|tandalon|
|00002850| 65 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |e )....r|eturn;..|
|00002860| 0d 0a 09 43 61 6e 76 61 | 73 2e 53 74 72 4c 65 6e |...Canva|s.StrLen|
|00002870| 28 4e 65 74 54 65 78 74 | 2c 20 4e 65 74 58 4c 2c |(NetText|, NetXL,|
|00002880| 20 59 4c 29 3b 0d 0a 09 | 43 61 6e 76 61 73 2e 44 | YL);...|Canvas.D|
|00002890| 72 61 77 43 6f 6c 6f 72 | 20 3d 20 48 55 44 43 6c |rawColor| = HUDCl|
|000028a0| 61 73 73 2e 64 65 66 61 | 75 6c 74 2e 57 68 69 74 |ass.defa|ult.Whit|
|000028b0| 65 43 6f 6c 6f 72 3b 0d | 0a 09 43 61 6e 76 61 73 |eColor;.|..Canvas|
|000028c0| 2e 53 65 74 50 6f 73 28 | 4e 65 74 58 50 6f 73 20 |.SetPos(|NetXPos |
|000028d0| 2b 20 30 2e 35 2a 4e 65 | 74 58 4c 2c 20 54 69 74 |+ 0.5*Ne|tXL, Tit|
|000028e0| 6c 65 59 50 6f 73 29 3b | 0d 0a 09 43 61 6e 76 61 |leYPos);|...Canva|
|000028f0| 73 2e 44 72 61 77 54 65 | 78 74 28 4e 65 74 54 65 |s.DrawTe|xt(NetTe|
|00002900| 78 74 2c 74 72 75 65 29 | 3b 0d 0a 0d 0a 09 66 6f |xt,true)|;.....fo|
|00002910| 72 20 28 20 69 3d 30 3b | 20 69 3c 47 52 49 2e 50 |r ( i=0;| i<GRI.P|
|00002920| 52 49 41 72 72 61 79 2e | 4c 65 6e 67 74 68 3b 20 |RIArray.|Length; |
|00002930| 69 2b 2b 20 29 0d 0a 09 | 09 50 52 49 41 72 72 61 |i++ )...|.PRIArra|
|00002940| 79 5b 69 5d 20 3d 20 47 | 52 49 2e 50 52 49 41 72 |y[i] = G|RI.PRIAr|
|00002950| 72 61 79 5b 69 5d 3b 0d | 0a 09 44 72 61 77 4e 65 |ray[i];.|..DrawNe|
|00002960| 74 49 6e 66 6f 28 43 61 | 6e 76 61 73 2c 46 6f 6e |tInfo(Ca|nvas,Fon|
|00002970| 74 52 65 64 75 63 74 69 | 6f 6e 2c 48 65 61 64 65 |tReducti|on,Heade|
|00002980| 72 4f 66 66 73 65 74 59 | 2c 50 6c 61 79 65 72 42 |rOffsetY|,PlayerB|
|00002990| 6f 78 53 69 7a 65 59 2c | 42 6f 78 53 70 61 63 65 |oxSizeY,|BoxSpace|
|000029a0| 59 2c 42 6f 78 54 65 78 | 74 4f 66 66 73 65 74 59 |Y,BoxTex|tOffsetY|
|000029b0| 2c 4f 77 6e 65 72 4f 66 | 66 73 65 74 2c 50 6c 61 |,OwnerOf|fset,Pla|
|000029c0| 79 65 72 43 6f 75 6e 74 | 2c 4e 65 74 58 50 6f 73 |yerCount|,NetXPos|
|000029d0| 29 3b 0d 0a 09 44 72 61 | 77 4d 61 74 63 68 49 44 |);...Dra|wMatchID|
|000029e0| 28 43 61 6e 76 61 73 2c | 46 6f 6e 74 52 65 64 75 |(Canvas,|FontRedu|
|000029f0| 63 74 69 6f 6e 29 3b 0d | 0a 7d 0d 0a 0d 0a 00 |ction);.|.}..... |
+--------+-------------------------+-------------------------+--------+--------+