void CMenu::BnFunc() { BnShowGameHome(); ParticleSnow * ccps = ParticleSnow::create(); ccps->setSpeed(200.0f); ccps->setAutoRemoveOnFinish(true); this->addChild(ccps); }
void CWelcome::BnFunc() { ParticleSnow * ccps = ParticleSnow::create(); ccps->setSpeed(200.0f); ccps->setAutoRemoveOnFinish(true); this->addChild(ccps); if(BnGetMusicOnStatus()) { deGameManager->setMusic(1); } else { deGameManager->setMusic(0); } if(BnGetSoundOnStatus()) { deGameManager->setSound(1); } else { deGameManager->setSound(0); } if(BnGetLoginStatus()) { deGameManager->setLoginFlag(1); } else { Node* nd = this->getChildByTag(TAG_WELCOME_BT); nd->setVisible(true); deGameManager->setMusic(1); } }