ControllerEmu: Use enum instead of bool for translatability

This commit is contained in:
JosJuice
2018-04-10 17:22:30 +02:00
parent 3f13dbe087
commit 7ed28297b2
23 changed files with 123 additions and 77 deletions

View File

@ -966,8 +966,9 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin
{
const wxString control_ui_name = StrToWxStr(control->ui_name);
const bool translate = control->translate == ControllerEmu::Translate;
wxStaticText* const label = new wxStaticText(
parent, wxID_ANY, control->translate ? wxGetTranslation(control_ui_name) : control_ui_name);
parent, wxID_ANY, translate ? wxGetTranslation(control_ui_name) : control_ui_name);
ControlButton* const control_button =
new ControlButton(parent, control->control_ref.get(), control->ui_name, 80);