From 3d3522b905ad058cb64110e453a741401479f1bc Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Wed, 15 Jul 2026 22:35:06 +0300 Subject: [PATCH] Fixing last bugs, prepare for store release --- resources/dialogue/translate_cutscenes.json | 8 ++++---- resources/dialogue/translate_dialogues.json | 2 +- resources/w/ui/hud_top_hint01.json | 6 +++--- resources/w/ui/img/Hint2.png | 4 ++-- resources/w/ui/img/Hint4.png | 4 ++-- resources/w/ui_en/hud_top_hint01.json | 6 +++--- src/Game.cpp | 5 ++++- src/MenuManager.cpp | 2 ++ 8 files changed, 21 insertions(+), 16 deletions(-) diff --git a/resources/dialogue/translate_cutscenes.json b/resources/dialogue/translate_cutscenes.json index 416e804..f990a30 100644 --- a/resources/dialogue/translate_cutscenes.json +++ b/resources/dialogue/translate_cutscenes.json @@ -23,7 +23,7 @@ { "key": "Этот мир описан в эпосе Манас как Кайып или Аль-Гайб, но некоторые ученые называют его миром теней.", "ru": "Этот мир описан в эпосе Манас как Кайып или Аль-Гайб, но некоторые ученые называют его миром теней.", - "en": "This world is described in the Manas epic as Kayip or Al-Ghayb, but some scholars call it the dark lands." + "en": "This world is described in the Manas epic as Kayip or Al-Ghayb, but some scholars call it the Darkland." }, { "key": "В этом мире обитают феи, духи и джинны. Простым смертным в этот мир дорога закрыта.", @@ -33,17 +33,17 @@ { "key": "Время там течет по другому - за один день в теневом мире могут пройти годы жизни обычного мира.", "ru": "Время там течет по другому - за один день в теневом мире могут пройти годы жизни обычного мира.", - "en": "Time flows differently there - in one day in the dark lands, years of life in the ordinary world can pass." + "en": "Time flows differently there - in one day in the Darkland, years of life in the ordinary world can pass." }, { "key": "Обычно, мир теней никак не пересекается с нашим миром живых людей.", "ru": "Обычно, мир теней никак не пересекается с нашим миром живых людей.", - "en": "Usually, the world of dark lands does not intersect with our world of living people." + "en": "Usually, the world of the Darkland does not intersect with our world of living people." }, { "key": "Но в критические моменты для народа, обитатели теневого мира могут приходить в наш мир.", "ru": "Но в критические моменты для народа, обитатели теневого мира могут приходить в наш мир.", - "en": "But in critical moments for the people, the inhabitants of the dark lands can come to our world." + "en": "But in critical moments for the people, the inhabitants of the Darkland can come to our world." }, { "key": "Совсем недавно закончилась пандемия, а сегодня мир захлестнули кровавые войны.", diff --git a/resources/dialogue/translate_dialogues.json b/resources/dialogue/translate_dialogues.json index 1896735..e7e07b2 100644 --- a/resources/dialogue/translate_dialogues.json +++ b/resources/dialogue/translate_dialogues.json @@ -1688,7 +1688,7 @@ { "key": "Этот мир предназначен для фей и джиннов. Обычные люди туда попасть не могут. Но у тебя это как-то получилось.", "ru": "Этот мир предназначен для фей и джиннов. Обычные люди туда попасть не могут. Но у тебя это как-то получилось.", - "en": "These lands are meant for fairies and genies. Ordinary people can't get there. But somehow you made it." + "en": "This land is meant for fairies and genies. Ordinary people can't get there. But somehow you made it." }, { "key": "А вы откуда все это знаете?", diff --git a/resources/w/ui/hud_top_hint01.json b/resources/w/ui/hud_top_hint01.json index 3d9739b..7d7d5ef 100644 --- a/resources/w/ui/hud_top_hint01.json +++ b/resources/w/ui/hud_top_hint01.json @@ -8,9 +8,9 @@ { "type": "StaticImage", "name": "hint2", - "width": 72, - "height": 354, - "y": -100, + "width": 36, + "height": 177, + "y": -30, "x": 0, "horizontal_gravity": "center", "vertical_gravity": "center", diff --git a/resources/w/ui/img/Hint2.png b/resources/w/ui/img/Hint2.png index 2d56d5a..4175a00 100644 --- a/resources/w/ui/img/Hint2.png +++ b/resources/w/ui/img/Hint2.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:47ff20d4445c18d20fae842f61fab6ae53af8a850be564065e9bf9fccff6e8ec -size 335321 +oid sha256:fec6c67272ba31dd83771ed6664e4dc4aa5b54a0cf2f13928c682f869253948f +size 337884 diff --git a/resources/w/ui/img/Hint4.png b/resources/w/ui/img/Hint4.png index a35fdf4..8c68e1f 100644 --- a/resources/w/ui/img/Hint4.png +++ b/resources/w/ui/img/Hint4.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c5f2f556d6d32581e800279bf90cdcda59c619c2bedb9e9a6edc78a9d4270c5f -size 372666 +oid sha256:98c288157b1fa28da6097f0863062e68cd52245ceee7feb59535416410125efd +size 376284 diff --git a/resources/w/ui_en/hud_top_hint01.json b/resources/w/ui_en/hud_top_hint01.json index dd670a5..c826184 100644 --- a/resources/w/ui_en/hud_top_hint01.json +++ b/resources/w/ui_en/hud_top_hint01.json @@ -8,9 +8,9 @@ { "type": "StaticImage", "name": "hint2", - "width": 72, - "height": 354, - "y": -100, + "width": 36, + "height": 177, + "y": -30, "x": 0, "horizontal_gravity": "center", "vertical_gravity": "center", diff --git a/src/Game.cpp b/src/Game.cpp index 82a5554..1e1563f 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -1178,7 +1178,7 @@ namespace ZL if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_RESIZED) { const bool wasPortrait = Environment::width < Environment::height; - + //ZL::logger() << "Window resized" << std::endl; if (Environment::isHighDPIEnabled) { // Если High DPI включен, запрашиваем реальное физическое разрешение буфера int drawW, drawH; @@ -1206,6 +1206,9 @@ namespace ZL //space.clearTextRendererCache(); } + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_RESIZED) { + } + // Suppress all input while portrait overlay is shown //if (mobileIsPortrait) continue; diff --git a/src/MenuManager.cpp b/src/MenuManager.cpp index fedb314..9e2d6db 100644 --- a/src/MenuManager.cpp +++ b/src/MenuManager.cpp @@ -607,6 +607,8 @@ namespace ZL { saveSettings(); uiManager.popMenu(); audioPlayer_.playSoundAsync("audio/751089__smallconfusion__mechanical-plastic-click-11.ogg"); + uiManager.updateAllLayouts(); + topUiManager.updateAllLayouts(); });