KF2-YetAnotherScoreboard/YAS/Classes/KFGUI_CheckBox.uc
GenZmeY b1635b8e28 update .editorconfig
I changed my mind a little
2023-05-02 22:15:56 +03:00

30 lines
540 B
Ucode

class KFGUI_CheckBox extends KFGUI_EditControl;
var() Texture CheckMark, CheckDisabled, CheckIdle, CheckFocus, CheckClicked;
var() bool bForceUniform, bChecked;
function UpdateSizes()
{
Super.UpdateSizes();
if (bForceUniform)
XSize = (YSize*InputPos[3]) / InputPos[2];
}
function DrawMenu()
{
Owner.CurrentStyle.RenderCheckbox(Self);
}
function HandleMouseClick(bool bRight)
{
bChecked = !bChecked;
OnCheckChange(Self);
}
Delegate OnCheckChange(KFGUI_CheckBox Sender);
defaultproperties
{
bForceUniform=true
LableWidth=0.85
}