add quest journal (QuestJournal + split UI view)
This commit is contained in:
1 parent
dbf0af2cb2
commit
d78286a9c2
13 files changed
+1148
-32
No files matched your search
+12
-1
@@ -20,7 +20,8 @@
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include "Location.h"
|
||||
#include "AudioPlayerAsync.h"
|
||||
#include "AudioPlayerAsync.h"
|
||||
#include "quest/QuestJournal.h"
|
||||
|
||||
namespace ZL {
|
||||
|
||||
@@ -51,6 +52,11 @@ namespace ZL {
|
||||
|
||||
bool inventoryOpen = false;
|
||||
|
||||
ZL::Quest::QuestJournal questJournal;
|
||||
bool questJournalOpen = false;
|
||||
int selectedQuestIndex = -1;
|
||||
std::vector<std::string> visibleQuestIds;
|
||||
|
||||
MenuManager menuManager;
|
||||
|
||||
private:
|
||||
@@ -69,6 +75,11 @@ namespace ZL {
|
||||
void handleDown(int64_t fingerId, int mx, int my);
|
||||
void handleUp(int64_t fingerId, int mx, int my);
|
||||
void handleMotion(int64_t fingerId, int mx, int my);
|
||||
|
||||
void setupQuestJournalUi();
|
||||
void toggleQuestJournal();
|
||||
void refreshQuestJournalUi();
|
||||
void selectQuestByIndex(int index);
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
static Game* s_instance;
|
||||
|
||||
Reference in new issue
Block a user