예제 #1
0
void StartPanel::hide() {
    ActionInterval * fadeout = FadeOut::create(1);
    Vector<Node *> children_list = this->getChildren();
    Vector<Node *>::iterator itor = children_list.begin();
    Vector<Node *>::iterator iend = children_list.end();
    while (itor != iend) {
        ActionInterval * pAction = fadeout->clone();
        (*itor)->runAction(pAction);

        itor++;
    }
    Smart09::create()->RemoveTouchHandle(m_pButtons[STARTUI_MENU_PLAY]);
    Smart09::create()->RemoveTouchHandle(m_pButtons[STARTUI_MENU_HELP]);
    Smart09::create()->RemoveTouchHandle(m_pButtonSound);
}
예제 #2
0
void StartPanel::show(const bool start) {
    ActionInterval * fadein = FadeIn::create(1);
    Vector<Node *> children_list = this->getChildren();
    Vector<Node *>::iterator itor = children_list.begin();
    Vector<Node *>::iterator iend = children_list.end();
    while (itor != iend) {
        ActionInterval * pAction = fadein->clone();
        (*itor)->runAction(pAction);

        itor++;
    }

    Smart09::create()->AddTouchHandle(TOUCH_GRADE_UI, m_pButtons[STARTUI_MENU_PLAY]);
    Smart09::create()->AddTouchHandle(TOUCH_GRADE_UI, m_pButtons[STARTUI_MENU_HELP]);
    Smart09::create()->AddTouchHandle(TOUCH_GRADE_UI, m_pButtonSound);
}