// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. // ************************************************************************************************ // This menu is separated so it can be used as ingame Settings Menu as well as in the Main Menu // // // ************************************************************************************************ class MenuTrainingHandbook extends MenuHandbook; function bool InternalOnClick(GUIComponent Sender) { local int i; for(i = 0; i < Controls.length; i++) { if(Sender == Controls[i]) { switch(i) { case 1: // Quit Button Controller.ReplaceMenu("GeoSimulator.MenuTrainingInventory"); break; case 2: // Help Button Controller.OpenMenu("GeoSimulator.HelpMenuTrainingHandBook"); bVisible = false; break; } } } return true; } function bool InternalOnKeyEvent(out byte Key,out byte State,float delta) { // Swallow first escape key event (key up from key down that opened menu) if(bIgnoreEsc && Key == 0x1B) { bIgnoreEsc = false; return true; } else if (Key ==0x1B ) { Controller.ReplaceMenu("GeoSimulator.MenuTrainingInventory"); return true; } } defaultproperties { }