mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-19 13:40:51 +00:00
Show the command label when choosing a SafeCommand (like Reset2Defaults) in the menu.
This commit is contained in:
parent
2327107f32
commit
6bfdd10a5c
1 changed files with 14 additions and 1 deletions
|
@ -122,7 +122,20 @@ public:
|
||||||
bool Activate()
|
bool Activate()
|
||||||
{
|
{
|
||||||
const char *msg = GStrings("SAFEMESSAGE");
|
const char *msg = GStrings("SAFEMESSAGE");
|
||||||
if (msg) M_StartMessage(msg, 0);
|
|
||||||
|
const char *actionLabel = mLabel;
|
||||||
|
if (actionLabel != NULL)
|
||||||
|
{
|
||||||
|
if (*actionLabel == '$')
|
||||||
|
{
|
||||||
|
actionLabel = GStrings(actionLabel + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
FString FullString;
|
||||||
|
FullString.Format(TEXTCOLOR_WHITE "%s" TEXTCOLOR_NORMAL "\n\n" "%s", actionLabel, msg);
|
||||||
|
|
||||||
|
if (msg && actionLabel && FullString) M_StartMessage(FullString, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue