// 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 MenuTrainingSignalLocation extends MenuSignalLocation; function bool InternalOnClick(GUIComponent Sender) { local PlayerController pc; pc = PlayerOwner(); if(Sender == Controls[1]) { // Quit Button Controller.ReplaceMenu("GeoSimulator.MenuTrainingMarker"); } else if(Sender == Controls[2]) { // Help Button Controller.OpenMenu("GeoSimulator.HelpMenuTrainingSignalLocation"); bVisible = false; } else if(Sender == Controls[3]) { // Next Button storeLocationValue(); // switch for kind of signal to determine menu to be opened switch(GeoPC.NewSignal.SignalType) { case SIG_Crack: Controller.ReplaceMenu("GeoSimulator.MenuTrainingCrack"); break; case SIG_NONE: Controller.ReplaceMenu("GeoSimulator.MenuTrainingChooseSignal"); break; } } else if(Sender == Controls[4]) { // Previous Button storeLocationValue(); Controller.ReplaceMenu("GeoSimulator.MenuTrainingChooseSignal"); } else if(Sender == Controls[6] || Sender == Controls[7] || Sender == Controls[8] || Sender == Controls[9] || Sender == Controls[10]) { // an image SetImageSelections(Sender); } return true; } defaultproperties { }