home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
GUI
/
Classes
/
GUIPanel.uc
< prev
next >
Wrap
Text File
|
2003-06-30
|
1KB
|
50 lines
// ====================================================================
// Class: GUI.GUIPanel
//
// The GUI panel is a visual control that holds components. All
// components who are children of the GUIPanel are bound to the panel
// by default.
//
// Written by Joe Wilcox
// (c) 2002, Epic Games, Inc. All Rights Reserved
// ====================================================================
class GUIPanel extends GUIMultiComponent
Native;
cpptext
{
void Draw(UCanvas* Canvas);
UBOOL PerformHitTest(INT MouseX, INT MouseY);
}
var(Menu) Material Background;
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
local int i;
Super.Initcomponent(MyController, MyOwner);
for (i=0;i<Controls.length;i++)
{
Controls[i].bBoundToParent=true;
Controls[i].bScaleToParent=true;
}
MapControls();
}
event MenuStateChange(eMenuState Newstate)
{
Super(GUIComponent).MenuStateChange(NewState); // Skip the Multicomp's state change
}
defaultproperties
{
PropagateVisibility=True
bTabStop=False
}