Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 |
//============================================================================== // Created on: 09/22/2003 // Base class for all custom HUD settings menus // // Written by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4CustomHUDMenu extends LargeWindow abstract; var class<GameInfo> GameClass; var automated GUIButton b_Cancel, b_Reset, b_OK; function HandleParameters( string GameClassName, string nothing ) { Super.HandleParameters(GameClassName, nothing); if ( InitializeGameClass(GameClassName) ) LoadSettings(); } function bool InitializeGameClass( string GameClassName ); event Closed( GUIComponent Sender, bool bCancelled ) { Super.Closed(Sender, bCancelled); if ( bCancelled ) return; SaveSettings(); } function bool InternalOnClick( GUIComponent Sender ) { if ( Sender == b_Reset ) RestoreDefaults(); else if ( GUIButton(Sender) != None ) Controller.CloseMenu( GUIButton(Sender) == b_Cancel ); return true; } function InternalOnChange(GUIComponent Sender); function LoadSettings(); function SaveSettings(); function RestoreDefaults() { LoadSettings(); } defaultproperties { DefaultWidth=0.598398 DefaultHeight=0.700000 DefaultLeft=0.125000 DefaultTop=0.150000 WinWidth=0.598398 WinHeight=0.700000 WinLeft=0.125000 WinTop=0.150000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |