mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Improve profile naming
- Profile ID is limited to 6 characters in the keyboard menu itself. - Player Tag is directly under Profile ID. - Minor description changes.
This commit is contained in:
parent
0652843383
commit
37bd4a6ad9
2 changed files with 14 additions and 9 deletions
|
|
@ -1181,7 +1181,12 @@ static void M_HandleMenuInput(void)
|
||||||
if (M_MenuConfirmPressed(pid))
|
if (M_MenuConfirmPressed(pid))
|
||||||
{
|
{
|
||||||
// If we entered this menu by pressing a menu Key, default to keyboard typing, otherwise use controller.
|
// If we entered this menu by pressing a menu Key, default to keyboard typing, otherwise use controller.
|
||||||
M_OpenVirtualKeyboard(MAXSTRINGLENGTH, M_QueryCvarAction, NULL);
|
M_OpenVirtualKeyboard(
|
||||||
|
(currentMenu->menuitems[itemOn].itemaction.cvar == &cv_dummyprofilename) ? 6 // this sucks, but there's no time.
|
||||||
|
: MAXSTRINGLENGTH,
|
||||||
|
M_QueryCvarAction,
|
||||||
|
NULL
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (M_MenuExtraPressed(pid))
|
else if (M_MenuExtraPressed(pid))
|
||||||
|
|
|
||||||
|
|
@ -18,23 +18,23 @@
|
||||||
// These are placed in descending order next to the things they modify, for clarity.
|
// These are placed in descending order next to the things they modify, for clarity.
|
||||||
// Try to keep the mvar2 in order, if you add new profile info!!
|
// Try to keep the mvar2 in order, if you add new profile info!!
|
||||||
menuitem_t OPTIONS_EditProfile[] = {
|
menuitem_t OPTIONS_EditProfile[] = {
|
||||||
{IT_STRING | IT_CVAR | IT_CV_STRING, "Profile ID", "6-character long name to identify this Profile.",
|
{IT_STRING | IT_CVAR | IT_CV_STRING, "Profile ID", "6-character long name to display on menus.",
|
||||||
NULL, {.cvar = &cv_dummyprofilename}, 0, 41},
|
NULL, {.cvar = &cv_dummyprofilename}, 0, 41},
|
||||||
|
|
||||||
|
{IT_STRING | IT_CVAR | IT_CV_STRING, "Player Tag", "Full name, displayed online and in replays.",
|
||||||
|
NULL, {.cvar = &cv_dummyprofileplayername}, 0, 61},
|
||||||
|
|
||||||
{IT_STRING | IT_CALL, "Controls", "Change the button mappings.",
|
{IT_STRING | IT_CALL, "Controls", "Change the button mappings.",
|
||||||
NULL, {.routine = M_ProfileDeviceSelect}, 0, 71},
|
NULL, {.routine = M_ProfileDeviceSelect}, 0, 91},
|
||||||
|
|
||||||
{IT_STRING | IT_SUBMENU, "Accessibility", "Acccessibility and quality of life options.",
|
{IT_STRING | IT_SUBMENU, "Accessibility", "Acccessibility and quality of life options.",
|
||||||
NULL, {.submenu = &OPTIONS_ProfileAccessibilityDef}, 0, 91},
|
NULL, {.submenu = &OPTIONS_ProfileAccessibilityDef}, 0, 111},
|
||||||
|
|
||||||
{IT_STRING | IT_CALL, "Character", NULL, // tooltip set in M_StartEditProfile
|
{IT_STRING | IT_CALL, "Character", NULL, // tooltip set in M_StartEditProfile
|
||||||
NULL, {.routine = M_CharacterSelect}, 0, 111},
|
NULL, {.routine = M_CharacterSelect}, 0, 131},
|
||||||
|
|
||||||
{IT_STRING | IT_CVAR | IT_CV_STRING, "Player Tag", "Name displayed online and in replays.",
|
|
||||||
NULL, {.cvar = &cv_dummyprofileplayername}, 0, 141},
|
|
||||||
|
|
||||||
{IT_STRING | IT_CALL, "Confirm", "Confirm changes.",
|
{IT_STRING | IT_CALL, "Confirm", "Confirm changes.",
|
||||||
NULL, {.routine = M_ConfirmProfile}, 0, 171},
|
NULL, {.routine = M_ConfirmProfile}, 0, 171},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue