Beispiel #1
0
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();
}
Beispiel #2
0
void CaldoriaMessages::closeInteraction() {
	cancelNotification(this);
	_neighborhoodNotification->cancelNotification(this);
}