Fixing localization bugs, working with graphics settings

This commit is contained in:
Vladislav Khorev committed 2026-07-12 16:02:09 +03:00
1 parent d4365728fe
commit 9d03b52c2a
14 files changed
+354 -44

No files matched your search

+9
View File
@@ -78,6 +78,8 @@ namespace ZL {
std::function<void(int)> onSaveGame;
std::function<void(int)> onLoadGame;
std::function<SaveSlotInfo(int)> getSlotInfoFunc;
std::function<void(bool)> shadowMapSettingsChangedFunc;
// Set by Game: runs the given closures one per frame with the loading
// screen shown (same mechanism as the initial resource load), so a heavy
@@ -126,6 +128,9 @@ namespace ZL {
std::shared_ptr<Texture> languageLoadingRu;
std::shared_ptr<Texture> languageLoadingEn;
bool shadowsEnabled = true;
protected:
Renderer& renderer;
@@ -168,6 +173,7 @@ namespace ZL {
void showAboutScreen();
void showSettingsScreen();
void showSettingsGraphicsScreen();
void showLanguageScreen();
void showLoadGameScreen();
void showSaveGameScreen();
@@ -257,6 +263,7 @@ namespace ZL {
std::shared_ptr<UiNode> mainMenuRoot;
std::shared_ptr<UiNode> aboutScreenRoot;
std::shared_ptr<UiNode> settingsScreenRoot;
std::shared_ptr<UiNode> settingsGraphicsScreenRoot;
std::shared_ptr<UiNode> languageScreenRoot;
std::shared_ptr<UiNode> loadSavedGameScreenRoot;
std::shared_ptr<UiNode> saveGameScreenRoot;
@@ -328,6 +335,8 @@ namespace ZL {
std::string soundToggleOff;
std::string fullScreenToggleOn;
std::string fullScreenToggleOff;
std::string shadowToggleOn;
std::string shadowToggleOff;
};