KF2-Server-Extension/ServerExt/Classes/KFGUI_ComboSelector.uc

28 lines
437 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class KFGUI_ComboSelector extends KFGUI_Clickable;
var KFGUI_ComboBox Combo;
var int CurrentRow,OldRow;
function DrawMenu()
{
Owner.CurrentStyle.RenderComboList(Self);
}
2020-11-28 20:04:55 +00:00
function HandleMouseClick(bool bRight)
2017-10-20 02:00:49 +00:00
{
PlayMenuSound(MN_ClickButton);
DropInputFocus();
2020-11-28 20:12:58 +00:00
if (CurrentRow>=0)
2017-10-20 02:00:49 +00:00
{
Combo.SelectedIndex = CurrentRow;
Combo.OnComboChanged(Combo);
}
}
defaultproperties
{
CurrentRow=-1
OldRow=-1
bFocusedPostDrawItem=true
2023-05-14 02:49:12 +00:00
}