aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 08:43:55 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-03 08:43:55 -0500
commit00c312051599729074ff3584a0528c1883e1ff42 (patch)
tree1778fa2382922d7ef50b787e444946a640e9033a /src/ui.cpp
parentf00c4bb6b0c4dc1cf2f0c122a4748288ac6ab1a5 (diff)
parent7ab072caaaec09720ad79cfed5738e89bc60c44f (diff)
Mouse
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 56ce651..8e6d8e3 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -724,6 +724,8 @@ namespace ui {
*/
void drawMenu(Menu *menu){
+
+ setFontSize(20);
SDL_Event e;
mouse.x=premouse.x+offset.x-(SCREEN_WIDTH/2);
@@ -870,6 +872,7 @@ namespace ui {
}
}
}
+ setFontSize(16);
}
void dialogAdvance(void){
unsigned char i;
@@ -893,6 +896,7 @@ DONE:
setFontSize(16);
toggleBlack();
}
+
dialogBoxExists = false;
}
void handleEvents(void){
@@ -915,12 +919,10 @@ DONE:
premouse.y=e.motion.y;
break;
case SDL_MOUSEBUTTONDOWN:
- if((e.button.button&SDL_BUTTON_RIGHT)&&dialogBoxExists){
+ if((e.button.button & SDL_BUTTON_RIGHT) && dialogBoxExists)
dialogAdvance();
- }
- if((e.button.button&SDL_BUTTON_LEFT)&&!dialogBoxExists){
+ if((e.button.button & SDL_BUTTON_LEFT) && !dialogBoxExists)
player->inv->usingi = true;
- }
break;
/*
KEYDOWN