// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // //============================================================================= // 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 MenuMenuBackground extends GUIPage; #exec OBJ LOAD FILE=GUIContent.utx var bool AllowClose; var float SavedPitch; var bool AllowSelect; // To make sure that on sub menus appear can't click on parent menu's components //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= function InitComponent(GUIController MyController, GUIComponent MyOwner) { Super.InitComponent(MyController, MyOwner); Controller.OpenMenu("GeoInterface.MenuMainMenu"); } //============================================================================= // 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); Super.OnClose(bCanceled); } //============================================================================= // Date Id Modification // 2006-10-26 The Created this header //============================================================================= // Background=Texture'GeoDelft.BackGround0' defaultproperties { WinWidth=1.0 WinHeight=1.0 WinTop=0.0 WinLeft=0.0 AllowClose=False AllowSelect= true bAllowedAsLast=true bDisconnectOnOpen=false //bBoundToParent=True //bScaleToParent=True //bNeverFocus=True bPersistent=false OnClose=InternalOnClose }