mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-06-01 09:22:17 +00:00
Add string table lookup to SECRETS lump handling
- If the hint text portion of a STRINGS lump entry begins with a '$', the value is treated as a string table lookup Allows SECRETS strings to be translated via LANGUAGE lump. Reference: https://forum.zdoom.org/viewtopic.php?f=15&t=69827
This commit is contained in:
parent
b11298afd5
commit
e9af7e7096
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ static void PrintSecretString(const char *string, bool thislevel)
|
||||||
else colstr = TEXTCOLOR_GREEN;
|
else colstr = TEXTCOLOR_GREEN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto brok = V_BreakLines(CurrentConsoleFont, twod->GetWidth()*95/100, string);
|
auto brok = V_BreakLines(CurrentConsoleFont, twod->GetWidth()*95/100, *string == '$' ? GStrings(++string) : string);
|
||||||
|
|
||||||
for (auto &line : brok)
|
for (auto &line : brok)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue