mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
GraphicMessageBox can handle multiple buttons now
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user