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

  1. // ====================================================================
  2. //  Class:  GUI.GUIPanel
  3. //
  4. //  The GUI panel is a visual control that holds components.  All
  5. //  components who are children of the GUIPanel are bound to the panel
  6. //  by default.
  7. //
  8. //  Written by Joe Wilcox
  9. //  (c) 2002, Epic Games, Inc.  All Rights Reserved
  10. // ====================================================================
  11.  
  12. class GUIPanel extends GUIMultiComponent
  13.     Native;
  14.  
  15. cpptext
  16. {
  17.         void Draw(UCanvas* Canvas);
  18.         UBOOL PerformHitTest(INT MouseX, INT MouseY);
  19.  
  20. }
  21.  
  22. var(Menu)    Material    Background;
  23.  
  24. function InitComponent(GUIController MyController, GUIComponent MyOwner)
  25. {
  26.     local int i;
  27.  
  28.     Super.Initcomponent(MyController, MyOwner);
  29.  
  30.     for (i=0;i<Controls.length;i++)
  31.     {
  32.         Controls[i].bBoundToParent=true;
  33.         Controls[i].bScaleToParent=true;
  34.     }
  35.  
  36.     MapControls();
  37.  
  38. }
  39.  
  40. event MenuStateChange(eMenuState Newstate)
  41. {
  42.     Super(GUIComponent).MenuStateChange(NewState);    // Skip the Multicomp's state change
  43. }
  44.  
  45.  
  46. defaultproperties
  47. {
  48.     PropagateVisibility=True
  49.     bTabStop=False
  50. }