Follow-up to 299b01d
Add select_close GUIType and process it + Field::Choice: Fix a check of m_opt.enum_def existence + Fixed OSX build
This commit is contained in:
parent
f2fbfef332
commit
917c9ad47b
4 changed files with 38 additions and 28 deletions
|
@ -32,16 +32,15 @@ const t_field& OptionsGroup::build_field(const t_config_option_key& id, const Co
|
|||
// Check the gui_type field first, fall through
|
||||
// is the normal type.
|
||||
switch (opt.gui_type) {
|
||||
case ConfigOptionDef::GUIType::select_close:
|
||||
case ConfigOptionDef::GUIType::select_open:
|
||||
case ConfigOptionDef::GUIType::f_enum_open:
|
||||
case ConfigOptionDef::GUIType::i_enum_open:
|
||||
m_fields.emplace(id, Choice::Create<Choice>(this->ctrl_parent(), opt, id));
|
||||
break;
|
||||
case ConfigOptionDef::GUIType::color:
|
||||
m_fields.emplace(id, ColourPicker::Create<ColourPicker>(this->ctrl_parent(), opt, id));
|
||||
break;
|
||||
case ConfigOptionDef::GUIType::f_enum_open:
|
||||
case ConfigOptionDef::GUIType::i_enum_open:
|
||||
m_fields.emplace(id, Choice::Create<Choice>(this->ctrl_parent(), opt, id));
|
||||
break;
|
||||
case ConfigOptionDef::GUIType::slider:
|
||||
m_fields.emplace(id, SliderCtrl::Create<SliderCtrl>(this->ctrl_parent(), opt, id));
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue