diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-03 08:43:55 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-03 08:43:55 -0500 |
commit | 00c312051599729074ff3584a0528c1883e1ff42 (patch) | |
tree | 1778fa2382922d7ef50b787e444946a640e9033a /src/ui.cpp | |
parent | f00c4bb6b0c4dc1cf2f0c122a4748288ac6ab1a5 (diff) | |
parent | 7ab072caaaec09720ad79cfed5738e89bc60c44f (diff) |
Mouse
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |