// 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. //============================================================================= // Extension of class for training level // ------------------------------------------------------------ // Created by Rui Guimaraes // © 2006, Geodelft // // Date Id Modification // 2006-09-21 Gui Created class // //============================================================================= class MenuTrainingChooseSignal extends MenuChooseSignal; function InitComponent(GUIController MyController, GUIComponent MyOwner) { local int i; Super.InitComponent(MyController, MyOwner); for(i=5; i<17; i++) { if(i!=7) //Crack not disabled { moCheckBox(Controls[i]).MyCheckBox.MenuState=MSAT_Disabled; moCheckBox(Controls[i]).MyLabel.MenuState=MSAT_Disabled; moCheckBox(Controls[i]).LabelColor.A=100; } } } function bool InternalOnClick(GUIComponent Sender) { local int i; local PlayerController pc; pc = PlayerOwner(); for(i = 0; i < Controls.length; i++) { if(Sender == Controls[i]) { switch(i) { case 1: // Quit Button Controller.ReplaceMenu("GeoSimulator.MenuTrainingMarker"); // Controller.CloseMenu(); break; case 2: // Help Button Controller.OpenMenu("GeoSimulator.HelpMenuTrainingChooseSignal"); bVisible = false; break; case 3: // Next Button StoreResult(); Controller.ReplaceMenu("GeoSimulator.MenuTrainingSignalLocation"); break; } } } return true; } defaultproperties { }