Working on darklands mode

This commit is contained in:
Vladislav Khorev committed 2026-05-31 21:57:18 +03:00
1 parent 5f7e66f765
commit 3d4560bb51
7 files changed
+55

No files matched your search

+18
View File
@@ -353,6 +353,9 @@ namespace ZL {
uiManager.setButtonCallback("journalButton", [this](const std::string&) {
openQuestJournal();
});
uiManager.setButtonCallback("darklandsButton", [this](const std::string&) {
startDarklandsTransitionFunc();
});
}
void MenuManager::onLocationChanged(const std::string& locationName) {
@@ -599,4 +602,19 @@ namespace ZL {
uiManager.startPopIn(slotName, 300.0f);
}
void MenuManager::setDarklandsMode(bool enabled)
{
if (enabled)
{
uiManager.setNodeVisible("darklandsButton", false);
uiManager.setNodeVisible("phoneButton", false);
}
else
{
uiManager.setNodeVisible("darklandsButton", true);
uiManager.setNodeVisible("phoneButton", true);
}
}
} // namespace ZL