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

27 lines
439 B
Ucode

class KFGUI_ComboSelector extends KFGUI_Clickable;
var KFGUI_ComboBox Combo;
var int CurrentRow, OldRow;
function DrawMenu()
{
Owner.CurrentStyle.RenderComboList(Self);
}
function HandleMouseClick(bool bRight)
{
PlayMenuSound(MN_ClickButton);
DropInputFocus();
if (CurrentRow >= 0)
{
Combo.SelectedIndex = CurrentRow;
Combo.OnComboChanged(Combo);
}
}
defaultproperties
{
CurrentRow=-1
OldRow=-1
bFocusedPostDrawItem=true
}