Fix 6e10584b91: Keep custom news from game scripts in encoded form. (#13741)

This allows the news message to translated as appropriate.
This commit is contained in:
Peter Nelson
2025-03-04 23:15:50 +00:00
committed by GitHub
parent b979f0414c
commit 51fd2853cb
5 changed files with 20 additions and 21 deletions

View File

@@ -140,7 +140,7 @@ int GetStringHeight(std::string_view str, int maxw, FontSize fontsize = FS_NORMA
int GetStringHeight(StringID str, int maxw);
int GetStringLineCount(std::string_view str, int maxw);
Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion);
Dimension GetStringMultiLineBoundingBox(std::string_view str, const Dimension &suggestion);
Dimension GetStringMultiLineBoundingBox(std::string_view str, const Dimension &suggestion, FontSize fontsize = FS_NORMAL);
void LoadStringWidthTable(bool monospace = false);
void DrawDirtyBlocks();