aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-11-13 17:41:06 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-11-13 17:41:06 -0500
commita9f159ac1a8241dd8ccbfeff9e5628e14106e6be (patch)
treea215daea9892c9c3f5fa26cb914bbe434cb4a96a /src/ui.cpp
parent23cccb0435bad7330eeaf3d8aee39b3023ac26c8 (diff)
Re-added active quest listing
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 4c503cf..6fff65f 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -467,6 +467,14 @@ namespace ui {
((SCREEN_WIDTH/2+offset.x)-125)+((player->health/player->maxHealth)*100),
(offset.y+SCREEN_HEIGHT/2)-32+12);
}
+ /*
+ * Lists all of the quests the player has
+ */
+ putText(((SCREEN_WIDTH/2)+offset.x)-125,(offset.y+SCREEN_HEIGHT/2)-fontSize*4, "Current Quests:",NULL);
+
+ for(auto &c : player->qh.current){
+ putText(((SCREEN_WIDTH/2)+offset.x)-125,(offset.y+SCREEN_HEIGHT/2)-fontSize*5, "%s",c->title);
+ }
}
void handleEvents(void){
unsigned char i;