home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 79 / CDPowerplay79Disc1.iso / Demos / MobileForcesDemo_2002.05.07.exe / System / UBrowser.u / UBrowserServerList_UBrowserServerGrid_ScriptText.TextBuffer < prev    next >
Unknown  |  2002-05-07  |  10.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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 | 54 a2 01 2f 2f 3d 3d 3d |........|T..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 55 |========|==..// U|
|00000060| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 47 72 69 |BrowserS|erverGri|
|00000070| 64 20 2d 20 62 61 73 65 | 20 63 6c 61 73 73 20 66 |d - base| class f|
|00000080| 6f 72 20 73 65 72 76 65 | 72 20 6c 69 73 74 69 6e |or serve|r listin|
|00000090| 67 73 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |gs..//==|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 0d 0a 63 6c 61 | 73 73 20 55 42 72 6f 77 |===..cla|ss UBrow|
|000000f0| 73 65 72 53 65 72 76 65 | 72 47 72 69 64 20 65 78 |serServe|rGrid ex|
|00000100| 74 65 6e 64 73 20 55 57 | 69 6e 64 6f 77 47 72 69 |tends UW|indowGri|
|00000110| 64 3b 0d 0a 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |d;....#e|xec TEXT|
|00000120| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000130| 48 69 67 68 6c 69 67 68 | 74 20 46 49 4c 45 3d 54 |Highligh|t FILE=T|
|00000140| 65 78 74 75 72 65 73 5c | 48 69 67 68 6c 69 67 68 |extures\|Highligh|
|00000150| 74 2e 62 6d 70 20 47 52 | 4f 55 50 3d 22 49 63 6f |t.bmp GR|OUP="Ico|
|00000160| 6e 73 22 20 46 4c 41 47 | 53 3d 32 20 4d 49 50 53 |ns" FLAG|S=2 MIPS|
|00000170| 3d 4f 46 46 0d 0a 0d 0a | 76 61 72 20 55 42 72 6f |=OFF....|var UBro|
|00000180| 77 73 65 72 52 69 67 68 | 74 43 6c 69 63 6b 4d 65 |wserRigh|tClickMe|
|00000190| 6e 75 20 4d 65 6e 75 3b | 0d 0a 76 61 72 20 55 57 |nu Menu;|..var UW|
|000001a0| 69 6e 64 6f 77 47 72 69 | 64 43 6f 6c 75 6d 6e 20 |indowGri|dColumn |
|000001b0| 53 65 72 76 65 72 2c 20 | 50 69 6e 67 2c 20 4d 61 |Server, |Ping, Ma|
|000001c0| 70 4e 61 6d 65 2c 20 50 | 6c 61 79 65 72 73 2c 20 |pName, P|layers, |
|000001d0| 53 6f 72 74 42 79 43 6f | 6c 75 6d 6e 3b 0d 0a 76 |SortByCo|lumn;..v|
|000001e0| 61 72 20 62 6f 6f 6c 20 | 62 53 6f 72 74 44 65 73 |ar bool |bSortDes|
|000001f0| 63 65 6e 64 69 6e 67 3b | 0d 0a 76 61 72 20 6c 6f |cending;|..var lo|
|00000200| 63 61 6c 69 7a 65 64 20 | 73 74 72 69 6e 67 20 53 |calized |string S|
|00000210| 65 72 76 65 72 4e 61 6d | 65 2c 20 50 69 6e 67 4e |erverNam|e, PingN|
|00000220| 61 6d 65 2c 20 4d 61 70 | 4e 61 6d 65 4e 61 6d 65 |ame, Map|NameName|
|00000230| 2c 20 50 6c 61 79 65 72 | 73 4e 61 6d 65 3b 0d 0a |, Player|sName;..|
|00000240| 0d 0a 76 61 72 20 55 42 | 72 6f 77 73 65 72 53 65 |..var UB|rowserSe|
|00000250| 72 76 65 72 4c 69 73 74 | 20 53 65 6c 65 63 74 65 |rverList| Selecte|
|00000260| 64 53 65 72 76 65 72 3b | 0d 0a 76 61 72 20 69 6e |dServer;|..var in|
|00000270| 74 20 43 6f 75 6e 74 3b | 0d 0a 0d 0a 76 61 72 20 |t Count;|....var |
|00000280| 66 6c 6f 61 74 20 54 69 | 6d 65 50 61 73 73 65 64 |float Ti|mePassed|
|00000290| 3b 0d 0a 76 61 72 20 69 | 6e 74 20 41 75 74 6f 50 |;..var i|nt AutoP|
|000002a0| 69 6e 67 49 6e 74 65 72 | 76 61 6c 3b 0d 0a 76 61 |ingInter|val;..va|
|000002b0| 72 20 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |r UBrows|erServer|
|000002c0| 4c 69 73 74 20 4f 6c 64 | 50 69 6e 67 53 65 72 76 |List Old|PingServ|
|000002d0| 65 72 3b 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |er;....f|unction |
|000002e0| 43 72 65 61 74 65 64 28 | 29 0d 0a 7b 0d 0a 09 53 |Created(|)..{...S|
|000002f0| 75 70 65 72 2e 43 72 65 | 61 74 65 64 28 29 3b 0d |uper.Cre|ated();.|
|00000300| 0a 0d 0a 09 52 6f 77 48 | 65 69 67 68 74 20 3d 20 |....RowH|eight = |
|00000310| 31 32 3b 0d 0a 0d 0a 09 | 43 72 65 61 74 65 43 6f |12;.....|CreateCo|
|00000320| 6c 75 6d 6e 73 28 29 3b | 0d 0a 0d 0a 09 4d 65 6e |lumns();|.....Men|
|00000330| 75 20 3d 20 55 42 72 6f | 77 73 65 72 52 69 67 68 |u = UBro|wserRigh|
|00000340| 74 43 6c 69 63 6b 4d 65 | 6e 75 28 52 6f 6f 74 2e |tClickMe|nu(Root.|
|00000350| 43 72 65 61 74 65 57 69 | 6e 64 6f 77 28 55 42 72 |CreateWi|ndow(UBr|
|00000360| 6f 77 73 65 72 53 65 72 | 76 65 72 4c 69 73 74 57 |owserSer|verListW|
|00000370| 69 6e 64 6f 77 28 47 65 | 74 50 61 72 65 6e 74 28 |indow(Ge|tParent(|
|00000380| 63 6c 61 73 73 27 55 42 | 72 6f 77 73 65 72 53 65 |class'UB|rowserSe|
|00000390| 72 76 65 72 4c 69 73 74 | 57 69 6e 64 6f 77 27 29 |rverList|Window')|
|000003a0| 29 2e 52 69 67 68 74 43 | 6c 69 63 6b 4d 65 6e 75 |).RightC|lickMenu|
|000003b0| 43 6c 61 73 73 2c 20 30 | 2c 20 30 2c 20 31 30 30 |Class, 0|, 0, 100|
|000003c0| 2c 20 31 30 30 2c 20 53 | 65 6c 66 29 29 3b 0d 0a |, 100, S|elf));..|
|000003d0| 09 4d 65 6e 75 2e 48 69 | 64 65 57 69 6e 64 6f 77 |.Menu.Hi|deWindow|
|000003e0| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |();..}..|..functi|
|000003f0| 6f 6e 20 4c 4d 6f 75 73 | 65 44 6f 77 6e 28 66 6c |on LMous|eDown(fl|
|00000400| 6f 61 74 20 58 2c 20 66 | 6c 6f 61 74 20 59 29 0d |oat X, f|loat Y).|
|00000410| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 4c 4d 6f 75 73 |.{...Sup|er.LMous|
|00000420| 65 44 6f 77 6e 28 58 2c | 20 59 29 3b 0d 0a 0d 0a |eDown(X,| Y);....|
|00000430| 09 55 42 72 6f 77 73 65 | 72 53 65 72 76 65 72 4c |.UBrowse|rServerL|
|00000440| 69 73 74 57 69 6e 64 6f | 77 28 47 65 74 50 61 72 |istWindo|w(GetPar|
|00000450| 65 6e 74 28 63 6c 61 73 | 73 27 55 42 72 6f 77 73 |ent(clas|s'UBrows|
|00000460| 65 72 53 65 72 76 65 72 | 4c 69 73 74 57 69 6e 64 |erServer|ListWind|
|00000470| 6f 77 27 29 29 2e 41 63 | 74 69 76 65 47 72 69 64 |ow')).Ac|tiveGrid|
|00000480| 20 3d 20 53 65 6c 66 3b | 0d 0a 7d 0d 0a 0d 0a 66 | = Self;|..}....f|
|00000490| 75 6e 63 74 69 6f 6e 20 | 43 6c 6f 73 65 28 6f 70 |unction |Close(op|
|000004a0| 74 69 6f 6e 61 6c 20 62 | 6f 6f 6c 20 62 42 79 50 |tional b|ool bByP|
|000004b0| 61 72 65 6e 74 29 0d 0a | 7b 0d 0a 09 53 75 70 65 |arent)..|{...Supe|
|000004c0| 72 2e 43 6c 6f 73 65 28 | 62 42 79 50 61 72 65 6e |r.Close(|bByParen|
|000004d0| 74 29 3b 0d 0a 09 69 66 | 28 4d 65 6e 75 20 21 3d |t);...if|(Menu !=|
|000004e0| 20 4e 6f 6e 65 20 26 26 | 20 4d 65 6e 75 2e 62 57 | None &&| Menu.bW|
|000004f0| 69 6e 64 6f 77 56 69 73 | 69 62 6c 65 29 0d 0a 09 |indowVis|ible)...|
|00000500| 09 4d 65 6e 75 2e 43 6c | 6f 73 65 55 70 28 29 3b |.Menu.Cl|oseUp();|
|00000510| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000520| 43 72 65 61 74 65 43 6f | 6c 75 6d 6e 73 28 29 0d |CreateCo|lumns().|
|00000530| 0a 7b 0d 0a 09 53 65 72 | 76 65 72 09 3d 20 41 64 |.{...Ser|ver.= Ad|
|00000540| 64 43 6f 6c 75 6d 6e 28 | 53 65 72 76 65 72 4e 61 |dColumn(|ServerNa|
|00000550| 6d 65 2c 20 33 30 30 29 | 3b 0d 0a 09 50 69 6e 67 |me, 300)|;...Ping|
|00000560| 09 3d 20 41 64 64 43 6f | 6c 75 6d 6e 28 50 69 6e |.= AddCo|lumn(Pin|
|00000570| 67 4e 61 6d 65 2c 20 33 | 30 29 3b 0d 0a 09 4d 61 |gName, 3|0);...Ma|
|00000580| 70 4e 61 6d 65 09 3d 20 | 41 64 64 43 6f 6c 75 6d |pName.= |AddColum|
|00000590| 6e 28 4d 61 70 4e 61 6d | 65 4e 61 6d 65 2c 20 31 |n(MapNam|eName, 1|
|000005a0| 30 30 29 3b 0d 0a 09 50 | 6c 61 79 65 72 73 09 3d |00);...P|layers.=|
|000005b0| 20 41 64 64 43 6f 6c 75 | 6d 6e 28 50 6c 61 79 65 | AddColu|mn(Playe|
|000005c0| 72 73 4e 61 6d 65 2c 20 | 35 30 29 3b 0d 0a 0d 0a |rsName, |50);....|
|000005d0| 09 53 6f 72 74 42 79 43 | 6f 6c 75 6d 6e 20 3d 20 |.SortByC|olumn = |
|000005e0| 50 69 6e 67 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |Ping;..}|....func|
|000005f0| 74 69 6f 6e 20 44 72 61 | 77 43 65 6c 6c 28 43 61 |tion Dra|wCell(Ca|
|00000600| 6e 76 61 73 20 43 2c 20 | 66 6c 6f 61 74 20 58 2c |nvas C, |float X,|
|00000610| 20 66 6c 6f 61 74 20 59 | 2c 20 55 57 69 6e 64 6f | float Y|, UWindo|
|00000620| 77 47 72 69 64 43 6f 6c | 75 6d 6e 20 43 6f 6c 75 |wGridCol|umn Colu|
|00000630| 6d 6e 2c 20 55 42 72 6f | 77 73 65 72 53 65 72 76 |mn, UBro|wserServ|
|00000640| 65 72 4c 69 73 74 20 4c | 69 73 74 29 0d 0a 7b 0d |erList L|ist)..{.|
|00000650| 0a 09 73 77 69 74 63 68 | 28 43 6f 6c 75 6d 6e 29 |..switch|(Column)|
|00000660| 0d 0a 09 7b 0d 0a 09 63 | 61 73 65 20 53 65 72 76 |...{...c|ase Serv|
|00000670| 65 72 3a 0d 0a 09 09 43 | 6f 6c 75 6d 6e 2e 43 6c |er:....C|olumn.Cl|
|00000680| 69 70 54 65 78 74 28 20 | 43 2c 20 58 2c 20 59 2c |ipText( |C, X, Y,|
|00000690| 20 4c 69 73 74 2e 48 6f | 73 74 4e 61 6d 65 20 29 | List.Ho|stName )|
|000006a0| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 63 61 |;....bre|ak;...ca|
|000006b0| 73 65 20 50 69 6e 67 3a | 0d 0a 09 09 43 6f 6c 75 |se Ping:|....Colu|
|000006c0| 6d 6e 2e 43 6c 69 70 54 | 65 78 74 28 20 43 2c 20 |mn.ClipT|ext( C, |
|000006d0| 58 2c 20 59 2c 20 49 6e | 74 28 4c 69 73 74 2e 50 |X, Y, In|t(List.P|
|000006e0| 69 6e 67 29 20 29 3b 0d | 0a 09 09 62 72 65 61 6b |ing) );.|...break|
|000006f0| 3b 0d 0a 09 63 61 73 65 | 20 4d 61 70 4e 61 6d 65 |;...case| MapName|
|00000700| 3a 0d 0a 09 09 43 6f 6c | 75 6d 6e 2e 43 6c 69 70 |:....Col|umn.Clip|
|00000710| 54 65 78 74 28 20 43 2c | 20 58 2c 20 59 2c 20 4c |Text( C,| X, Y, L|
|00000720| 69 73 74 2e 4d 61 70 44 | 69 73 70 6c 61 79 4e 61 |ist.MapD|isplayNa|
|00000730| 6d 65 20 29 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |me );...|.break;.|
|00000740| 0a 09 63 61 73 65 20 50 | 6c 61 79 65 72 73 3a 0d |..case P|layers:.|
|00000750| 0a 09 09 43 6f 6c 75 6d | 6e 2e 43 6c 69 70 54 65 |...Colum|n.ClipTe|
|00000760| 78 74 28 20 43 2c 20 58 | 2c 20 59 2c 20 4c 69 73 |xt( C, X|, Y, Lis|
|00000770| 74 2e 4e 75 6d 50 6c 61 | 79 65 72 73 24 22 2f 22 |t.NumPla|yers$"/"|
|00000780| 24 4c 69 73 74 2e 4d 61 | 78 50 6c 61 79 65 72 73 |$List.Ma|xPlayers|
|00000790| 20 29 3b 0d 0a 09 09 62 | 72 65 61 6b 3b 0d 0a 09 | );....b|reak;...|
|000007a0| 7d 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |}..}....|function|
|000007b0| 20 50 61 69 6e 74 28 43 | 61 6e 76 61 73 20 43 2c | Paint(C|anvas C,|
|000007c0| 20 66 6c 6f 61 74 20 4d | 6f 75 73 65 58 2c 20 66 | float M|ouseX, f|
|000007d0| 6c 6f 61 74 20 4d 6f 75 | 73 65 59 29 20 0d 0a 7b |loat Mou|seY) ..{|
|000007e0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 44 72 61 |...local| int Dra|
|000007f0| 77 59 2c 20 44 72 61 77 | 57 2c 20 44 72 61 77 48 |wY, Draw|W, DrawH|
|00000800| 3b 0d 0a 09 0d 0a 09 53 | 75 70 65 72 2e 50 61 69 |;......S|uper.Pai|
|00000810| 6e 74 28 43 2c 20 4d 6f | 75 73 65 58 2c 20 4d 6f |nt(C, Mo|useX, Mo|
|00000820| 75 73 65 59 29 3b 0d 0a | 09 0d 0a 09 44 72 61 77 |useY);..|....Draw|
|00000830| 59 20 3d 20 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 2e |Y = Look|AndFeel.|
|00000840| 43 6f 6c 75 6d 6e 48 65 | 61 64 69 6e 67 48 65 69 |ColumnHe|adingHei|
|00000850| 67 68 74 3b 0d 0a 0d 0a | 09 44 72 61 77 57 20 3d |ght;....|.DrawW =|
|00000860| 20 43 6c 69 70 70 69 6e | 67 52 65 67 69 6f 6e 2e | Clippin|gRegion.|
|00000870| 57 20 2d 20 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 2e |W - Look|AndFeel.|
|00000880| 53 69 7a 65 5f 53 63 72 | 6f 6c 6c 62 61 72 57 69 |Size_Scr|ollbarWi|
|00000890| 64 74 68 3b 0d 0a 09 0d | 0a 09 69 66 20 28 62 53 |dth;....|..if (bS|
|000008a0| 68 6f 77 48 6f 72 69 7a | 53 42 29 0d 0a 09 09 44 |howHoriz|SB)....D|
|000008b0| 72 61 77 48 20 3d 20 43 | 6c 69 70 70 69 6e 67 52 |rawH = C|lippingR|
|000008c0| 65 67 69 6f 6e 2e 48 20 | 2d 20 44 72 61 77 59 20 |egion.H |- DrawY |
|000008d0| 2d 20 4c 6f 6f 6b 41 6e | 64 46 65 65 6c 2e 53 69 |- LookAn|dFeel.Si|
|000008e0| 7a 65 5f 53 63 72 6f 6c | 6c 62 61 72 57 69 64 74 |ze_Scrol|lbarWidt|
|000008f0| 68 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 44 72 61 |h;...els|e....Dra|
|00000900| 77 48 20 3d 20 43 6c 69 | 70 70 69 6e 67 52 65 67 |wH = Cli|ppingReg|
|00000910| 69 6f 6e 2e 48 20 2d 20 | 44 72 61 77 59 3b 0d 0a |ion.H - |DrawY;..|
|00000920| 0d 0a 0d 0a 09 69 66 20 | 28 55 42 72 6f 77 73 65 |.....if |(UBrowse|
|00000930| 72 53 65 72 76 65 72 4c | 69 73 74 57 69 6e 64 6f |rServerL|istWindo|
|00000940| 77 28 47 65 74 50 61 72 | 65 6e 74 28 63 6c 61 73 |w(GetPar|ent(clas|
|00000950| 73 27 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |s'UBrows|erServer|
|00000960| 4c 69 73 74 57 69 6e 64 | 6f 77 27 29 29 2e 41 63 |ListWind|ow')).Ac|
|00000970| 74 69 76 65 47 72 69 64 | 20 3d 3d 20 53 65 6c 66 |tiveGrid| == Self|
|00000980| 29 0d 0a 09 7b 0d 0a 09 | 09 44 72 61 77 4d 69 73 |)...{...|.DrawMis|
|00000990| 63 42 65 76 65 6c 28 20 | 43 2c 20 30 2c 20 44 72 |cBevel( |C, 0, Dr|
|000009a0| 61 77 59 2c 20 44 72 61 | 77 57 2c 20 44 72 61 77 |awY, Dra|wW, Draw|
|000009b0| 48 2c 20 4c 6f 6f 6b 41 | 6e 64 46 65 65 6c 2e 41 |H, LookA|ndFeel.A|
|000009c0| 63 74 69 76 65 2c 20 30 | 29 3b 0d 0a 09 7d 0d 0a |ctive, 0|);...}..|
|000009d0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 50 61 |}....fun|ction Pa|
|000009e0| 69 6e 74 43 6f 6c 75 6d | 6e 28 43 61 6e 76 61 73 |intColum|n(Canvas|
|000009f0| 20 43 2c 20 55 57 69 6e | 64 6f 77 47 72 69 64 43 | C, UWin|dowGridC|
|00000a00| 6f 6c 75 6d 6e 20 43 6f | 6c 75 6d 6e 2c 20 66 6c |olumn Co|lumn, fl|
|00000a10| 6f 61 74 20 4d 6f 75 73 | 65 58 2c 20 66 6c 6f 61 |oat Mous|eX, floa|
|00000a20| 74 20 4d 6f 75 73 65 59 | 29 20 0d 0a 7b 0d 0a 09 |t MouseY|) ..{...|
|00000a30| 6c 6f 63 61 6c 20 55 42 | 72 6f 77 73 65 72 53 65 |local UB|rowserSe|
|00000a40| 72 76 65 72 4c 69 73 74 | 20 4c 69 73 74 3b 0d 0a |rverList| List;..|
|00000a50| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 59 3b 0d |.local f|loat Y;.|
|00000a60| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 56 69 73 69 |..local |int Visi|
|00000a70| 62 6c 65 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |ble;...l|ocal int|
|00000a80| 20 53 6b 69 70 70 65 64 | 3b 0d 0a 09 6c 6f 63 61 | Skipped|;...loca|
|00000a90| 6c 20 69 6e 74 20 54 6f | 70 4d 61 72 67 69 6e 3b |l int To|pMargin;|
|00000aa0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 42 6f 74 |...local| int Bot|
|00000ab0| 74 6f 6d 4d 61 72 67 69 | 6e 3b 0d 0a 0d 0a 09 43 |tomMargi|n;.....C|
|00000ac0| 2e 46 6f 6e 74 20 3d 20 | 52 6f 6f 74 2e 46 6f 6e |.Font = |Root.Fon|
|00000ad0| 74 73 5b 46 5f 4e 6f 72 | 6d 61 6c 5d 3b 0d 0a 0d |ts[F_Nor|mal];...|
|00000ae0| 0a 09 4c 69 73 74 20 3d | 20 55 42 72 6f 77 73 65 |..List =| UBrowse|
|00000af0| 72 53 65 72 76 65 72 4c | 69 73 74 57 69 6e 64 6f |rServerL|istWindo|
|00000b00| 77 28 47 65 74 50 61 72 | 65 6e 74 28 63 6c 61 73 |w(GetPar|ent(clas|
|00000b10| 73 27 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |s'UBrows|erServer|
|00000b20| 4c 69 73 74 57 69 6e 64 | 6f 77 27 29 29 2e 50 69 |ListWind|ow')).Pi|
|00000b30| 6e 67 65 64 4c 69 73 74 | 3b 0d 0a 0d 0a 09 69 66 |ngedList|;.....if|
|00000b40| 28 4c 69 73 74 20 3d 3d | 20 4e 6f 6e 65 29 0d 0a |(List ==| None)..|
|00000b50| 09 09 43 6f 75 6e 74 20 | 3d 20 30 3b 0d 0a 09 65 |..Count |= 0;...e|
|00000b60| 6c 73 65 0d 0a 09 09 43 | 6f 75 6e 74 20 3d 20 4c |lse....C|ount = L|
|00000b70| 69 73 74 2e 43 6f 75 6e | 74 28 29 3b 0d 0a 0d 0a |ist.Coun|t();....|
|00000b80| 09 69 66 28 62 53 68 6f | 77 48 6f 72 69 7a 53 42 |.if(bSho|wHorizSB|
|00000b90| 29 0d 0a 09 09 42 6f 74 | 74 6f 6d 4d 61 72 67 69 |)....Bot|tomMargi|
|00000ba0| 6e 20 3d 20 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 2e |n = Look|AndFeel.|
|00000bb0| 53 69 7a 65 5f 53 63 72 | 6f 6c 6c 62 61 72 57 69 |Size_Scr|ollbarWi|
|00000bc0| 64 74 68 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 42 |dth;...e|lse....B|
|00000bd0| 6f 74 74 6f 6d 4d 61 72 | 67 69 6e 20 3d 20 30 3b |ottomMar|gin = 0;|
|00000be0| 0d 0a 0d 0a 09 54 6f 70 | 4d 61 72 67 69 6e 20 3d |.....Top|Margin =|
|00000bf0| 20 4c 6f 6f 6b 41 6e 64 | 46 65 65 6c 2e 43 6f 6c | LookAnd|Feel.Col|
|00000c00| 75 6d 6e 48 65 61 64 69 | 6e 67 48 65 69 67 68 74 |umnHeadi|ngHeight|
|00000c10| 3b 0d 0a 0d 0a 09 56 69 | 73 69 62 6c 65 20 3d 20 |;.....Vi|sible = |
|00000c20| 69 6e 74 28 28 57 69 6e | 48 65 69 67 68 74 20 2d |int((Win|Height -|
|00000c30| 20 28 54 6f 70 4d 61 72 | 67 69 6e 20 2b 20 42 6f | (TopMar|gin + Bo|
|00000c40| 74 74 6f 6d 4d 61 72 67 | 69 6e 29 29 2f 52 6f 77 |ttomMarg|in))/Row|
|00000c50| 48 65 69 67 68 74 29 3b | 0d 0a 09 0d 0a 09 56 65 |Height);|......Ve|
|00000c60| 72 74 53 42 2e 53 65 74 | 52 61 6e 67 65 28 30 2c |rtSB.Set|Range(0,|
|00000c70| 20 43 6f 75 6e 74 2b 31 | 2c 20 56 69 73 69 62 6c | Count+1|, Visibl|
|00000c80| 65 29 3b 0d 0a 09 54 6f | 70 52 6f 77 20 3d 20 56 |e);...To|pRow = V|
|00000c90| 65 72 74 53 42 2e 50 6f | 73 3b 0d 0a 0d 0a 09 53 |ertSB.Po|s;.....S|
|00000ca0| 6b 69 70 70 65 64 20 3d | 20 30 3b 0d 0a 0d 0a 09 |kipped =| 0;.....|
|00000cb0| 4c 69 73 74 20 3d 20 55 | 42 72 6f 77 73 65 72 53 |List = U|BrowserS|
|00000cc0| 65 72 76 65 72 4c 69 73 | 74 28 4c 69 73 74 2e 4e |erverLis|t(List.N|
|00000cd0| 65 78 74 29 3b 0d 0a 0d | 0a 09 69 66 28 4c 69 73 |ext);...|..if(Lis|
|00000ce0| 74 20 21 3d 20 4e 6f 6e | 65 29 20 0d 0a 09 7b 0d |t != Non|e) ...{.|
|00000cf0| 0a 09 09 59 20 3d 20 31 | 3b 0d 0a 0d 0a 09 09 77 |...Y = 1|;......w|
|00000d00| 68 69 6c 65 28 28 59 20 | 3c 20 52 6f 77 48 65 69 |hile((Y |< RowHei|
|00000d10| 67 68 74 20 2b 20 57 69 | 6e 48 65 69 67 68 74 20 |ght + Wi|nHeight |
|00000d20| 2d 20 52 6f 77 48 65 69 | 67 68 74 20 2d 20 28 54 |- RowHei|ght - (T|
|00000d30| 6f 70 4d 61 72 67 69 6e | 20 2b 20 42 6f 74 74 6f |opMargin| + Botto|
|00000d40| 6d 4d 61 72 67 69 6e 29 | 29 20 26 26 20 28 4c 69 |mMargin)|) && (Li|
|00000d50| 73 74 20 21 3d 20 4e 6f | 6e 65 29 29 0d 0a 09 09 |st != No|ne))....|
|00000d60| 7b 0d 0a 09 09 09 2f 2f | 20 46 49 58 4d 45 3a 20 |{.....//| FIXME: |
|00000d70| 6d 61 6b 65 20 6d 6f 72 | 65 20 65 66 66 69 63 69 |make mor|e effici|
|00000d80| 65 6e 74 20 2d 20 63 61 | 63 68 65 20 74 6f 70 20 |ent - ca|che top |
|00000d90| 73 65 72 76 65 72 20 69 | 6e 20 6c 69 73 74 20 69 |server i|n list i|
|00000da0| 66 20 54 6f 70 52 6f 77 | 20 64 6f 65 73 6e 27 74 |f TopRow| doesn't|
|00000db0| 20 63 68 61 6e 67 65 0d | 0a 09 09 09 69 66 28 53 | change.|....if(S|
|00000dc0| 6b 69 70 70 65 64 20 3e | 3d 20 56 65 72 74 53 42 |kipped >|= VertSB|
|00000dd0| 2e 50 6f 73 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |.Pos)...|..{.....|
|00000de0| 09 2f 2f 20 44 72 61 77 | 20 68 69 67 68 6c 69 67 |.// Draw| highlig|
|00000df0| 68 74 0d 0a 09 09 09 09 | 69 66 28 4c 69 73 74 20 |ht......|if(List |
|00000e00| 3d 3d 20 53 65 6c 65 63 | 74 65 64 53 65 72 76 65 |== Selec|tedServe|
|00000e10| 72 29 0d 0a 09 09 09 09 | 2f 2f 09 43 6f 6c 75 6d |r)......|//.Colum|
|00000e20| 6e 2e 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |n.DrawSt|retchedT|
|00000e30| 65 78 74 75 72 65 28 20 | 43 2c 20 30 2c 20 59 2d |exture( |C, 0, Y-|
|00000e40| 31 20 2b 20 54 6f 70 4d | 61 72 67 69 6e 2c 20 43 |1 + TopM|argin, C|
|00000e50| 6f 6c 75 6d 6e 2e 57 69 | 6e 57 69 64 74 68 2c 20 |olumn.Wi|nWidth, |
|00000e60| 52 6f 77 48 65 69 67 68 | 74 20 2b 20 31 2c 20 54 |RowHeigh|t + 1, T|
|00000e70| 65 78 74 75 72 65 27 48 | 69 67 68 6c 69 67 68 74 |exture'H|ighlight|
|00000e80| 27 29 3b 0d 0a 09 09 09 | 09 09 43 6f 6c 75 6d 6e |');.....|..Column|
|00000e90| 2e 44 72 61 77 53 74 72 | 65 74 63 68 65 64 54 65 |.DrawStr|etchedTe|
|00000ea0| 78 74 75 72 65 53 65 67 | 6d 65 6e 74 28 20 43 2c |xtureSeg|ment( C,|
|00000eb0| 20 30 2c 20 59 2d 31 20 | 2b 20 54 6f 70 4d 61 72 | 0, Y-1 |+ TopMar|
|00000ec0| 67 69 6e 2c 20 43 6f 6c | 75 6d 6e 2e 57 69 6e 57 |gin, Col|umn.WinW|
|00000ed0| 69 64 74 68 2c 20 52 6f | 77 48 65 69 67 68 74 20 |idth, Ro|wHeight |
|00000ee0| 2b 20 31 2c 20 0d 0a 09 | 09 09 09 09 09 09 09 09 |+ 1, ...|........|
|00000ef0| 20 20 4c 6f 6f 6b 41 6e | 64 46 65 65 6c 2e 4d 69 | LookAn|dFeel.Mi|
|00000f00| 73 63 42 65 76 65 6c 54 | 4c 5b 30 5d 2e 58 2c 20 |scBevelT|L[0].X, |
|00000f10| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 2e 4d 69 73 63 |LookAndF|eel.Misc|
|00000f20| 42 65 76 65 6c 54 4c 5b | 30 5d 2e 59 2c 20 0d 0a |BevelTL[|0].Y, ..|
|00000f30| 09 09 09 09 09 09 09 09 | 09 20 20 4c 6f 6f 6b 41 |........|. LookA|
|00000f40| 6e 64 46 65 65 6c 2e 4d | 69 73 63 42 65 76 65 6c |ndFeel.M|iscBevel|
|00000f50| 54 4c 5b 30 5d 2e 57 2c | 20 4c 6f 6f 6b 41 6e 64 |TL[0].W,| LookAnd|
|00000f60| 46 65 65 6c 2e 4d 69 73 | 63 42 65 76 65 6c 54 4c |Feel.Mis|cBevelTL|
|00000f70| 5b 30 5d 2e 48 2c 20 4c | 6f 6f 6b 41 6e 64 46 65 |[0].H, L|ookAndFe|
|00000f80| 65 6c 2e 41 63 74 69 76 | 65 20 29 3b 0d 0a 0d 0a |el.Activ|e );....|
|00000f90| 09 09 09 09 44 72 61 77 | 43 65 6c 6c 28 43 2c 20 |....Draw|Cell(C, |
|00000fa0| 32 2c 20 59 20 2b 20 54 | 6f 70 4d 61 72 67 69 6e |2, Y + T|opMargin|
|00000fb0| 2c 20 43 6f 6c 75 6d 6e | 2c 20 4c 69 73 74 29 3b |, Column|, List);|
|00000fc0| 0d 0a 09 09 09 09 59 20 | 3d 20 59 20 2b 20 52 6f |......Y |= Y + Ro|
|00000fd0| 77 48 65 69 67 68 74 3b | 09 09 09 0d 0a 09 09 09 |wHeight;|........|
|00000fe0| 7d 20 0d 0a 09 09 09 53 | 6b 69 70 70 65 64 20 2b |} .....S|kipped +|
|00000ff0| 2b 3b 0d 0a 0d 0a 09 09 | 09 4c 69 73 74 20 3d 20 |+;......|.List = |
|00001000| 55 42 72 6f 77 73 65 72 | 53 65 72 76 65 72 4c 69 |UBrowser|ServerLi|
|00001010| 73 74 28 4c 69 73 74 2e | 4e 65 78 74 29 3b 0d 0a |st(List.|Next);..|
|00001020| 09 09 7d 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |..}...}.|.}....fu|
|00001030| 6e 63 74 69 6f 6e 20 53 | 6f 72 74 43 6f 6c 75 6d |nction S|ortColum|
|00001040| 6e 28 55 57 69 6e 64 6f | 77 47 72 69 64 43 6f 6c |n(UWindo|wGridCol|
|00001050| 75 6d 6e 20 43 6f 6c 75 | 6d 6e 29 0d 0a 7b 0d 0a |umn Colu|mn)..{..|
|00001060| 09 69 66 28 53 6f 72 74 | 42 79 43 6f 6c 75 6d 6e |.if(Sort|ByColumn|
|00001070| 20 3d 3d 20 43 6f 6c 75 | 6d 6e 29 0d 0a 09 09 62 | == Colu|mn)....b|
|00001080| 53 6f 72 74 44 65 73 63 | 65 6e 64 69 6e 67 20 3d |SortDesc|ending =|
|00001090| 20 21 62 53 6f 72 74 44 | 65 73 63 65 6e 64 69 6e | !bSortD|escendin|
|000010a0| 67 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 62 53 6f |g;...els|e....bSo|
|000010b0| 72 74 44 65 73 63 65 6e | 64 69 6e 67 20 3d 20 46 |rtDescen|ding = F|
|000010c0| 61 6c 73 65 3b 0d 0a 0d | 0a 09 53 6f 72 74 42 79 |alse;...|..SortBy|
|000010d0| 43 6f 6c 75 6d 6e 20 3d | 20 43 6f 6c 75 6d 6e 3b |Column =| Column;|
|000010e0| 0d 0a 0d 0a 09 55 42 72 | 6f 77 73 65 72 53 65 72 |.....UBr|owserSer|
|000010f0| 76 65 72 4c 69 73 74 57 | 69 6e 64 6f 77 28 47 65 |verListW|indow(Ge|
|00001100| 74 50 61 72 65 6e 74 28 | 63 6c 61 73 73 27 55 42 |tParent(|class'UB|
|00001110| 72 6f 77 73 65 72 53 65 | 72 76 65 72 4c 69 73 74 |rowserSe|rverList|
|00001120| 57 69 6e 64 6f 77 27 29 | 29 2e 50 69 6e 67 65 64 |Window')|).Pinged|
|00001130| 4c 69 73 74 2e 53 6f 72 | 74 28 29 3b 09 0d 0a 7d |List.Sor|t();...}|
|00001140| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 54 69 63 |....func|tion Tic|
|00001150| 6b 28 66 6c 6f 61 74 20 | 44 65 6c 74 61 54 69 6d |k(float |DeltaTim|
|00001160| 65 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 55 42 |e)..{...|local UB|
|00001170| 72 6f 77 73 65 72 53 65 | 72 76 65 72 4c 69 73 74 |rowserSe|rverList|
|00001180| 57 69 6e 64 6f 77 20 57 | 3b 0d 0a 0d 0a 09 57 20 |Window W|;.....W |
|00001190| 3d 20 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |= UBrows|erServer|
|000011a0| 4c 69 73 74 57 69 6e 64 | 6f 77 28 47 65 74 50 61 |ListWind|ow(GetPa|
|000011b0| 72 65 6e 74 28 63 6c 61 | 73 73 27 55 42 72 6f 77 |rent(cla|ss'UBrow|
|000011c0| 73 65 72 53 65 72 76 65 | 72 4c 69 73 74 57 69 6e |serServe|rListWin|
|000011d0| 64 6f 77 27 29 29 3b 0d | 0a 0d 0a 09 69 66 28 57 |dow'));.|....if(W|
|000011e0| 2e 50 69 6e 67 53 74 61 | 74 65 20 3d 3d 20 50 53 |.PingSta|te == PS|
|000011f0| 5f 44 6f 6e 65 20 26 26 | 20 53 65 6c 65 63 74 65 |_Done &&| Selecte|
|00001200| 64 53 65 72 76 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |dServer |== None)|
|00001210| 0d 0a 09 7b 0d 0a 09 09 | 53 65 6c 65 63 74 65 64 |...{....|Selected|
|00001220| 53 65 72 76 65 72 20 3d | 20 55 42 72 6f 77 73 65 |Server =| UBrowse|
|00001230| 72 53 65 72 76 65 72 4c | 69 73 74 28 57 2e 50 69 |rServerL|ist(W.Pi|
|00001240| 6e 67 65 64 4c 69 73 74 | 2e 4e 65 78 74 29 3b 0d |ngedList|.Next);.|
|00001250| 0a 09 09 69 66 28 53 65 | 6c 65 63 74 65 64 53 65 |...if(Se|lectedSe|
|00001260| 72 76 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 7c 7c 20 |rver == |None || |
|00001270| 53 65 6c 65 63 74 65 64 | 53 65 72 76 65 72 2e 62 |Selected|Server.b|
|00001280| 50 69 6e 67 69 6e 67 29 | 0d 0a 09 09 09 53 65 6c |Pinging)|.....Sel|
|00001290| 65 63 74 65 64 53 65 72 | 76 65 72 20 3d 20 4e 6f |ectedSer|ver = No|
|000012a0| 6e 65 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |ne;....e|lse.....|
|000012b0| 55 42 72 6f 77 73 65 72 | 53 65 72 76 65 72 4c 69 |UBrowser|ServerLi|
|000012c0| 73 74 57 69 6e 64 6f 77 | 28 47 65 74 50 61 72 65 |stWindow|(GetPare|
|000012d0| 6e 74 28 63 6c 61 73 73 | 27 55 42 72 6f 77 73 65 |nt(class|'UBrowse|
|000012e0| 72 53 65 72 76 65 72 4c | 69 73 74 57 69 6e 64 6f |rServerL|istWindo|
|000012f0| 77 27 29 29 2e 41 75 74 | 6f 49 6e 66 6f 28 53 65 |w')).Aut|oInfo(Se|
|00001300| 6c 65 63 74 65 64 53 65 | 72 76 65 72 29 3b 0d 0a |lectedSe|rver);..|
|00001310| 09 7d 0d 0a 0d 0a 09 69 | 66 28 57 2e 50 69 6e 67 |.}.....i|f(W.Ping|
|00001320| 53 74 61 74 65 20 3d 3d | 20 50 53 5f 44 6f 6e 65 |State ==| PS_Done|
|00001330| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 28 54 69 6d 65 |)...{...|.if(Time|
|00001340| 50 61 73 73 65 64 20 3e | 3d 20 41 75 74 6f 50 69 |Passed >|= AutoPi|
|00001350| 6e 67 49 6e 74 65 72 76 | 61 6c 29 0d 0a 09 09 7b |ngInterv|al)....{|
|00001360| 0d 0a 09 09 09 54 69 6d | 65 50 61 73 73 65 64 20 |.....Tim|ePassed |
|00001370| 3d 20 30 3b 0d 0a 0d 0a | 09 09 09 69 66 28 53 65 |= 0;....|...if(Se|
|00001380| 6c 65 63 74 65 64 53 65 | 72 76 65 72 20 21 3d 20 |lectedSe|rver != |
|00001390| 4f 6c 64 50 69 6e 67 53 | 65 72 76 65 72 29 0d 0a |OldPingS|erver)..|
|000013a0| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 28 4f 6c 64 |...{....|..if(Old|
|000013b0| 50 69 6e 67 53 65 72 76 | 65 72 20 21 3d 20 4e 6f |PingServ|er != No|
|000013c0| 6e 65 29 0d 0a 09 09 09 | 09 09 4f 6c 64 50 69 6e |ne).....|..OldPin|
|000013d0| 67 53 65 72 76 65 72 2e | 43 61 6e 63 65 6c 50 69 |gServer.|CancelPi|
|000013e0| 6e 67 28 29 3b 0d 0a 09 | 09 09 09 4f 6c 64 50 69 |ng();...|...OldPi|
|000013f0| 6e 67 53 65 72 76 65 72 | 20 3d 20 53 65 6c 65 63 |ngServer| = Selec|
|00001400| 74 65 64 53 65 72 76 65 | 72 3b 0d 0a 09 09 09 7d |tedServe|r;.....}|
|00001410| 0d 0a 0d 0a 09 09 09 69 | 66 28 53 65 6c 65 63 74 |.......i|f(Select|
|00001420| 65 64 53 65 72 76 65 72 | 20 21 3d 20 4e 6f 6e 65 |edServer| != None|
|00001430| 20 26 26 20 21 53 65 6c | 65 63 74 65 64 53 65 72 | && !Sel|ectedSer|
|00001440| 76 65 72 2e 62 50 69 6e | 67 69 6e 67 29 0d 0a 09 |ver.bPin|ging)...|
|00001450| 09 09 09 53 65 6c 65 63 | 74 65 64 53 65 72 76 65 |...Selec|tedServe|
|00001460| 72 2e 50 69 6e 67 53 65 | 72 76 65 72 28 46 61 6c |r.PingSe|rver(Fal|
|00001470| 73 65 2c 20 54 72 75 65 | 2c 20 54 72 75 65 29 3b |se, True|, True);|
|00001480| 0d 0a 09 09 7d 0d 0a 09 | 09 54 69 6d 65 50 61 73 |....}...|.TimePas|
|00001490| 73 65 64 20 3d 20 54 69 | 6d 65 50 61 73 73 65 64 |sed = Ti|mePassed|
|000014a0| 20 2b 20 44 65 6c 74 61 | 54 69 6d 65 3b 0d 0a 09 | + Delta|Time;...|
|000014b0| 7d 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |}..}....|function|
|000014c0| 20 53 65 6c 65 63 74 52 | 6f 77 28 69 6e 74 20 52 | SelectR|ow(int R|
|000014d0| 6f 77 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 55 |ow)..{..|.local U|
|000014e0| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|000014f0| 74 20 53 3b 0d 0a 0d 0a | 09 53 20 3d 20 47 65 74 |t S;....|.S = Get|
|00001500| 53 65 72 76 65 72 55 6e | 64 65 72 52 6f 77 28 52 |ServerUn|derRow(R|
|00001510| 6f 77 29 3b 0d 0a 0d 0a | 09 69 66 28 53 65 6c 65 |ow);....|.if(Sele|
|00001520| 63 74 65 64 53 65 72 76 | 65 72 20 21 3d 20 53 29 |ctedServ|er != S)|
|00001530| 0d 0a 09 7b 0d 0a 09 09 | 69 66 28 53 20 21 3d 20 |...{....|if(S != |
|00001540| 4e 6f 6e 65 29 0d 0a 09 | 09 09 55 42 72 6f 77 73 |None)...|..UBrows|
|00001550| 65 72 53 65 72 76 65 72 | 4c 69 73 74 57 69 6e 64 |erServer|ListWind|
|00001560| 6f 77 28 47 65 74 50 61 | 72 65 6e 74 28 63 6c 61 |ow(GetPa|rent(cla|
|00001570| 73 73 27 55 42 72 6f 77 | 73 65 72 53 65 72 76 65 |ss'UBrow|serServe|
|00001580| 72 4c 69 73 74 57 69 6e | 64 6f 77 27 29 29 2e 41 |rListWin|dow')).A|
|00001590| 75 74 6f 49 6e 66 6f 28 | 53 29 3b 0d 0a 09 09 54 |utoInfo(|S);....T|
|000015a0| 69 6d 65 50 61 73 73 65 | 64 20 3d 20 30 3b 0d 0a |imePasse|d = 0;..|
|000015b0| 09 7d 0d 0a 0d 0a 09 69 | 66 28 53 20 21 3d 20 4e |.}.....i|f(S != N|
|000015c0| 6f 6e 65 29 0d 0a 09 09 | 53 65 6c 65 63 74 65 64 |one)....|Selected|
|000015d0| 53 65 72 76 65 72 20 3d | 20 53 3b 0d 0a 7d 0d 0a |Server =| S;..}..|
|000015e0| 0d 0a 2f 2a 66 75 6e 63 | 74 69 6f 6e 20 52 69 67 |../*func|tion Rig|
|000015f0| 68 74 43 6c 69 63 6b 52 | 6f 77 28 69 6e 74 20 52 |htClickR|ow(int R|
|00001600| 6f 77 2c 20 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f |ow, floa|t X, flo|
|00001610| 61 74 20 59 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |at Y)..{|...local|
|00001620| 20 66 6c 6f 61 74 20 4d | 65 6e 75 58 2c 20 4d 65 | float M|enuX, Me|
|00001630| 6e 75 59 3b 0d 0a 0d 0a | 09 57 69 6e 64 6f 77 54 |nuY;....|.WindowT|
|00001640| 6f 47 6c 6f 62 61 6c 28 | 58 2c 20 59 2c 20 4d 65 |oGlobal(|X, Y, Me|
|00001650| 6e 75 58 2c 20 4d 65 6e | 75 59 29 3b 0d 0a 09 4d |nuX, Men|uY);...M|
|00001660| 65 6e 75 2e 57 69 6e 4c | 65 66 74 20 3d 20 4d 65 |enu.WinL|eft = Me|
|00001670| 6e 75 58 3b 0d 0a 09 4d | 65 6e 75 2e 57 69 6e 54 |nuX;...M|enu.WinT|
|00001680| 6f 70 20 3d 20 4d 65 6e | 75 59 3b 0d 0a 09 4d 65 |op = Men|uY;...Me|
|00001690| 6e 75 2e 4c 69 73 74 20 | 3d 20 47 65 74 53 65 72 |nu.List |= GetSer|
|000016a0| 76 65 72 55 6e 64 65 72 | 52 6f 77 28 52 6f 77 29 |verUnder|Row(Row)|
|000016b0| 3b 0d 0a 09 4d 65 6e 75 | 2e 47 72 69 64 20 3d 20 |;...Menu|.Grid = |
|000016c0| 53 65 6c 66 3b 0d 0a 09 | 4d 65 6e 75 2e 53 68 6f |Self;...|Menu.Sho|
|000016d0| 77 57 69 6e 64 6f 77 28 | 29 3b 0d 0a 7d 2a 2f 0d |wWindow(|);..}*/.|
|000016e0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 55 42 72 6f |...funct|ion UBro|
|000016f0| 77 73 65 72 53 65 72 76 | 65 72 4c 69 73 74 20 47 |wserServ|erList G|
|00001700| 65 74 53 65 72 76 65 72 | 55 6e 64 65 72 52 6f 77 |etServer|UnderRow|
|00001710| 28 69 6e 74 20 52 6f 77 | 29 0d 0a 7b 0d 0a 09 6c |(int Row|)..{...l|
|00001720| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 09 6c 6f |ocal int| i;...lo|
|00001730| 63 61 6c 20 55 42 72 6f | 77 73 65 72 53 65 72 76 |cal UBro|wserServ|
|00001740| 65 72 4c 69 73 74 20 4c | 69 73 74 3b 0d 0a 0d 0a |erList L|ist;....|
|00001750| 09 4c 69 73 74 20 3d 20 | 55 42 72 6f 77 73 65 72 |.List = |UBrowser|
|00001760| 53 65 72 76 65 72 4c 69 | 73 74 57 69 6e 64 6f 77 |ServerLi|stWindow|
|00001770| 28 47 65 74 50 61 72 65 | 6e 74 28 63 6c 61 73 73 |(GetPare|nt(class|
|00001780| 27 55 42 72 6f 77 73 65 | 72 53 65 72 76 65 72 4c |'UBrowse|rServerL|
|00001790| 69 73 74 57 69 6e 64 6f | 77 27 29 29 2e 50 69 6e |istWindo|w')).Pin|
|000017a0| 67 65 64 4c 69 73 74 3b | 0d 0a 09 69 66 28 4c 69 |gedList;|...if(Li|
|000017b0| 73 74 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 7b 0d |st != No|ne)...{.|
|000017c0| 0a 09 09 69 20 3d 20 30 | 3b 0d 0a 09 09 4c 69 73 |...i = 0|;....Lis|
|000017d0| 74 20 3d 20 55 42 72 6f | 77 73 65 72 53 65 72 76 |t = UBro|wserServ|
|000017e0| 65 72 4c 69 73 74 28 4c | 69 73 74 2e 4e 65 78 74 |erList(L|ist.Next|
|000017f0| 29 3b 0d 0a 09 09 77 68 | 69 6c 65 28 4c 69 73 74 |);....wh|ile(List|
|00001800| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 7b 0d 0a | != None|)....{..|
|00001810| 09 09 09 69 66 28 69 20 | 3d 3d 20 52 6f 77 29 0d |...if(i |== Row).|
|00001820| 0a 09 09 09 09 72 65 74 | 75 72 6e 20 4c 69 73 74 |.....ret|urn List|
|00001830| 3b 0d 0a 0d 0a 09 09 09 | 4c 69 73 74 20 3d 20 55 |;.......|List = U|
|00001840| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|00001850| 74 28 4c 69 73 74 2e 4e | 65 78 74 29 3b 0d 0a 09 |t(List.N|ext);...|
|00001860| 09 09 69 2b 2b 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |..i++;..|..}...}.|
|00001870| 0a 09 72 65 74 75 72 6e | 20 4e 6f 6e 65 3b 0d 0a |..return| None;..|
|00001880| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 69 6e |}....fun|ction in|
|00001890| 74 20 47 65 74 53 65 6c | 65 63 74 65 64 52 6f 77 |t GetSel|ectedRow|
|000018a0| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |()..{...|local in|
|000018b0| 74 20 69 3b 0d 0a 09 6c | 6f 63 61 6c 20 55 42 72 |t i;...l|ocal UBr|
|000018c0| 6f 77 73 65 72 53 65 72 | 76 65 72 4c 69 73 74 20 |owserSer|verList |
|000018d0| 4c 69 73 74 3b 0d 0a 0d | 0a 09 4c 69 73 74 20 3d |List;...|..List =|
|000018e0| 20 55 42 72 6f 77 73 65 | 72 53 65 72 76 65 72 4c | UBrowse|rServerL|
|000018f0| 69 73 74 57 69 6e 64 6f | 77 28 47 65 74 50 61 72 |istWindo|w(GetPar|
|00001900| 65 6e 74 28 63 6c 61 73 | 73 27 55 42 72 6f 77 73 |ent(clas|s'UBrows|
|00001910| 65 72 53 65 72 76 65 72 | 4c 69 73 74 57 69 6e 64 |erServer|ListWind|
|00001920| 6f 77 27 29 29 2e 50 69 | 6e 67 65 64 4c 69 73 74 |ow')).Pi|ngedList|
|00001930| 3b 0d 0a 09 69 66 28 4c | 69 73 74 20 21 3d 20 4e |;...if(L|ist != N|
|00001940| 6f 6e 65 29 0d 0a 09 7b | 0d 0a 09 09 69 20 3d 20 |one)...{|....i = |
|00001950| 30 3b 0d 0a 09 09 4c 69 | 73 74 20 3d 20 55 42 72 |0;....Li|st = UBr|
|00001960| 6f 77 73 65 72 53 65 72 | 76 65 72 4c 69 73 74 28 |owserSer|verList(|
|00001970| 4c 69 73 74 2e 4e 65 78 | 74 29 3b 0d 0a 09 09 77 |List.Nex|t);....w|
|00001980| 68 69 6c 65 28 4c 69 73 | 74 20 21 3d 20 4e 6f 6e |hile(Lis|t != Non|
|00001990| 65 29 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 28 4c |e)....{.|....if(L|
|000019a0| 69 73 74 20 3d 3d 20 53 | 65 6c 65 63 74 65 64 53 |ist == S|electedS|
|000019b0| 65 72 76 65 72 29 0d 0a | 09 09 09 09 72 65 74 75 |erver)..|....retu|
|000019c0| 72 6e 20 69 3b 0d 0a 0d | 0a 09 09 09 4c 69 73 74 |rn i;...|....List|
|000019d0| 20 3d 20 55 42 72 6f 77 | 73 65 72 53 65 72 76 65 | = UBrow|serServe|
|000019e0| 72 4c 69 73 74 28 4c 69 | 73 74 2e 4e 65 78 74 29 |rList(Li|st.Next)|
|000019f0| 3b 0d 0a 09 09 09 69 2b | 2b 3b 0d 0a 09 09 7d 0d |;.....i+|+;....}.|
|00001a00| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 2d 31 3b |..}...re|turn -1;|
|00001a10| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001a20| 4a 6f 69 6e 53 65 72 76 | 65 72 28 55 42 72 6f 77 |JoinServ|er(UBrow|
|00001a30| 73 65 72 53 65 72 76 65 | 72 4c 69 73 74 20 53 65 |serServe|rList Se|
|00001a40| 72 76 65 72 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 62 |rver, op|tional b|
|00001a50| 6f 6f 6c 20 62 53 70 65 | 63 74 61 74 65 29 0d 0a |ool bSpe|ctate)..|
|00001a60| 7b 0d 0a 09 69 66 28 53 | 65 72 76 65 72 20 21 3d |{...if(S|erver !=|
|00001a70| 20 4e 6f 6e 65 20 26 26 | 20 53 65 72 76 65 72 2e | None &&| Server.|
|00001a80| 47 61 6d 65 50 6f 72 74 | 20 21 3d 20 30 29 20 0d |GamePort| != 0) .|
|00001a90| 0a 09 7b 0d 0a 09 09 47 | 65 74 50 6c 61 79 65 72 |..{....G|etPlayer|
|00001aa0| 4f 77 6e 65 72 28 29 2e | 43 6c 69 65 6e 74 54 72 |Owner().|ClientTr|
|00001ab0| 61 76 65 6c 28 22 75 6e | 72 65 61 6c 3a 2f 2f 22 |avel("un|real://"|
|00001ac0| 24 53 65 72 76 65 72 2e | 49 50 24 22 3a 22 24 53 |$Server.|IP$":"$S|
|00001ad0| 65 72 76 65 72 2e 47 61 | 6d 65 50 6f 72 74 24 55 |erver.Ga|mePort$U|
|00001ae0| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|00001af0| 74 57 69 6e 64 6f 77 28 | 47 65 74 50 61 72 65 6e |tWindow(|GetParen|
|00001b00| 74 28 63 6c 61 73 73 27 | 55 42 72 6f 77 73 65 72 |t(class'|UBrowser|
|00001b10| 53 65 72 76 65 72 4c 69 | 73 74 57 69 6e 64 6f 77 |ServerLi|stWindow|
|00001b20| 27 29 29 2e 55 52 4c 41 | 70 70 65 6e 64 2c 20 54 |')).URLA|ppend, T|
|00001b30| 52 41 56 45 4c 5f 41 62 | 73 6f 6c 75 74 65 2c 20 |RAVEL_Ab|solute, |
|00001b40| 66 61 6c 73 65 29 3b 0d | 0a 09 09 47 65 74 50 61 |false);.|...GetPa|
|00001b50| 72 65 6e 74 28 63 6c 61 | 73 73 27 55 57 69 6e 64 |rent(cla|ss'UWind|
|00001b60| 6f 77 46 72 61 6d 65 64 | 57 69 6e 64 6f 77 27 29 |owFramed|Window')|
|00001b70| 2e 43 6c 6f 73 65 28 29 | 3b 0d 0a 09 09 52 6f 6f |.Close()|;....Roo|
|00001b80| 74 2e 43 6f 6e 73 6f 6c | 65 2e 43 6c 6f 73 65 55 |t.Consol|e.CloseU|
|00001b90| 57 69 6e 64 6f 77 28 29 | 3b 0d 0a 09 7d 0d 0a 7d |Window()|;...}..}|
|00001ba0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 44 6f 75 |....func|tion Dou|
|00001bb0| 62 6c 65 43 6c 69 63 6b | 52 6f 77 28 69 6e 74 20 |bleClick|Row(int |
|00001bc0| 52 6f 77 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Row)..{.|..local |
|00001bd0| 55 42 72 6f 77 73 65 72 | 53 65 72 76 65 72 4c 69 |UBrowser|ServerLi|
|00001be0| 73 74 20 53 65 72 76 65 | 72 3b 0d 0a 0d 0a 09 53 |st Serve|r;.....S|
|00001bf0| 65 72 76 65 72 20 3d 20 | 47 65 74 53 65 72 76 65 |erver = |GetServe|
|00001c00| 72 55 6e 64 65 72 52 6f | 77 28 52 6f 77 29 3b 0d |rUnderRo|w(Row);.|
|00001c10| 0a 09 69 66 28 53 65 6c | 65 63 74 65 64 53 65 72 |..if(Sel|ectedSer|
|00001c20| 76 65 72 20 21 3d 20 53 | 65 72 76 65 72 29 20 72 |ver != S|erver) r|
|00001c30| 65 74 75 72 6e 3b 20 0d | 0a 09 4a 6f 69 6e 53 65 |eturn; .|..JoinSe|
|00001c40| 72 76 65 72 28 53 65 72 | 76 65 72 29 3b 0d 0a 7d |rver(Ser|ver);..}|
|00001c50| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4d 6f 75 |....func|tion Mou|
|00001c60| 73 65 4c 65 61 76 65 43 | 6f 6c 75 6d 6e 28 55 57 |seLeaveC|olumn(UW|
|00001c70| 69 6e 64 6f 77 47 72 69 | 64 43 6f 6c 75 6d 6e 20 |indowGri|dColumn |
|00001c80| 43 6f 6c 75 6d 6e 29 0d | 0a 7b 0d 0a 09 54 6f 6f |Column).|.{...Too|
|00001c90| 6c 54 69 70 28 22 22 29 | 3b 0d 0a 7d 0d 0a 0d 0a |lTip("")|;..}....|
|00001ca0| 66 75 6e 63 74 69 6f 6e | 20 4b 65 79 44 6f 77 6e |function| KeyDown|
|00001cb0| 28 69 6e 74 20 4b 65 79 | 2c 20 66 6c 6f 61 74 20 |(int Key|, float |
|00001cc0| 58 2c 20 66 6c 6f 61 74 | 20 59 29 20 0d 0a 7b 0d |X, float| Y) ..{.|
|00001cd0| 0a 09 73 77 69 74 63 68 | 28 4b 65 79 29 0d 0a 09 |..switch|(Key)...|
|00001ce0| 7b 0d 0a 09 63 61 73 65 | 20 30 78 37 34 3a 20 2f |{...case| 0x74: /|
|00001cf0| 2f 20 49 4b 5f 46 35 3b | 0d 0a 09 09 52 65 66 72 |/ IK_F5;|....Refr|
|00001d00| 65 73 68 28 29 3b 0d 0a | 09 09 62 72 65 61 6b 3b |esh();..|..break;|
|00001d10| 0d 0a 09 63 61 73 65 20 | 30 78 32 36 3a 20 2f 2f |...case |0x26: //|
|00001d20| 20 49 4b 5f 55 70 0d 0a | 09 09 53 65 6c 65 63 74 | IK_Up..|..Select|
|00001d30| 52 6f 77 28 43 6c 61 6d | 70 28 47 65 74 53 65 6c |Row(Clam|p(GetSel|
|00001d40| 65 63 74 65 64 52 6f 77 | 28 29 20 2d 20 31 2c 20 |ectedRow|() - 1, |
|00001d50| 30 2c 20 43 6f 75 6e 74 | 20 2d 20 31 29 29 3b 0d |0, Count| - 1));.|
|00001d60| 0a 09 09 56 65 72 74 53 | 42 2e 53 68 6f 77 28 47 |...VertS|B.Show(G|
|00001d70| 65 74 53 65 6c 65 63 74 | 65 64 52 6f 77 28 29 29 |etSelect|edRow())|
|00001d80| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 63 61 |;....bre|ak;...ca|
|00001d90| 73 65 20 30 78 32 38 3a | 20 2f 2f 20 49 4b 5f 44 |se 0x28:| // IK_D|
|00001da0| 6f 77 6e 0d 0a 09 09 53 | 65 6c 65 63 74 52 6f 77 |own....S|electRow|
|00001db0| 28 43 6c 61 6d 70 28 47 | 65 74 53 65 6c 65 63 74 |(Clamp(G|etSelect|
|00001dc0| 65 64 52 6f 77 28 29 20 | 2b 20 31 2c 20 30 2c 20 |edRow() |+ 1, 0, |
|00001dd0| 43 6f 75 6e 74 20 2d 20 | 31 29 29 3b 0d 0a 09 09 |Count - |1));....|
|00001de0| 56 65 72 74 53 42 2e 53 | 68 6f 77 28 47 65 74 53 |VertSB.S|how(GetS|
|00001df0| 65 6c 65 63 74 65 64 52 | 6f 77 28 29 29 3b 0d 0a |electedR|ow());..|
|00001e00| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00001e10| 30 78 30 44 3a 20 2f 2f | 20 49 4b 5f 45 6e 74 65 |0x0D: //| IK_Ente|
|00001e20| 72 3a 0d 0a 09 09 44 6f | 75 62 6c 65 43 6c 69 63 |r:....Do|ubleClic|
|00001e30| 6b 52 6f 77 28 47 65 74 | 53 65 6c 65 63 74 65 64 |kRow(Get|Selected|
|00001e40| 52 6f 77 28 29 29 3b 0d | 0a 09 09 62 72 65 61 6b |Row());.|...break|
|00001e50| 3b 0d 0a 09 64 65 66 61 | 75 6c 74 3a 0d 0a 09 09 |;...defa|ult:....|
|00001e60| 53 75 70 65 72 2e 4b 65 | 79 44 6f 77 6e 28 4b 65 |Super.Ke|yDown(Ke|
|00001e70| 79 2c 20 58 2c 20 59 29 | 3b 0d 0a 09 09 62 72 65 |y, X, Y)|;....bre|
|00001e80| 61 6b 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |ak;...}.|.}....fu|
|00001e90| 6e 63 74 69 6f 6e 20 69 | 6e 74 20 43 6f 6d 70 61 |nction i|nt Compa|
|00001ea0| 72 65 28 55 42 72 6f 77 | 73 65 72 53 65 72 76 65 |re(UBrow|serServe|
|00001eb0| 72 4c 69 73 74 20 54 2c | 20 55 42 72 6f 77 73 65 |rList T,| UBrowse|
|00001ec0| 72 53 65 72 76 65 72 4c | 69 73 74 20 42 29 0d 0a |rServerL|ist B)..|
|00001ed0| 7b 0d 0a 09 73 77 69 74 | 63 68 28 53 6f 72 74 42 |{...swit|ch(SortB|
|00001ee0| 79 43 6f 6c 75 6d 6e 29 | 0d 0a 09 7b 0d 0a 09 63 |yColumn)|...{...c|
|00001ef0| 61 73 65 20 53 65 72 76 | 65 72 3a 0d 0a 09 09 72 |ase Serv|er:....r|
|00001f00| 65 74 75 72 6e 20 42 79 | 4e 61 6d 65 28 54 2c 20 |eturn By|Name(T, |
|00001f10| 42 29 3b 0d 0a 09 63 61 | 73 65 20 50 69 6e 67 3a |B);...ca|se Ping:|
|00001f20| 0d 0a 09 09 72 65 74 75 | 72 6e 20 42 79 50 69 6e |....retu|rn ByPin|
|00001f30| 67 28 54 2c 20 42 29 3b | 0d 0a 09 63 61 73 65 20 |g(T, B);|...case |
|00001f40| 4d 61 70 4e 61 6d 65 3a | 0d 0a 09 09 72 65 74 75 |MapName:|....retu|
|00001f50| 72 6e 20 42 79 4d 61 70 | 28 54 2c 20 42 29 3b 0d |rn ByMap|(T, B);.|
|00001f60| 0a 09 63 61 73 65 20 50 | 6c 61 79 65 72 73 3a 0d |..case P|layers:.|
|00001f70| 0a 09 09 72 65 74 75 72 | 6e 20 42 79 50 6c 61 79 |...retur|n ByPlay|
|00001f80| 65 72 73 28 54 2c 20 42 | 29 3b 0d 0a 09 64 65 66 |ers(T, B|);...def|
|00001f90| 61 75 6c 74 3a 0d 0a 09 | 09 72 65 74 75 72 6e 20 |ault:...|.return |
|00001fa0| 30 3b 0d 0a 09 7d 09 0d | 0a 7d 0d 0a 0d 0a 66 75 |0;...}..|.}....fu|
|00001fb0| 6e 63 74 69 6f 6e 20 69 | 6e 74 20 42 79 50 69 6e |nction i|nt ByPin|
|00001fc0| 67 28 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |g(UBrows|erServer|
|00001fd0| 4c 69 73 74 20 54 2c 20 | 55 42 72 6f 77 73 65 72 |List T, |UBrowser|
|00001fe0| 53 65 72 76 65 72 4c 69 | 73 74 20 42 29 0d 0a 7b |ServerLi|st B)..{|
|00001ff0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 52 65 73 |...local| int Res|
|00002000| 75 6c 74 3b 0d 0a 0d 0a | 09 69 66 28 42 20 3d 3d |ult;....|.if(B ==|
|00002010| 20 4e 6f 6e 65 29 20 72 | 65 74 75 72 6e 20 2d 31 | None) r|eturn -1|
|00002020| 3b 0d 0a 09 0d 0a 09 69 | 66 28 54 2e 50 69 6e 67 |;......i|f(T.Ping|
|00002030| 20 3c 20 42 2e 50 69 6e | 67 29 0d 0a 09 7b 0d 0a | < B.Pin|g)...{..|
|00002040| 09 09 52 65 73 75 6c 74 | 20 3d 20 2d 31 3b 0d 0a |..Result| = -1;..|
|00002050| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 69 66 20 28 |.}...els|e...if (|
|00002060| 54 2e 50 69 6e 67 20 3e | 20 42 2e 50 69 6e 67 29 |T.Ping >| B.Ping)|
|00002070| 0d 0a 09 7b 0d 0a 09 09 | 52 65 73 75 6c 74 20 3d |...{....|Result =|
|00002080| 20 31 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 0d 0a | 1;...}.|..else..|
|00002090| 09 7b 0d 0a 2f 2a 09 09 | 69 66 28 54 2e 48 6f 73 |.{../*..|if(T.Hos|
|000020a0| 74 4e 61 6d 65 20 3c 20 | 42 2e 48 6f 73 74 4e 61 |tName < |B.HostNa|
|000020b0| 6d 65 29 0d 0a 09 09 09 | 52 65 73 75 6c 74 20 3d |me).....|Result =|
|000020c0| 20 2d 31 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 | -1;....|else....|
|000020d0| 69 66 28 54 2e 48 6f 73 | 74 4e 61 6d 65 20 3e 20 |if(T.Hos|tName > |
|000020e0| 42 2e 48 6f 73 74 4e 61 | 6d 65 29 0d 0a 09 09 09 |B.HostNa|me).....|
|000020f0| 52 65 73 75 6c 74 20 3d | 20 31 3b 0d 0a 09 09 65 |Result =| 1;....e|
|00002100| 6c 73 65 0d 0a 2a 2f 0d | 0a 09 09 09 52 65 73 75 |lse..*/.|....Resu|
|00002110| 6c 74 20 3d 20 30 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |lt = 0;.|..}.....|
|00002120| 69 66 28 62 53 6f 72 74 | 44 65 73 63 65 6e 64 69 |if(bSort|Descendi|
|00002130| 6e 67 29 0d 0a 09 09 52 | 65 73 75 6c 74 20 3d 20 |ng)....R|esult = |
|00002140| 2d 52 65 73 75 6c 74 3b | 0d 0a 0d 0a 09 72 65 74 |-Result;|.....ret|
|00002150| 75 72 6e 20 52 65 73 75 | 6c 74 3b 0d 0a 7d 0d 0a |urn Resu|lt;..}..|
|00002160| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 69 6e 74 20 42 |..functi|on int B|
|00002170| 79 4e 61 6d 65 28 55 42 | 72 6f 77 73 65 72 53 65 |yName(UB|rowserSe|
|00002180| 72 76 65 72 4c 69 73 74 | 20 54 2c 20 55 42 72 6f |rverList| T, UBro|
|00002190| 77 73 65 72 53 65 72 76 | 65 72 4c 69 73 74 20 42 |wserServ|erList B|
|000021a0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |)..{...l|ocal int|
|000021b0| 20 52 65 73 75 6c 74 3b | 0d 0a 0d 0a 09 69 66 28 | Result;|.....if(|
|000021c0| 42 20 3d 3d 20 4e 6f 6e | 65 29 20 72 65 74 75 72 |B == Non|e) retur|
|000021d0| 6e 20 2d 31 3b 0d 0a 09 | 69 66 28 54 2e 50 69 6e |n -1;...|if(T.Pin|
|000021e0| 67 20 3d 3d 20 39 39 39 | 39 29 20 72 65 74 75 72 |g == 999|9) retur|
|000021f0| 6e 20 31 3b 0d 0a 09 69 | 66 28 42 2e 50 69 6e 67 |n 1;...i|f(B.Ping|
|00002200| 20 3d 3d 20 39 39 39 39 | 29 20 72 65 74 75 72 6e | == 9999|) return|
|00002210| 20 2d 31 3b 0d 0a 09 0d | 0a 09 69 66 28 54 2e 48 | -1;....|..if(T.H|
|00002220| 6f 73 74 4e 61 6d 65 20 | 3c 20 42 2e 48 6f 73 74 |ostName |< B.Host|
|00002230| 4e 61 6d 65 29 0d 0a 09 | 7b 0d 0a 09 09 52 65 73 |Name)...|{....Res|
|00002240| 75 6c 74 20 3d 20 2d 31 | 3b 0d 0a 09 7d 0d 0a 09 |ult = -1|;...}...|
|00002250| 65 6c 73 65 0d 0a 09 69 | 66 20 28 54 2e 48 6f 73 |else...i|f (T.Hos|
|00002260| 74 4e 61 6d 65 20 3e 20 | 42 2e 48 6f 73 74 4e 61 |tName > |B.HostNa|
|00002270| 6d 65 29 0d 0a 09 7b 0d | 0a 09 09 52 65 73 75 6c |me)...{.|...Resul|
|00002280| 74 20 3d 20 31 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |t = 1;..|.}...els|
|00002290| 65 0d 0a 09 7b 0d 0a 09 | 09 52 65 73 75 6c 74 20 |e...{...|.Result |
|000022a0| 3d 20 30 3b 2f 2f 54 2e | 50 69 6e 67 20 2d 20 42 |= 0;//T.|Ping - B|
|000022b0| 2e 50 69 6e 67 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |.Ping;..|.}.....i|
|000022c0| 66 28 62 53 6f 72 74 44 | 65 73 63 65 6e 64 69 6e |f(bSortD|escendin|
|000022d0| 67 29 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 2d |g)....Re|sult = -|
|000022e0| 52 65 73 75 6c 74 3b 0d | 0a 0d 0a 09 72 65 74 75 |Result;.|....retu|
|000022f0| 72 6e 20 52 65 73 75 6c | 74 3b 0d 0a 7d 0d 0a 0d |rn Resul|t;..}...|
|00002300| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 42 79 |.functio|n int By|
|00002310| 4d 61 70 28 55 42 72 6f | 77 73 65 72 53 65 72 76 |Map(UBro|wserServ|
|00002320| 65 72 4c 69 73 74 20 54 | 2c 20 55 42 72 6f 77 73 |erList T|, UBrows|
|00002330| 65 72 53 65 72 76 65 72 | 4c 69 73 74 20 42 29 0d |erServer|List B).|
|00002340| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 52 |.{...loc|al int R|
|00002350| 65 73 75 6c 74 3b 0d 0a | 0d 0a 09 69 66 28 42 20 |esult;..|...if(B |
|00002360| 3d 3d 20 4e 6f 6e 65 29 | 20 72 65 74 75 72 6e 20 |== None)| return |
|00002370| 2d 31 3b 0d 0a 09 0d 0a | 09 69 66 28 54 2e 50 69 |-1;.....|.if(T.Pi|
|00002380| 6e 67 20 3d 3d 20 39 39 | 39 39 29 20 72 65 74 75 |ng == 99|99) retu|
|00002390| 72 6e 20 31 3b 0d 0a 09 | 69 66 28 42 2e 50 69 6e |rn 1;...|if(B.Pin|
|000023a0| 67 20 3d 3d 20 39 39 39 | 39 29 20 72 65 74 75 72 |g == 999|9) retur|
|000023b0| 6e 20 2d 31 3b 0d 0a 0d | 0a 09 69 66 28 54 2e 4d |n -1;...|..if(T.M|
|000023c0| 61 70 44 69 73 70 6c 61 | 79 4e 61 6d 65 20 3c 20 |apDispla|yName < |
|000023d0| 42 2e 4d 61 70 44 69 73 | 70 6c 61 79 4e 61 6d 65 |B.MapDis|playName|
|000023e0| 29 0d 0a 09 7b 0d 0a 09 | 09 52 65 73 75 6c 74 20 |)...{...|.Result |
|000023f0| 3d 20 2d 31 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |= -1;...|}...else|
|00002400| 20 0d 0a 09 69 66 20 28 | 54 2e 4d 61 70 44 69 73 | ...if (|T.MapDis|
|00002410| 70 6c 61 79 4e 61 6d 65 | 20 3e 20 42 2e 4d 61 70 |playName| > B.Map|
|00002420| 44 69 73 70 6c 61 79 4e | 61 6d 65 29 0d 0a 09 7b |DisplayN|ame)...{|
|00002430| 0d 0a 09 09 52 65 73 75 | 6c 74 20 3d 20 31 3b 0d |....Resu|lt = 1;.|
|00002440| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 7b 0d 0a |..}...el|se...{..|
|00002450| 09 09 52 65 73 75 6c 74 | 20 3d 20 54 2e 50 69 6e |..Result| = T.Pin|
|00002460| 67 20 2d 20 42 2e 50 69 | 6e 67 3b 0d 0a 09 7d 0d |g - B.Pi|ng;...}.|
|00002470| 0a 0d 0a 09 69 66 28 62 | 53 6f 72 74 44 65 73 63 |....if(b|SortDesc|
|00002480| 65 6e 64 69 6e 67 29 0d | 0a 09 09 52 65 73 75 6c |ending).|...Resul|
|00002490| 74 20 3d 20 2d 52 65 73 | 75 6c 74 3b 0d 0a 09 0d |t = -Res|ult;....|
|000024a0| 0a 09 72 65 74 75 72 6e | 20 52 65 73 75 6c 74 3b |..return| Result;|
|000024b0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000024c0| 69 6e 74 20 42 79 50 6c | 61 79 65 72 73 28 55 42 |int ByPl|ayers(UB|
|000024d0| 72 6f 77 73 65 72 53 65 | 72 76 65 72 4c 69 73 74 |rowserSe|rverList|
|000024e0| 20 54 2c 20 55 42 72 6f | 77 73 65 72 53 65 72 76 | T, UBro|wserServ|
|000024f0| 65 72 4c 69 73 74 20 42 | 29 0d 0a 7b 0d 0a 09 6c |erList B|)..{...l|
|00002500| 6f 63 61 6c 20 69 6e 74 | 20 52 65 73 75 6c 74 3b |ocal int| Result;|
|00002510| 0d 0a 0d 0a 09 69 66 28 | 42 20 3d 3d 20 4e 6f 6e |.....if(|B == Non|
|00002520| 65 29 20 72 65 74 75 72 | 6e 20 2d 31 3b 0d 0a 09 |e) retur|n -1;...|
|00002530| 0d 0a 09 69 66 28 54 2e | 50 69 6e 67 20 3d 3d 20 |...if(T.|Ping == |
|00002540| 39 39 39 39 29 20 72 65 | 74 75 72 6e 20 31 3b 0d |9999) re|turn 1;.|
|00002550| 0a 09 69 66 28 42 2e 50 | 69 6e 67 20 3d 3d 20 39 |..if(B.P|ing == 9|
|00002560| 39 39 39 29 20 72 65 74 | 75 72 6e 20 2d 31 3b 0d |999) ret|urn -1;.|
|00002570| 0a 0d 0a 09 69 66 28 54 | 2e 4e 75 6d 50 6c 61 79 |....if(T|.NumPlay|
|00002580| 65 72 73 20 3e 20 42 2e | 4e 75 6d 50 6c 61 79 65 |ers > B.|NumPlaye|
|00002590| 72 73 29 0d 0a 09 7b 0d | 0a 09 09 52 65 73 75 6c |rs)...{.|...Resul|
|000025a0| 74 20 3d 20 2d 31 3b 0d | 0a 09 7d 0d 0a 09 65 6c |t = -1;.|..}...el|
|000025b0| 73 65 0d 0a 09 69 66 20 | 28 54 2e 4e 75 6d 50 6c |se...if |(T.NumPl|
|000025c0| 61 79 65 72 73 20 3c 20 | 42 2e 4e 75 6d 50 6c 61 |ayers < |B.NumPla|
|000025d0| 79 65 72 73 29 0d 0a 09 | 7b 0d 0a 09 09 52 65 73 |yers)...|{....Res|
|000025e0| 75 6c 74 20 3d 20 31 3b | 0d 0a 09 7d 0d 0a 09 65 |ult = 1;|...}...e|
|000025f0| 6c 73 65 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 54 |lse...{.|...if (T|
|00002600| 2e 4d 61 78 50 6c 61 79 | 65 72 73 20 3e 20 42 2e |.MaxPlay|ers > B.|
|00002610| 4d 61 78 50 6c 61 79 65 | 72 73 29 0d 0a 09 09 7b |MaxPlaye|rs)....{|
|00002620| 0d 0a 09 09 09 52 65 73 | 75 6c 74 20 3d 20 2d 31 |.....Res|ult = -1|
|00002630| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00002640| 09 09 69 66 28 54 2e 4d | 61 78 50 6c 61 79 65 72 |..if(T.M|axPlayer|
|00002650| 73 20 3c 20 42 2e 4d 61 | 78 50 6c 61 79 65 72 73 |s < B.Ma|xPlayers|
|00002660| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 52 65 73 75 6c |)....{..|...Resul|
|00002670| 74 20 3d 20 31 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 |t = 1;..|..}....e|
|00002680| 6c 73 65 0d 0a 09 09 7b | 0d 0a 09 09 09 52 65 73 |lse....{|.....Res|
|00002690| 75 6c 74 20 3d 20 54 2e | 50 69 6e 67 20 2d 20 42 |ult = T.|Ping - B|
|000026a0| 2e 50 69 6e 67 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |.Ping;..|..}...}.|
|000026b0| 0a 0d 0a 09 69 66 28 62 | 53 6f 72 74 44 65 73 63 |....if(b|SortDesc|
|000026c0| 65 6e 64 69 6e 67 29 0d | 0a 09 09 52 65 73 75 6c |ending).|...Resul|
|000026d0| 74 20 3d 20 2d 52 65 73 | 75 6c 74 3b 0d 0a 0d 0a |t = -Res|ult;....|
|000026e0| 09 72 65 74 75 72 6e 20 | 52 65 73 75 6c 74 3b 0d |.return |Result;.|
|000026f0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 53 |.}....fu|nction S|
|00002700| 68 6f 77 49 6e 66 6f 28 | 55 42 72 6f 77 73 65 72 |howInfo(|UBrowser|
|00002710| 53 65 72 76 65 72 4c 69 | 73 74 20 4c 69 73 74 29 |ServerLi|st List)|
|00002720| 0d 0a 7b 0d 0a 09 55 42 | 72 6f 77 73 65 72 53 65 |..{...UB|rowserSe|
|00002730| 72 76 65 72 4c 69 73 74 | 57 69 6e 64 6f 77 28 47 |rverList|Window(G|
|00002740| 65 74 50 61 72 65 6e 74 | 28 63 6c 61 73 73 27 55 |etParent|(class'U|
|00002750| 42 72 6f 77 73 65 72 53 | 65 72 76 65 72 4c 69 73 |BrowserS|erverLis|
|00002760| 74 57 69 6e 64 6f 77 27 | 29 29 2e 53 68 6f 77 49 |tWindow'|)).ShowI|
|00002770| 6e 66 6f 28 4c 69 73 74 | 29 3b 0d 0a 7d 0d 0a 0d |nfo(List|);..}...|
|00002780| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 66 72 65 73 |.functio|n Refres|
|00002790| 68 28 29 0d 0a 7b 0d 0a | 09 55 42 72 6f 77 73 65 |h()..{..|.UBrowse|
|000027a0| 72 53 65 72 76 65 72 4c | 69 73 74 57 69 6e 64 6f |rServerL|istWindo|
|000027b0| 77 28 47 65 74 50 61 72 | 65 6e 74 28 63 6c 61 73 |w(GetPar|ent(clas|
|000027c0| 73 27 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |s'UBrows|erServer|
|000027d0| 4c 69 73 74 57 69 6e 64 | 6f 77 27 29 29 2e 52 65 |ListWind|ow')).Re|
|000027e0| 66 72 65 73 68 28 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |fresh();|..}....f|
|000027f0| 75 6e 63 74 69 6f 6e 20 | 52 65 66 72 65 73 68 53 |unction |RefreshS|
|00002800| 65 72 76 65 72 28 29 0d | 0a 7b 0d 0a 09 54 69 6d |erver().|.{...Tim|
|00002810| 65 50 61 73 73 65 64 20 | 3d 20 41 75 74 6f 50 69 |ePassed |= AutoPi|
|00002820| 6e 67 49 6e 74 65 72 76 | 61 6c 3b 0d 0a 7d 0d 0a |ngInterv|al;..}..|
|00002830| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 52 65 50 69 6e |..functi|on RePin|
|00002840| 67 28 29 0d 0a 7b 0d 0a | 09 55 42 72 6f 77 73 65 |g()..{..|.UBrowse|
|00002850| 72 53 65 72 76 65 72 4c | 69 73 74 57 69 6e 64 6f |rServerL|istWindo|
|00002860| 77 28 47 65 74 50 61 72 | 65 6e 74 28 63 6c 61 73 |w(GetPar|ent(clas|
|00002870| 73 27 55 42 72 6f 77 73 | 65 72 53 65 72 76 65 72 |s'UBrows|erServer|
|00002880| 4c 69 73 74 57 69 6e 64 | 6f 77 27 29 29 2e 52 65 |ListWind|ow')).Re|
|00002890| 50 69 6e 67 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 00 |Ping();.|.}..... |
+--------+-------------------------+-------------------------+--------+--------+