// 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 MenuTrainingSignalQuestions extends MenuSignalQuestions; function bool InternalOnClick(GUIComponent Sender) { // FUNCTIONALITY: react to mouseclicks on GUIComponents. // subclasses should call this function from their superclass first (handling the standard components and radiobutton-checking), // then add functionality for answerbuttons (which will not be necessary for most subclasses). local int i; local PlayerController pc; pc = PlayerOwner(); for(i = 0; i < Controls.length; i++) { if(Sender == Controls[i]) { if(i == 1) { // Quit Button Controller.ReplaceMenu("GeoSimulator.MenuTrainingMarker"); } else if(i == 2) { // Help Button - ONLY CRACK WILL BE ABLE TO BE CHOOSEN Controller.OpenMenu("GeoSimulator.HelpMenuTrainingCrack"); bVisible = false; } else if(i == 3) { // Finish Button // look at current values in answers and save it in GeoPC.NewSignal // then order GeoPC to make/save this NewSignal // then go to the MenuObservations storeAnswerValues(); GeoPC.SaveNewSignal(); Controller.ReplaceMenu("GeoSimulator.MenuTrainingObservationMain"); } else if(i == 5) { // Previous Button // look at current values in answers and save it in GeoPC.NewSignal // then go to previous page (with location) storeAnswerValues(); if(GeoPC.ReportingMode == MODE_CreatingNewObservation) { GeoPC.ReportingMode = MODE_EditingFirstReport; }else if(GeoPC.ReportingMode == MODE_AddingNewReport) { GeoPC.ReportingMode = MODE_EditingLaterReport; } Controller.ReplaceMenu("GeoSimulator.MenuTrainingSignalLocation"); } } } return true; } defaultproperties { }