home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / GUI / Classes / GUI.uc < prev    next >
Text File  |  2003-06-30  |  3KB  |  128 lines

  1. // ====================================================================
  2. //  Class:  GUI.GUI
  3. // 
  4. //  GUI is an abstract class that holds all of the enums and structs
  5. //  for the UI system 
  6. //
  7. //  Written by Joe Wilcox
  8. //  (c) 2002, Epic Games, Inc.  All Rights Reserved
  9. // ====================================================================
  10.  
  11. class GUI extends object
  12.     Abstract instanced native;
  13.  
  14. // -- These are set at spawn
  15.  
  16. var                GUIController         Controller;                // Callback to the GUIController running the show
  17.     
  18. enum eMenuState        // Defines the various states of a component
  19. {
  20.     MSAT_Blurry,            // Component has no focus at all
  21.     MSAT_Watched,            // Component is being watched (ie: Mouse is hovering over, etc)  
  22.     MSAT_Focused,            // Component is Focused (ie: selected)
  23.     MSAT_Pressed,            // Component is being pressed
  24.     MSAT_Disabled,            // Component is disabled.
  25. };
  26.  
  27. enum eTextAlign        // Used for aligning text in a box
  28. {
  29.     TXTA_Left,
  30.     TXTA_Center,
  31.     TXTA_Right,
  32. };
  33.  
  34. enum eTextCase        // Used for forcing case on text
  35. {
  36.     TXTC_None,
  37.     TXTC_Upper,
  38.     TXTC_Lower,
  39. };
  40.  
  41. enum eImgStyle        // Used to define the style for an image
  42. {
  43.     ISTY_Normal,
  44.     ISTY_Stretched,
  45.     ISTY_Scaled,
  46.     ISTY_Bound,
  47.     ISTY_Justified,
  48. };
  49.  
  50. enum eImgAlign        // Used for aligning justified images in a box
  51. {
  52.     IMGA_TopLeft,
  53.     IMGA_Center,
  54.     IMGA_BottomRight,
  55. };
  56.  
  57. enum eEditMask        // Used to define the mask of an input box
  58. {
  59.     EDM_None,
  60.     EDM_Alpha,
  61.     EDM_Numeric,
  62. };
  63.  
  64. enum EMenuRenderStyle
  65. {
  66.     MSTY_None,
  67.     MSTY_Normal,
  68.     MSTY_Masked,
  69.     MSTY_Translucent,
  70.     MSTY_Modulated,
  71.     MSTY_Alpha,
  72.     MSTY_Additive,
  73.     MSTY_Subtractive,
  74.     MSTY_Particle,
  75.     MSTY_AlphaZ,
  76. };
  77.  
  78. enum eIconPosition
  79. {
  80.     ICP_Normal,
  81.     ICP_Center,
  82.     ICP_Scaled,
  83.     ICP_Stretched,
  84.     ICP_Bound,
  85. };
  86.  
  87. enum ePageAlign            // Used to Align panels to a form.
  88. {
  89.     PGA_None,
  90.     PGA_Client,
  91.     PGA_Left,
  92.     PGA_Right,
  93.     PGA_Top,
  94.     PGA_Bottom,
  95. };
  96.  
  97. enum eXControllerCodes
  98. {
  99.     XC_Up, XC_Down, XC_Left, XC_Right,
  100.     XC_A, XC_B, XC_X, XC_Y,
  101.     XC_Black, XC_White,
  102.     XC_LeftTrigger, XC_RightTrigger,
  103.     XC_PadUp, XC_PadDown, XC_PadLeft, XC_PadRight,
  104.     XC_Start, XC_Back,
  105.     XC_LeftThumb, XC_RightThumb,
  106. };
  107.  
  108. const QBTN_Ok            =1;
  109. const QBTN_Cancel        =2;
  110. const QBTN_Retry        =4;
  111. const QBTN_Continue        =8;
  112. const QBTN_Yes            =16;
  113. const QBTN_No            =32;
  114. const QBTN_Abort        =64;
  115. const QBTN_Ignore        =128;
  116. const QBTN_OkCancel        =3;
  117. const QBTN_AbortRetry    =68;
  118. const QBTN_YesNo        =48;
  119. const QBTN_YesNoCancel    =50;
  120.  
  121. struct GUIListElem
  122. {
  123.     var string item;
  124.     var object ExtraData;
  125.     var string ExtraStrData;
  126. };
  127.  
  128.