// 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 // 2006-11-27 Zmr Made Cancel button really an cancel button // 2007-06-10 gui Maps sizes can now be editable individually in GeoMapDetails //============================================================================= class MenuTrainingRedMarkerLocation extends MenuRedMarkerLocation; function bool InternalOnClick(GUIComponent Sender) { local int i; local PlayerController pc; local GeoPlayerControllerTraining GeoPCTrain; pc = PlayerOwner(); GeoPCTrain = GeoPlayerControllerTraining(pc); for(i=0; i<11; i++) { if(Sender==Controls[i]) { switch(i) { case 1: /*quit if(PreviousLocationSign!=None) { GeoPC.NearByMarker.GlobalLocation.LocationSign=PreviousLocationSign; } */ GeoPC.NearByMarker.GlobalLocation = LocationBeforeDrawn; // reset location before drawing of this menu. Controller.ReplaceMenu("GeoSimulator.MenuTrainingMarker"); // Close _all_ menus break; case 2: //HELP Controller.ReplaceMenu("GeoSimulator.HelpMenuTrainingRedMarkerLocation"); break; case 3: Controller.OpenMenu("GeoInterface.NotAvailable"); break; case 7: //ok is pressed, so quit if(PreviousLocationSign!=None) { GeoPC.NearByMarker.GlobalLocation.LocationSign=PreviousLocationSign; } GeoPCTrain.TrainSubStep++; GeoPCTrain.SetTrainStepMsg(); GeoPCTrain.TakingAction=true; Controller.ReplaceMenu("GeoSimulator.MenuTrainingConversation"); // Close _all_ menus break; } } } return true; } defaultproperties { }