home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
GUI
/
Classes
/
GUIListBoxBase.uc
< prev
next >
Wrap
Text File
|
2003-06-30
|
2KB
|
65 lines
// ====================================================================
// Class: GUI.GUIListBoxBase
//
// The GUIListBoxBase is a wrapper for a GUIList and it's ScrollBar
//
// Written by Joe Wilcox
// (c) 2002, Epic Games, Inc. All Rights Reserved
// ====================================================================
class GUIListBoxBase extends GUIMultiComponent
Native;
cpptext
{
void PreDraw(UCanvas* Canvas);
void Draw(UCanvas* Canvas); // Handle drawing of the component natively
}
var Automated GUIVertScrollBar MyScrollBar;
var GUIListBase MyList;
var bool bVisibleWhenEmpty; // List box is visible when empty.
function InitBaseList(GUIListBase LocalList)
{
local int i;
MyList = LocalList;
LocalList.StyleName = StyleName;
LocalList.bVisibleWhenEmpty = bVisibleWhenEmpty;
LocalList.MyScrollBar = MyScrollBar;
MyScrollBar.MyList = LocalList;
MyScrollBar.FocusInstead = LocalList;
for (i=0;i<MyScrollBar.Controls.Length;i++)
MyScrollBar.Controls[i].FocusInstead = LocalList;
SetVisibility(bVisible);
}
function SetHint(string NewHint)
{
local int i;
Super.SetHint(NewHint);
for (i=0;i<Controls.Length;i++)
Controls[i].SetHint(NewHint);
}
defaultproperties
{
Begin Object Class=GUIVertScrollBar Name=TheScrollbar
bVisible=false
End Object
MyScrollBar=TheScrollbar
bAcceptsInput=true;
StyleName="ListBox"
bVisibleWhenEmpty=False
PropagateVisibility=true
}