/*--------------------------/
 ステージ選択時
/--------------------------*/
void StageSelectActionLayer::stageSelected(int tag){
    
    //ローカルレイヤー生成
    auto layer = Layer::create();
    
    //メニュー母体生成
    auto menu = Menu::create();
    menu->setPosition( Vec2::ZERO );
    //layer->addChild(menu);
    
    //各自追加
    drawMask(layer);
    drawExplain(layer);
    buttonYes(layer,menu,tag);
    buttonNo(layer,menu);
    
    layer->addChild(menu);
    
    //タッチの無効化
    isButton(false);
    
    //レイヤーに追加
    this->addChild(layer);
}
Esempio n. 2
0
QvvConfirmDeleteDialog::QvvConfirmDeleteDialog()
    : QDialog()
{
    cd.setupUi( this );

    activated_button = QDialogButtonBox::NoButton;
    connect( cd.buttonBox->button( QDialogButtonBox::Yes      ), SIGNAL(clicked()), this, SLOT(buttonYes())      );
    connect( cd.buttonBox->button( QDialogButtonBox::YesToAll ), SIGNAL(clicked()), this, SLOT(buttonYesToAll()) );
    connect( cd.buttonBox->button( QDialogButtonBox::No       ), SIGNAL(clicked()), this, SLOT(buttonNo())       );
    connect( cd.buttonBox->button( QDialogButtonBox::Cancel   ), SIGNAL(clicked()), this, SLOT(buttonCancel())   );
}