Some clean up

This commit is contained in:
Vladislav Khorev committed 2026-05-02 20:40:29 +03:00
1 parent 6149182f02
commit fb7b42ddf9
20 files changed
+122 -984110

No files matched your search

+9 -2
View File
@@ -15,6 +15,7 @@ namespace ZL {
enum class GameState {
Gameplay,
Inventory,
QuestJournal
};
@@ -26,9 +27,15 @@ namespace ZL {
MenuManager(Renderer& iRenderer);
void setup(Inventory& inv, const std::string& zipFile);
void openInventory();
void closeInventory();
void openQuestJournal();
void closeQuestJournal();
void toggleQuestJournal();
bool isInventoryOpen() const { return state == GameState::Inventory; }
bool isQuestJournalOpen() const { return state == GameState::QuestJournal; }
protected:
@@ -42,10 +49,10 @@ namespace ZL {
GameState state = GameState::Gameplay;
Inventory* inventory = nullptr;
std::shared_ptr<UiNode> ingameRoot;
std::shared_ptr<UiNode> hudRoot;
std::shared_ptr<UiNode> inventoryRoot;
std::shared_ptr<UiNode> questJournalRoot;
bool inventoryOpen = false;
int selectedQuestIndex = -1;
std::vector<std::string> visibleQuestIds;
};