18 #ifndef INC_C4GameOptions
19 #define INC_C4GameOptions
56 class OptionDropdown :
public Option
59 OptionDropdown(
class C4GameOptionsList *pForDlg,
const char *szCaption,
bool fReadOnly);
68 { DoDropdownFill(pFiller); }
69 virtual void DoDropdownSelChange(int32_t idNewSelection) = 0;
70 bool OnDropdownSelChange(
C4GUI::ComboBox *pForCombo, int32_t idNewSelection)
71 { DoDropdownSelChange(idNewSelection);
Update();
return true; }
75 class OptionScenarioParameter :
public OptionDropdown
78 int32_t LastValue;
bool LastValueValid;
85 void DoDropdownSelChange(int32_t idNewSelection)
override;
92 class OptionControlMode :
public OptionDropdown
99 void DoDropdownSelChange(int32_t idNewSelection)
override;
105 class OptionControlRate :
public OptionDropdown
112 void DoDropdownSelChange(int32_t idNewSelection)
override;
118 class OptionTeamDist :
public OptionDropdown
125 void DoDropdownSelChange(int32_t idNewSelection)
override;
131 class OptionTeamColors :
public OptionDropdown
138 void DoDropdownSelChange(int32_t idNewSelection)
override;
144 class OptionRuntimeJoin :
public OptionDropdown
151 void DoDropdownSelChange(int32_t idNewSelection)
override;
virtual bool IsFocused(Control *pCtrl)
Element * GetNext() const
bool IsFocused(Control *pCtrl) override
void OnSec1Timer() override
bool IsPreGameSingle() const
C4ScenarioParameters * GetParameters()
~C4GameOptionsList() override
void SetParameters(C4ScenarioParameterDefs *param_defs, C4ScenarioParameters *params)
C4GameOptionsList(const C4Rect &rcBounds, bool fActive, C4GameOptionsListSource source, class C4ScenarioParameterDefs *param_defs=nullptr, class C4ScenarioParameters *params=nullptr)