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