Working on reset state and the end game

This commit is contained in:
Vladislav Khorev committed 2026-07-08 16:24:06 +03:00
1 parent 124208f2a4
commit 1c2c80f0ea
5 files changed
+1653 -43

No files matched your search

+14 -1
View File
@@ -320,7 +320,7 @@ namespace ZL {
}
void MenuManager::showMainMenu() {
if (onResetGame) onResetGame();
gameState_.currentLocationName.clear();
audioPlayer_.crossFadeMusicAsync("audio/main menu final.ogg");
@@ -1195,11 +1195,24 @@ namespace ZL {
uiManager.setNodeVisible("hint6a", false);
uiManager.setNodeVisible("hint6aarrow", false);
}
else
{
if (!gameState_.tutorialNeedOpenTaxiScreen)
{
uiManager.setNodeVisible("hint6a", true);
uiManager.setNodeVisible("hint6aarrow", true);
}
}
if (gameState_.tutorialJournalScreenOpened)
{
uiManager.setNodeVisible("hint6b", false);
uiManager.setNodeVisible("hint6barrow", false);
}
else
{
uiManager.setNodeVisible("hint6b", true);
uiManager.setNodeVisible("hint6barrow", true);
}
if (gameState_.tutorialPhoneChatScreenOpened && gameState_.tutorialJournalScreenOpened) {
gameState_.tutorialStep = TutorialStep::Step6;
}