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 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 |
// ==================================================================== // Class: GUI.GUI // // GUI is an abstract class that holds all of the enums and structs // for the UI system // // Written by Joe Wilcox // (c) 2002, Epic Games, Inc. All Rights Reserved // ==================================================================== /*============================================================================= In Game GUI Editor System V1.0 2003 - Irrational Games, LLC. * Dan Kaplan =============================================================================*/ #if !IG_GUI_LAYOUT #error This code requires IG_GUI_LAYOUT to be defined due to extensive revisions of the origional code. [DKaplan] #endif /*===========================================================================*/ class GUI extends Core.Object Abstract instanced native; cpptext { virtual void CopyConfig(UGUI* toOther); // copy the config of this to another component static FString StripCodes( FString instr ); static FString MakeColorCode( FColor theColor ); static int CharToHex( char c ); static char HexToChar( int i ); } enum eProgressDirection { DIRECTION_LeftToRight, DIRECTION_RightToLeft, DIRECTION_TopToBottom, DIRECTION_BottomToTop, }; // -- These are set at spawn var(GUIState) Editinline EditConst GUIController Controller "Callback to the GUIController running the show"; enum eMenuState // Defines the various states of a component { MSAT_Blurry, // Component has no focus at all MSAT_Watched, // Component is being watched (ie: Mouse is hovering over, etc) MSAT_Focused, // Component is Focused (ie: selected) MSAT_Pressed, // Component is being pressed MSAT_Disabled, // Component is disabled. (ie: greyed out) }; enum eTextAlign // Used for aligning text in a box { TXTA_Left, TXTA_Center, TXTA_Right, }; enum eTextCase // Used for forcing case on text { TXTC_None, TXTC_Upper, TXTC_Lower, }; enum eImgStyle // Used to define the style for an image { ISTY_Normal, ISTY_Stretched, ISTY_Scaled, ISTY_Bound, ISTY_Justified, }; enum eImgAlign // Used for aligning justified images in a box { IMGA_TopLeft, IMGA_Center, IMGA_BottomRight, }; enum eEditMask // Used to define the mask of an input box { EDM_None, EDM_Alpha, EDM_Numeric, }; enum EMenuRenderStyle { MSTY_None, MSTY_Normal, MSTY_Masked, MSTY_Translucent, MSTY_Modulated, MSTY_Alpha, MSTY_Additive, MSTY_Subtractive, MSTY_Particle, MSTY_AlphaZ, }; enum eIconPosition { ICP_Normal, ICP_Center, ICP_Scaled, ICP_Stretched, ICP_Bound, }; enum eXControllerCodes { XC_Up, XC_Down, XC_Left, XC_Right, XC_A, XC_B, XC_X, XC_Y, XC_Black, XC_White, XC_LeftTrigger, XC_RightTrigger, XC_PadUp, XC_PadDown, XC_PadLeft, XC_PadRight, XC_Start, XC_Back, XC_LeftThumb, XC_RightThumb, }; // these Globals are used for Dialogue popups var const int QBTN_Ok; var const int QBTN_Cancel; var const int QBTN_Retry; var const int QBTN_Continue; var const int QBTN_Yes; var const int QBTN_No; var const int QBTN_Abort; var const int QBTN_Ignore; var const int QBTN_OkCancel; var const int QBTN_AbortRetry; var const int QBTN_YesNo; var const int QBTN_YesNoCancel; var const int QBTN_TimeOut; enum eListElemDisplay { LIST_ELEM_Item, LIST_ELEM_ExtraData, LIST_ELEM_ExtraStrData, LIST_ELEM_ExtraIntData, LIST_ELEM_ExtraBoolData, }; struct GUIListElem { var string item; var object ExtraData; var string ExtraStrData; var int ExtraIntData; var bool ExtraBoolData; }; struct ControlSpec { var() config string ClassName "Name of the class to create"; var() config string ObjName "Name of the object to be created"; }; static function GUIListElem CreateElement( optional string NewItem, optional Object obj, optional string Str, optional int intData, optional bool bData) { local GUIListElem newElem; newElem.Item=NewItem; newElem.ExtraData=obj; newElem.ExtraStrData=Str; newElem.ExtraIntData=intData; newElem.ExtraBoolData=bData; return newElem; } native function CopyConfig( GUIComponent Ctrl ); native function String StripCodes( String InStr ); native function String MakeColorCode( Color clr ); #if IG_TRIBES3 // michaelj: Integrated UT2004 GUI function // GUI-wide utility functions static function bool IsDigit( string Test, optional bool bAllowDecimal ) { if ( Test == "" ) return false; while ( Test != "" ) { if ( Asc(Left(Test,1)) > 57 ) return false; if ( Asc(Left(Test,1)) < 48 && !(bAllowDecimal && Left(Test,1) == ".") ) return false; Test = Mid(Test,1); } return true; } #endif defaultproperties { QBTN_Ok=1 QBTN_Cancel=2 QBTN_Retry=4 QBTN_Continue=8 QBTN_Yes=16 QBTN_No=32 QBTN_Abort=64 QBTN_Ignore=128 QBTN_TimeOut=256 QBTN_OkCancel=3 //QBTN_Ok|QBTN_Cancel; //3 QBTN_AbortRetry=68 //QBTN_Abort|QBTN_Retry; //68 QBTN_YesNo=48 //QBTN_Yes|QBTN_No; //48 QBTN_YesNoCancel=50 //QBTN_Yes|QBTN_No|QBTN_Cancel; //50 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |