Working with phone and time

This commit is contained in:
Vladislav Khorev committed 2026-06-04 18:21:58 +03:00
1 parent c8d743b932
commit 59e0b2d77a
5 files changed
+59 -16

No files matched your search

+22
View File
@@ -301,6 +301,28 @@ namespace ZL {
uiManager.setButtonCallback("phoneTaxi", [this](const std::string&) {
openPhoneTaxi();
});
if (isNight)
{
if (isDawn)
{
uiManager.setNodeVisible("phoneTimeDay", false);
uiManager.setNodeVisible("phoneTimeNight", false);
uiManager.setNodeVisible("phoneTimeDawn", true);
}
else
{
uiManager.setNodeVisible("phoneTimeDay", false);
uiManager.setNodeVisible("phoneTimeNight", true);
uiManager.setNodeVisible("phoneTimeDawn", false);
}
}
else
{
uiManager.setNodeVisible("phoneTimeDay", true);
uiManager.setNodeVisible("phoneTimeNight", false);
uiManager.setNodeVisible("phoneTimeDawn", false);
}
}
void MenuManager::openPhoneMessenger() {