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 |
// ==================================================================== // Class: TribesGui.TribesDisconnectMenu // // Menu to load map from entry screen. // ==================================================================== class TribesDisconnectMenu extends TribesGUIPage ; var(TribesGui) private EditInline Config GUIButton OKButton "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUILabel ReasonLabel "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUILabel TitleLabel "A component of this page which has its behavior defined in the code for this page's class."; var() localized string GenericDisconnectMessage; var localized bool OnOKMenu; function InitComponent(GUIComponent MyOwner) { Super.InitComponent(MyOwner); OKButton.OnClick = OnOKClicked; } function HandleParameters(string Param1, string Param2, optional int Param3) { if (Param1 != "") TitleLabel.SetCaption(Param1); else TitleLabel.SetCaption(""); if (Param2 != "") ReasonLabel.SetCaption(Param2); else ReasonLabel.SetCaption(GenericDisconnectMessage); OnOKMenu = Param3 != -1; } function OnOKClicked(GUIComponent Sender) { Controller.CloseMenu(); if (!OnOKMenu) { Controller.OpenMenu("TribesGui.TribesMultiplayerMenu", "TribesMultiplayerMenu"); } Controller.ViewportOwner.Actor.SetPause(false); } defaultproperties { GenericDisconnectMessage = "Rejected by server" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |