ZVISION: Implement quit function with reminder
This commit is contained in:
parent
9e9b89071f
commit
c79ac80b0c
2 changed files with 9 additions and 0 deletions
|
@ -459,4 +459,11 @@ void ZVision::menuBarEnable(uint16 menus) {
|
|||
_menu->setEnable(menus);
|
||||
}
|
||||
|
||||
bool ZVision::ifQuit() {
|
||||
if (askQuestion(_stringManager->getTextLine(StringManager::ZVISION_STR_EXITPROMT))) {
|
||||
quitGame();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} // End of namespace ZVision
|
||||
|
|
|
@ -187,6 +187,8 @@ public:
|
|||
|
||||
void menuBarEnable(uint16 menus);
|
||||
|
||||
bool ifQuit();
|
||||
|
||||
private:
|
||||
void initialize();
|
||||
void initFonts();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue