diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-07-02 10:11:45 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-07-02 10:11:45 -0400 |
commit | d96c869152527ae0c570de1d1c8552ec64d7fddb (patch) | |
tree | 89ef30120517c769be5c6fbf3920f6952b723950 /include/ui_quest.hpp | |
parent | 6f13e748c526576198d197ad194f4c1d8fdadec0 (diff) |
fixed quest menu, only entity vector in worlds
Diffstat (limited to 'include/ui_quest.hpp')
-rw-r--r-- | include/ui_quest.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ui_quest.hpp b/include/ui_quest.hpp index a0f3ad4..24a5e1b 100644 --- a/include/ui_quest.hpp +++ b/include/ui_quest.hpp @@ -13,9 +13,13 @@ namespace ui { } 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 }, @@ -31,6 +35,8 @@ namespace ui { ui::putText(x + 40, y, q.desc.c_str()); y -= 40; } + + std::swap(textWrap, ui::textWrapLimit); } } } |