GraphicMessageBox can handle multiple buttons now

This commit is contained in:
Titus Tscharntke
2012-02-19 17:37:53 +00:00
parent 9dd8dd4098
commit 9870c13a6b
14 changed files with 122 additions and 94 deletions

View File

@@ -140,7 +140,7 @@ void Program::ShowMessageProgramState::render() {
}
void Program::ShowMessageProgramState::mouseDownLeft(int x, int y) {
int button= 1;
int button= 0;
if(msgBox.mouseClick(x,y,button)) {
program->exit();
userWantsExit = true;
@@ -295,7 +295,7 @@ void Program::keyPress(SDL_KeyboardEvent c) {
void Program::mouseDownLeft(int x, int y) {
if(msgBox.getEnabled()) {
int button= 1;
int button= 0;
if(msgBox.mouseClick(x, y, button)) {
//if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
//close message box