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:
Jasper St. Pierre
2013-06-17 06:52:03 -04:00
parent 62281fbfde
commit c5c86d17dc
4 changed files with 32 additions and 2 deletions

View File

@ -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()