void Settings::onButtonAct(int actID) { switch (actID) { case BUTTON_BGM_ON: CocosDenshion::SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic(); imcIES::SetPropertyString("Settings", "Common", "PlayBGM", "YES"); break; case BUTTON_BGM_OFF: CocosDenshion::SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); imcIES::SetPropertyString("Settings", "Common", "PlayBGM", "NO"); break; case BUTTON_MSG_ON: imcIES::SetPropertyString("Settings", "Common", "Notification", "YES"); break; case BUTTON_MSG_OFF: cancelNotification(); imcIES::SetPropertyString("Settings", "Common", "Notification", "NO"); break; } classTable::save(); update(); }
void CaldoriaMessages::closeInteraction() { cancelNotification(this); _neighborhoodNotification->cancelNotification(this); }