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 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 |
// ==================================================================== // Class: Engine.BaseGUIController // // This is just a stub class that should be subclassed to support menus. // // Written by Joe Wilcox // (c) 2002, Epic Games, Inc. All Rights Reserved // ==================================================================== class BaseGUIController extends Interaction Native transient; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) #exec TEXTURE IMPORT NAME=MenuWhite FILE=Textures\White.tga MIPS=0 #exec TEXTURE IMPORT NAME=MenuBlack FILE=Textures\Black.tga MIPS=0 #exec TEXTURE IMPORT NAME=MenuGray FILE=Textures\Gray.tga MIPS=0 var Material DefaultPens[3]; // Contain to hold some default pens for drawing purposes // Default work menus var config string NetworkMsgMenu; // Menu used for network messages var config string QuestionMenuClass; // Menu that appears for questions // Delegates Delegate OnAdminReply(string Reply); // Called By PlayerController // ================================================ // OpenMenu - Opens a new menu and places it on top of the stack event bool OpenMenu(string NewMenuName, optional string Param1, optional string Param2) { return false; } // ================================================ // Create a bunch of menus at start up event AutoLoadMenus(); // Subclass me // ================================================ // Replaces a menu in the stack. returns true if success event bool ReplaceMenu(string NewMenuName, optional string Param1, optional string Param2, optional bool bCancelled) { return false; } event bool CloseMenu(optional bool bCanceled) // Close the top menu. returns true if success. { return true; } event CloseAll(bool bCancel, optional bool bForced); function SetControllerStatus(bool On) { bActive = On; bVisible = On; bRequiresTick=On; // Add code to pause/unpause/hide/etc the game here. } event InitializeController(); // Should be subclassed. event bool NeedsMenuResolution(); // Big Hack that should be subclassed event SetRequiredGameResolution(string GameRes); defaultproperties { DefaultPens(0)=Texture'Engine.MenuWhite' DefaultPens(1)=Texture'Engine.MenuBlack' DefaultPens(2)=Texture'Engine.MenuGray' bActive=Falsch bNativeEvents=Wahr } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |