mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed localization support for intermission texts
https://forum.zdoom.org/viewtopic.php?t=66221
This commit is contained in:
parent
ae2f7dd892
commit
958b52d3aa
1 changed files with 7 additions and 1 deletions
|
@ -332,12 +332,18 @@ bool FIntermissionActionTextscreen::ParseKey(FScanner &sc)
|
|||
else if (sc.Compare("Text"))
|
||||
{
|
||||
sc.MustGetToken('=');
|
||||
TArray<FString> lines;
|
||||
do
|
||||
{
|
||||
sc.MustGetToken(TK_StringConst);
|
||||
mText << sc.String << '\n';
|
||||
lines.Push(sc.String);
|
||||
}
|
||||
while (sc.CheckToken(','));
|
||||
if (lines.Size() == 1 && lines[0][0] == '$')
|
||||
mText = lines[0];
|
||||
else
|
||||
for (const FString& line : lines)
|
||||
mText << line << '\n';
|
||||
return true;
|
||||
}
|
||||
else if (sc.Compare("TextColor"))
|
||||
|
|
Loading…
Reference in a new issue