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

28 lines
437 B
Ucode
Raw Normal View History

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