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()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
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
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
PlayMenuSound(MN_ClickButton);
|
|
|
|
DropInputFocus();
|
2021-06-13 02:53:33 +00:00
|
|
|
if (CurrentRow >= 0)
|
2021-05-16 09:40:02 +00:00
|
|
|
{
|
|
|
|
Combo.SelectedIndex = CurrentRow;
|
|
|
|
Combo.OnComboChanged(Combo);
|
|
|
|
}
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
CurrentRow=-1
|
|
|
|
OldRow=-1
|
|
|
|
bFocusedPostDrawItem=true
|
2023-05-02 19:15:42 +00:00
|
|
|
}
|