2020-01-10 13:14:11 +00:00
|
|
|
Class KFGUI_CheckBox extends KFGUI_EditControl;
|
|
|
|
|
|
|
|
var() Texture CheckMark,CheckDisabled,CheckIdle,CheckFocus,CheckClicked;
|
|
|
|
var() bool bForceUniform,bChecked;
|
|
|
|
|
|
|
|
function UpdateSizes()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
Super.UpdateSizes();
|
|
|
|
if( bForceUniform )
|
|
|
|
XSize = (YSize*InputPos[3]) / InputPos[2];
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function DrawMenu()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
Owner.CurrentStyle.RenderCheckbox(Self);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function HandleMouseClick( bool bRight )
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
bChecked = !bChecked;
|
|
|
|
OnCheckChange(Self);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Delegate OnCheckChange( KFGUI_CheckBox Sender );
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
bForceUniform=true
|
|
|
|
LableWidth=0.85
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|