extern unsigned int fontSize;
extern bool dialogBoxExists;
extern unsigned char dialogOptChosen;
- extern bool edown;
+ extern bool dialogImportant;
/*
* Initializes the FreeType system.
void story(Mob *callee){
player->vel.x = 0;
+ Mix_FadeOutMusic(0);
ui::importantText("It was a dark and stormy night...");
ui::waitForDialog();
ui::importantText("...and Clyne wanted to hear what the click track sounds like.");
static unsigned char dialogOptCount = 0;
static bool typeOutDone = true;
-static bool dialogImportant = false;
-
Mix_Chunk *dialogClick;
extern void mainLoop(void);
* Dialog stuff that needs to be 'public'.
*/
- bool dialogBoxExists=false;
+ bool dialogBoxExists = false;
+ bool dialogImportant = false;
unsigned char dialogOptChosen = 0;
/*
else if(e->vel.x > 0)e->left = false;
}
}
+
+ if(ui::dialogImportant){
+ Mix_FadeOutMusic(2000);
+ }else if(!Mix_PlayingMusic()){
+ Mix_FadeInMusic(bgmObj,-1,2000);
+ }
}
void World::setBGM(const char *path){