2026-02-06 13:47:03 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "game/game_handler.hpp"
|
|
|
|
|
#include <imgui.h>
|
2026-02-19 00:30:21 -08:00
|
|
|
#include <cstdint>
|
2026-02-19 00:56:24 -08:00
|
|
|
#include <unordered_set>
|
2026-02-06 13:47:03 -08:00
|
|
|
|
|
|
|
|
namespace wowee { namespace ui {
|
|
|
|
|
|
|
|
|
|
class QuestLogScreen {
|
|
|
|
|
public:
|
|
|
|
|
void render(game::GameHandler& gameHandler);
|
|
|
|
|
bool isOpen() const { return open; }
|
|
|
|
|
void toggle() { open = !open; }
|
|
|
|
|
void setOpen(bool o) { open = o; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool open = false;
|
|
|
|
|
bool lKeyWasDown = false;
|
|
|
|
|
int selectedIndex = -1;
|
2026-02-19 00:30:21 -08:00
|
|
|
uint32_t lastDetailRequestQuestId_ = 0;
|
2026-02-19 00:56:24 -08:00
|
|
|
double lastDetailRequestAt_ = 0.0;
|
|
|
|
|
std::unordered_set<uint32_t> questDetailQueryNoResponse_;
|
2026-02-06 13:47:03 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}} // namespace wowee::ui
|