Working on UI

This commit is contained in:
Vladislav Khorev committed 2026-05-30 22:27:09 +03:00
1 parent 9425f9b19a
commit a0550daf4b
6 files changed
+111 -23

No files matched your search

+10 -1
View File
@@ -8,6 +8,7 @@
#include <vector>
#include <string>
#include <memory>
#include <unordered_set>
namespace ZL {
@@ -72,6 +73,9 @@ namespace ZL {
void setupStep5Callbacks();
void resetPhoneChatNodes();
void recomputePhoneChatPositions();
void openPhoneChatFromList(std::shared_ptr<UiNode> chatRoot, const std::string& dialogueId);
void returnToPhoneChatList();
void closePhoneScreenFromChat();
GameState state = GameState::Gameplay;
Inventory* inventory = nullptr;
@@ -91,7 +95,9 @@ namespace ZL {
std::shared_ptr<UiNode> hudStep5aRoot;
std::shared_ptr<UiNode> hudStep5bRoot;
std::shared_ptr<UiNode> hudStep5abRoot;
std::shared_ptr<UiNode> phoneScreenRoot;
std::shared_ptr<UiNode> phoneChatListRoot;
std::shared_ptr<UiNode> phoneChat1Root;
std::shared_ptr<UiNode> phoneChat2Root;
std::shared_ptr<UiNode> newInventoryRoot;
std::shared_ptr<UiNode> questJournalRoot;
@@ -103,6 +109,9 @@ namespace ZL {
int selectedQuestIndex = -1;
std::vector<std::string> visibleQuestIds;
// Dialogues that have been started at least once; re-opening a chat won't restart them
std::unordered_set<std::string> startedDialogues_;
// Phone chat state
struct PhoneChatBubbleInfo {
std::string nodeName;