UI: Use the new "PopupTextInputChoice" for nicknames where available (windows)

This commit is contained in:
Henrik Rydgard 2014-07-18 11:04:12 +02:00
parent 06f058de54
commit 27b4403cae
2 changed files with 4 additions and 2 deletions

View File

@ -392,7 +392,9 @@ void GameSettingsScreen::CreateViews() {
systemSettings->Add(new PopupMultiChoice(&g_Config.iPSPModel, s->T("PSP Model"), models, 0, ARRAY_SIZE(models), s, screenManager()));
// TODO: Come up with a way to display a keyboard for mobile users,
// so until then, this is Windows/Desktop only.
#if defined(_WIN32) || defined(USING_QT_UI)
#if defined(_WIN32) // TODO: Add all platforms where KEY_CHAR support is added
systemSettings->Add(new PopupTextInputChoice(&g_Config.sNickName, s->T("Change Nickname"), "", screenManager()));
#elif defined(USING_QT_UI)
systemSettings->Add(new Choice(s->T("Change Nickname")))->OnClick.Handle(this, &GameSettingsScreen::OnChangeNickname);
#endif
#if defined(_WIN32) || (defined(USING_QT_UI) && !defined(MOBILE_DEVICE))

2
native

@ -1 +1 @@
Subproject commit 49e8414fec1e371c30d901916a2c014cd5316d1a
Subproject commit 76cb31cdd5e0ef7b65819943c9f667810600fe6f