Working on phone messages

This commit is contained in:
Vladislav Khorev committed 2026-05-30 21:27:25 +03:00
1 parent cdab525858
commit 9425f9b19a
20 files changed
+591 -28

No files matched your search

+17
View File
@@ -50,6 +50,10 @@ namespace ZL {
void openPhoneScreen();
void closePhoneScreen();
void revealPhoneChatBubble(const std::string& slotName);
bool isPhoneScreenOpen() const { return state == GameState::PhoneScreen; }
std::function<void(const std::string&)> startDialogueFunc;
void advanceTutorialStep();
void onItemPickedUp(const std::string& itemId);
@@ -66,6 +70,8 @@ namespace ZL {
void selectInventoryItem(int index);
void refreshItemPickupHud();
void setupStep5Callbacks();
void resetPhoneChatNodes();
void recomputePhoneChatPositions();
GameState state = GameState::Gameplay;
Inventory* inventory = nullptr;
@@ -96,6 +102,17 @@ namespace ZL {
int selectedQuestIndex = -1;
std::vector<std::string> visibleQuestIds;
// Phone chat state
struct PhoneChatBubbleInfo {
std::string nodeName;
float height;
};
std::vector<PhoneChatBubbleInfo> phoneChatVisibleBubbles_;
static constexpr float CHAT_TOP_Y = 610.0f;
static constexpr float CHAT_BOTTOM_Y = 290.0f;
static constexpr float CHAT_SPACING = 10.0f;
};
} // namespace ZL