mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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()
|
||||
{
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue