home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
GUI
/
Classes
/
moFloatEdit.uc
< prev
next >
Wrap
Text File
|
2003-06-30
|
947b
|
41 lines
// ====================================================================
// (C) 2002, Epic Games
// ====================================================================
class moFloatEdit extends GUIMenuOption;
var GUIFloatEdit MyNumericEdit;
var float MinValue, MaxValue, Step;
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
Super.Initcomponent(MyController, MyOwner);
MyNumericEdit = GUIFloatEdit(MyComponent);
MyNumericEdit.MinValue = MinValue;
MyNumericEdit.MaxValue = MaxValue;
MyNumericEdit.Step = Step;
MyNumericEdit.CalcMaxLen();
MyNumericEdit.OnChange = InternalOnChange;
}
function SetValue(float V)
{
MyNumericEdit.SetValue(v);
}
function float GetValue()
{
return float(MyNumericEdit.Value);
}
function InternalOnChange(GUIComponent Sender)
{
OnChange(self);
}
defaultproperties
{
ComponentClassName="GUI.GUIFloatEdit"
OnClickSound=CS_Click
}