Working with phone and time
This commit is contained in:
1 parent
c8d743b932
commit
59e0b2d77a
5 files changed
+59
-16
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user