// 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 MenuLevelOptionsTwoDroogte extends MenuLevelOptions; function SetFailures() { ScenarioNumber = 2; // super.setFailures(); FailuresToActivate.Remove(0,FailuresToActivate.Length); FailuresToActivate.Insert(0,4); /// Maximum number of possible failures: MaxFailures=0; MaxFailuresRegional = 20; MaxFailuresPrimary = 0; /* * new Failuretype */ FailuresToActivate[0].MaxCount = 2; FailuresToActivate[0].Mechanism = FM_DroogteWilnis; /* * new Failuretype */ FailuresToActivate[1].Mechanism = FM_DroogteWigCrack; FailuresToActivate[1].MaxCount = 4; FailuresToActivate[2].Mechanism = FM_DroogteMultipleCracks; FailuresToActivate[2].MaxCount = 8; FailuresToActivate[3].Mechanism = FM_WaterQuality; FailuresToActivate[3].MaxCount = 8; super.setFailures(); } function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(MyController, MyOwner); /// Hide rain button: Super.HideWeatherButtons(); } 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("GeoInterface.MainMenuOptions"); return true; } } //============================================================================= // Date Id Modification // 2007-08-20 Zmr Created this header //============================================================================= defaultproperties { // *********************************** // To set by the extending page // *********************************** NL_Title="Regio 2 - Glazendorp" EN_Title="Region 2 - Glazendorp" MapPicture = Material'GeoDelft.MapPreview.Level2screenshot'; NL_DescriptionDG = "Glazendorp ||Door een langdurig droge periode zijn hier mogelijk schadebeelden aanwezig die te maken hebben met de uitdroging van de dijken." EN_DescriptionDG = "Glazendorp ||Because of weeks of drought, there might be signals indicating dehydration of the levees." MapUrl="Scenario2DGDroog" }