Added some dialogs for transitions

This commit is contained in:
Vladislav Khorev committed 2026-06-04 19:12:18 +03:00
1 parent 59e0b2d77a
commit 1d3bea452c
11 files changed
+224 -24

No files matched your search

+3 -1
View File
@@ -51,6 +51,7 @@ namespace ZL {
bool isDarklands = false;
// Returns false if a transition is already in progress.
bool startDarklandsTransition();
bool startNightTransition();
Inventory inventory;
InteractiveObject* pickedUpObject = nullptr;
@@ -118,10 +119,11 @@ namespace ZL {
static void onResourcesZipError(const char* filename);
#endif
// White-flash transition state
// Screen-flash transition state (shared by darklands and night transitions)
float darklandsFlashAlpha = 0.0f;
bool darklandsFlashActive = false;
bool darklandsFlashFadingIn = true;
bool isNightTransition = false; // true → black flash toggling isNight; false → white flash toggling isDarklands
VertexRenderStruct darklandsFlashQuad;
float darklandsFlashQuadW = -1.0f;
float darklandsFlashQuadH = -1.0f;