From 8be1f74e878950cbbac3f05451341fc18892518b Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 26 Sep 2017 22:37:52 -0400 Subject: windows 64-bit build --- include/ui_quest.hpp | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'include/ui_quest.hpp') diff --git a/include/ui_quest.hpp b/include/ui_quest.hpp index d9d1708..e06570a 100644 --- a/include/ui_quest.hpp +++ b/include/ui_quest.hpp @@ -5,6 +5,7 @@ #ifndef UI_QUEST_HPP_ #define UI_QUEST_HPP_ +#include #include #include @@ -27,13 +28,9 @@ namespace ui { * Draws the quest UI to the screen, if enabled. */ void draw(void) { -// static unsigned int textWrap = 40; - if (!_toggle) return; - -// std::swap(textWrap, ui::textWrapLimit); - + float top_y = offset.y + 200; ui::drawNiceBox(vec2 {offset.x - 200, top_y }, vec2 {offset.x + 200, offset.y - 200 }, @@ -41,16 +38,15 @@ namespace ui { UISystem::putStringCentered(vec2(offset.x, top_y - 40), "Current Quests:"); - /*auto y = top_y - 100; + const auto& titles = QuestSystem::getQuestTitles(); + auto y = top_y - 100; const auto x = offset.x - 180; - for (const auto &q : player->qh.current) { - ui::putText(x, y, q.title.c_str()); + for (const auto t : titles) { + UISystem::putString(vec2(x, y), t); y -= 20; - ui::putText(x + 40, y, q.desc.c_str()); - y -= 40; - }*/ - -// std::swap(textWrap, ui::textWrapLimit); + //ui::putText(x + 40, y, q.desc.c_str()); + //y -= 40; + } } } } -- cgit v1.2.3