mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
InputConfigDiag: Use "..." for complicated expressions
The full expression is quite often too big for a simple button label, so encourage people to use the full editor to edit it.
This commit is contained in:
@ -238,8 +238,13 @@ void GamepadPage::UpdateGUI()
|
||||
// buttons
|
||||
std::vector<ControlButton*>::const_iterator i = (*g)->control_buttons.begin()
|
||||
, e = (*g)->control_buttons.end();
|
||||
for (; i!=e; ++i)
|
||||
(*i)->SetLabel(StrToWxStr((*i)->control_reference->expression));
|
||||
for (; i!=e; ++i) {
|
||||
ControllerInterface::ControlReference *r = (*i)->control_reference;
|
||||
if (r->IsComplicated())
|
||||
(*i)->SetLabel("...");
|
||||
else
|
||||
(*i)->SetLabel(StrToWxStr((*i)->control_reference->expression));
|
||||
}
|
||||
|
||||
// cboxes
|
||||
std::vector<PadSetting*>::const_iterator si = (*g)->options.begin()
|
||||
|
Reference in New Issue
Block a user