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

+9
View File
@@ -394,6 +394,10 @@ namespace ZL
if (currentLocation) currentLocation->dialogueSystem.startDialogue(id);
};
menuManager.startDarklandsTransitionFunc = [this]() {
startDarklandsTransition();
};
// Wire bubble-slot callback so chat bubbles appear as dialogue lines are shown.
for (auto& [name, loc] : locations) {
loc->dialogueSystem.setOnBubbleSlotReady([this](const std::string& bubbleSlot) {
@@ -1103,6 +1107,11 @@ namespace ZL
darklandsFlashAlpha = min(darklandsFlashAlpha + step, 1.0f);
if (darklandsFlashAlpha >= 1.0f) {
isDarklands = !isDarklands;
// Change HUD
menuManager.setDarklandsMode(isDarklands);
if (currentLocation) {
if (isDarklands)
currentLocation->scriptEngine.callDarklandsEnterCallback();