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 |
// ==================================================================== // Class: TribesGui.TribesMPHelpMenu // // ==================================================================== class TribesMPHelpMenu extends TribesGUIPage ; var(TribesGui) private EditInline Config GUIButton DoneButton "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUICheckboxButton DontShowButton "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUILabel MovementLabel "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUILabel TeamworkLabel "A component of this page which has its behavior defined in the code for this page's class."; var(TribesGui) private EditInline Config GUILabel EscapeLabel "A component of this page which has its behavior defined in the code for this page's class."; var localized string MovementText; var localized string TeamworkText; var localized string EscapeText; function InitComponent(GUIComponent MyOwner) { Super.InitComponent(MyOwner); DoneButton.OnClick=InternalOnClick; bEscapeable = true; OnShow=InternalOnShow; DontShowButton.bChecked=TribesGUIController(Controller).profileManager.GetActiveProfile().bShownMPHelp; } function InternalOnShow() { local string skiKey, jetKey, chatKey, quickChatKey, commandKey, escapeKey; skiKey = Controller.Master.GetKeyFromBinding("Ski", true); jetKey = Controller.Master.GetKeyFromBinding("Jet", true); chatKey = Controller.Master.GetKeyFromBinding("TribesTalk", true); quickChatKey = Controller.Master.GetKeyFromBinding("Button bQuickChat", true); commandKey = Controller.Master.GetKeyFromBinding("Button bObjectives", true); escapeKey = Controller.Master.GetKeyFromBinding("ShowEscapeMenu", true); MovementLabel.Caption = replaceStr(MovementText, jetKey, skiKey); TeamworkLabel.Caption = replaceStr(TeamworkText, chatKey, quickChatKey, commandKey); EscapeLabel.Caption = replacestr(EscapeText, escapeKey); } function InternalOnClick(GUIComponent Sender) { local PlayerProfile p; p = TribesGUIController(Controller).profileManager.GetActiveProfile(); p.bShownMPHelp = DontShowButton.bChecked; p.Store(); Controller.CloseMenu(); } defaultproperties { MovementText="Tribes is about the freedom of movement. Press '%1' to use your jetpack and fly into the air. Your jetpack has a limited amount of energy, but it recharges quickly. Press '%2' to ski down slopes. This ability is unlimited but requires practice." TeamworkText="Tribes is about teamwork. Coordinate with your team to maximize your effectiveness. Press '%1' to chat to your team. Press and hold '%2' to access a menu of pre-recorded chats. Press '%3' to see a strategic command map." EscapeText="To browse game hints, press '%1' while playing, then click the Hints tab. To see this message again, press the Help button on the Hints tab." } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |