aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-02-19 18:33:29 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-02-19 18:33:29 -0500
commit0075f9e7997d01fa2105bff38e40a3d5b8b421e6 (patch)
treec2e9bbbced1ac97cbcfd81930905aec50325dc64 /src/ui.cpp
parent2a4a514b654ef0e08134a116c658d49a8f16cfe7 (diff)
Village work
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index e6ee988..43706e7 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -52,7 +52,6 @@ static char dialogBoxText[512];
static char *dialogOptText[4];
static float dialogOptLoc[4][3];
static unsigned char dialogOptCount = 0;
-static bool dialogPassive = false;
static bool typeOutDone = true;
extern Menu* currentMenu;
@@ -114,6 +113,8 @@ namespace ui {
bool debug=false;
bool posFlag=false;
+ bool dialogPassive = false;
+
/*
* Dialog stuff that needs to be 'public'.
@@ -555,9 +556,10 @@ namespace ui {
if(dialogImportant){
setFontColor(255,255,255);
- if(fadeIntensity == 255){
+ if(fadeIntensity == 255 || dialogPassive){
setFontSize(24);
putStringCentered(offset.x,offset.y,rtext);
+ setFontSize(16);
}
}else{
@@ -602,7 +604,7 @@ namespace ui {
Mix_PlayChannel(1,dialogClick,0);
}
- }else if(!dialogImportant && !fadeIntensity){
+ }if(!fadeIntensity){
vec2 hub = {
(SCREEN_WIDTH/2+offset.x)-fontSize*10,
(offset.y+SCREEN_HEIGHT/2)-fontSize
@@ -1182,6 +1184,10 @@ DONE:
return;
}
switch(SDL_KEY){
+ case SDLK_w:
+ dialogPassive = true;
+ importantText("Welcome to Meme-Town");
+ break;
case SDLK_a:
left = false;
break;