many sparse changes
This commit is contained in:
1 parent
2c26c6f795
commit
7aa4ea4425
23 files changed
+1317
-290
No files matched your search
@@ -28,6 +28,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Cevo/CevoStringTables.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace Cevo {
|
||||
@@ -70,6 +72,23 @@ QString getMusicDir();
|
||||
// fallback branch the original always takes once no localized file exists.
|
||||
QString localizedFilePath(const QString &path);
|
||||
|
||||
// ScreenTools.pas's `Phrases`/`Phrases2` string tables (Language.txt /
|
||||
// Language2.txt) and `Phrases2FallenBackToEnglish`; filled by loadPhrases().
|
||||
extern StringTable phrases;
|
||||
extern StringTable phrases2;
|
||||
extern bool phrases2FallenBackToEnglish;
|
||||
// ScreenTools.pas's LoadPhrases(): (re)loads the two tables.
|
||||
void loadPhrases();
|
||||
// Converts a Language.txt Pascal Format() string (%d/%s/%%) to QString::arg()
|
||||
// style numbered placeholders (%1, %2, ...) in order of appearance.
|
||||
QString phraseToQtFormat(const QString &text);
|
||||
|
||||
// ScreenTools.pas's UnitInit()/LoadAssets(): points the widget layer at the
|
||||
// graphics directory and loads the phrases, fonts, system graphic sets,
|
||||
// colour palette, paper/icon bitmaps and the main texture. Call once after
|
||||
// the QApplication exists; safe to call again to reload.
|
||||
void loadAssets();
|
||||
|
||||
// Equivalent of a user-settings `GenerateNames` flag (Start.pas - not
|
||||
// ported - whether cities get tribe-script-generated names or plain
|
||||
// "Founder.Index" numeric ones).
|
||||
|
||||
Reference in new issue
Block a user