// 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. //============================================================================= // Class for MAIN MENU BACKGROUND // ------------------------------------------------------------ // // © 2006, Geodelft // // Date Id Modification // 2006-10-09 The Created this header // 2006-10-10 The Added correct init for traininglevel // 2006-10-26 The Formatted code //============================================================================= class MainMenu extends GUIPage; #exec OBJ LOAD FILE=GUIContent.utx var bool AllowClose; var Tab_InstantActionMain MapTab; var Tab_PlayerSettings pPlayer; var float SavedPitch; var bool AllowSelect; // To make sure that on sub menus appear can't click on options //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(MyController, MyOwner); Controller.OpenMenu("GeoInterface.MainMenuOptions"); } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function InternalOnClose(optional Bool bCanceled) { local rotator NewRot; // Reset player NewRot = PlayerOwner().Rotation; NewRot.Pitch = SavedPitch; PlayerOwner().SetRotation(NewRot); // Save config. pPlayer.InternalApply(none); Super.OnClose(bCanceled); } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= defaultproperties { Background=Texture'GeoDelft.BackGround0' WinWidth=1.0 WinHeight=1.0 WinTop=0.0 WinLeft=0.0 OnClose=InternalOnClose AllowClose=False bAllowedAsLast=true bDisconnectOnOpen=false AllowSelect = true bPersistent=true }