KF2-YetAnotherScoreboard/YAS/Classes/KFGUI_ComboSelector.uc

27 lines
439 B
Ucode
Raw Normal View History

2022-09-03 17:26:40 +00:00
class KFGUI_ComboSelector extends KFGUI_Clickable;
2021-06-12 20:11:37 +00:00
2020-01-10 13:14:11 +00:00
var KFGUI_ComboBox Combo;
2021-06-13 02:54:35 +00:00
var int CurrentRow, OldRow;
2020-01-10 13:14:11 +00:00
function DrawMenu()
{
Owner.CurrentStyle.RenderComboList(Self);
2020-01-10 13:14:11 +00:00
}
2021-06-13 03:00:19 +00:00
function HandleMouseClick(bool bRight)
2020-01-10 13:14:11 +00:00
{
PlayMenuSound(MN_ClickButton);
DropInputFocus();
2021-06-13 02:53:33 +00:00
if (CurrentRow >= 0)
{
Combo.SelectedIndex = CurrentRow;
Combo.OnComboChanged(Combo);
}
2020-01-10 13:14:11 +00:00
}
defaultproperties
{
CurrentRow=-1
OldRow=-1
bFocusedPostDrawItem=true
2020-01-10 13:14:11 +00:00
}