Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 |
//----------------------------------------------------------- // //----------------------------------------------------------- class ROUT2k4ServerBrowser extends UT2k4ServerBrowser; // Commented out until we can finish up the functionality //var localized string AllGameTypesText; // Text to display in the game type filter tab when you want to show all game types var private ROMasterServerClient ROMSC; function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.Initcomponent(MyController, MyOwner); } /*function bool ComboOnPreDraw(Canvas Canvas) { co_GameType.WinTop = co_GameType.RelativeTop(t_Header.ActualTop() + t_Header.ActualHeight() + float(Controller.ResY) / 480.0) + 0.01; co_GameType.WinLeft = co_GameType.RelativeLeft((c_Tabs.ActualLeft() + c_Tabs.ActualWidth()) - (co_GameType.ActualWidth() + 3)) + 0.01; return false; }*/ function InternalOnChange(GUIComponent Sender) { if ( GUITabButton(Sender) != None ) { // Update gametype combo box visibility co_GameType.SetVisibility(false); } } function MasterServerClient Uplink() { if ( ROMSC == None && PlayerOwner() != None ) ROMSC = PlayerOwner().Spawn( class'ROMasterServerClient' ); return ROMSC; } function CreateTabs() { local int i; for ( i = 0; i < PanelCaption.Length && i < PanelClass.Length && i < PanelHint.Length; i++ ) { if ( PanelClass[i] != "" ) AddTab(PanelCaption[i], PanelClass[i], PanelHint[i]); } // Must perform the first refresh manually, since the RefreshFooter delegate won't be assigned // when the first tab panel receives the first call to ShowPanel() RefreshFooter( UT2K4Browser_Page(c_Tabs.ActiveTab.MyPanel),"false" ); } // Commented out until we can finish up the functionality /* function InitializeGameTypeCombo(optional bool ClearFirst) { local int i, j; local UT2K4Browser_ServersList ListObj; local array<CacheManager.MapRecord> Maps; co_GameType.MyComboBox.MaxVisibleItems = 10; PopulateGameTypes(); if (ClearFirst) co_GameType.MyComboBox.List.Clear(); j = -1; ListObj = new(None) class'GUI2K4.UT2K4Browser_ServersList'; co_GameType.AddItem(AllGameTypesText, ListObj, "Any"); // Create a seperate list for each gametype, and store the lists in the combo box for (i = 0; i < Records.Length; i++) { class'CacheManager'.static.GetMapList( Maps, Records[i].MapPrefix ); // if ( Maps.Length == 0 ) // continue; ListObj = new(None) class'GUI2K4.UT2K4Browser_ServersList'; co_GameType.AddItem(Records[i].GameName, ListObj, Records[i].ClassName); // if (Records[i].ClassName ~= CurrentGameType) // j = i; } j = co_GameType.FindIndex(CurrentGameType,true,true); //j = co_GameType.FindIndex("Any",true,true); if (j != -1) { co_GameType.SetIndex(j); SetFilterInfo(); } }*/ defaultproperties { CurrentGameType="ROEngine.ROTeamGame" Begin Object Class=ROUT2K4Browser_Footer Name=FooterPanel Spacer=0.010000 WinHeight=0.070000 TabOrder=4 OnPreDraw=FooterPanel.InternalOnPreDraw End Object t_Footer=ROUT2K4Browser_Footer'ROInterface.ROUT2k4ServerBrowser.FooterPanel' Begin Object Class=BackgroundImage Name=PageBackground Image=Texture'menuBackground.InterfaceBackgrounds.MultiMenuBack' ImageStyle=ISTY_Scaled ImageRenderStyle=MSTY_Alpha X1=0 Y1=0 X2=1024 Y2=1024 End Object i_Background=BackgroundImage'ROInterface.ROUT2k4ServerBrowser.PageBackground' i_bkChar=None PanelClass(0)="ROInterface.ROUT2k4Browser_MOTD" PanelClass(1)="ROInterface.ROUT2K4Browser_IRC" PanelClass(2)="ROInterface.ROUT2K4Browser_ServerListPageFavorites" PanelClass(3)="ROInterface.ROUT2K4Browser_ServerListPageLAN" PanelClass(4)="ROInterface.ROUT2K4Browser_ServerListPageInternet" PanelCaption(4)="Internet" PanelHint(1)="RO integrated IRC client" PanelHint(3)="View all RO servers currently running on your LAN" PanelHint(4)="Choose from hundreds of RO servers across the world" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |