diff --git a/src/menus/options-profiles-1.c b/src/menus/options-profiles-1.c index 8a81dadfb..9a8180af5 100644 --- a/src/menus/options-profiles-1.c +++ b/src/menus/options-profiles-1.c @@ -4,6 +4,7 @@ #include "../i_time.h" #include "../k_menu.h" #include "../s_sound.h" +#include "../m_cond.h" // profile select menuitem_t OPTIONS_Profiles[] = { @@ -118,6 +119,13 @@ void M_StartEditProfile(INT32 c) OPTIONS_EditProfile[popt_char].status |= IT_TRANSTEXT; } + // Setup variable tooltips. + OPTIONS_EditProfile[popt_char].tooltip = ( + (gamedata && gamedata->numspraycans != 0 && gamedata->gotspraycans != 0) + ? "Default character and color." + : "Default character." + ); + OPTIONS_EditProfileDef.prevMenu = currentMenu; M_SetupNextMenu(&OPTIONS_EditProfileDef, false); return; diff --git a/src/menus/options-profiles-edit-1.c b/src/menus/options-profiles-edit-1.c index ef6a7212c..57724414a 100644 --- a/src/menus/options-profiles-edit-1.c +++ b/src/menus/options-profiles-edit-1.c @@ -18,7 +18,7 @@ menuitem_t OPTIONS_EditProfile[] = { {IT_STRING | IT_SUBMENU, "Accessibility", "Acccessibility and quality of life options.", NULL, {.submenu = &OPTIONS_ProfileAccessibilityDef}, 0, 91}, - {IT_STRING | IT_CALL, "Character", "Default character and color.", + {IT_STRING | IT_CALL, "Character", NULL, // tooltip set in M_StartEditProfile NULL, {.routine = M_CharacterSelect}, 0, 111}, {IT_STRING | IT_CVAR | IT_CV_STRING, "Player Tag", "Name displayed online and in replays.",