本文整理汇总了C++中CButton::setDisabledImageColor方法的典型用法代码示例。如果您正苦于以下问题:C++ CButton::setDisabledImageColor方法的具体用法?C++ CButton::setDisabledImageColor怎么用?C++ CButton::setDisabledImageColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CButton
的用法示例。
在下文中一共展示了CButton::setDisabledImageColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onEnter
void CCommandLayer::onEnter()
{
BaseLayer::onEnter();
CButton *btn= (CButton *)m_ui->findWidgetById("close");
btn->setOnClickListener(this,ccw_click_selector(CCommandLayer::onClose));
m_cell = (CLayout*)(m_ui->findWidgetById("Cell"));
m_cell->retain();
m_ui->removeChild(m_cell);
m_comLayer = (CLayout*)(m_ui->findWidgetById("pose"));
m_garrsionLayer = (CLayout*)(m_ui->findWidgetById("garrsion"));
m_tableView = (CTableView *)(m_ui->findWidgetById("scroll"));
m_tableView->setDirection(eScrollViewDirectionVertical);
m_tableView->setSizeOfCell(m_cell->getContentSize());
m_tableView->setCountOfCell(0);
m_tableView->setBounceable(false);
m_tableView->setDataSourceAdapter(this,ccw_datasource_adapter_selector(CCommandLayer::tableviewDataSource));
m_tableView->reloadData();
m_selectCellImg = (CCSprite*)(m_ui->findWidgetById("selectImg"));
m_selectCellImg->retain();
CSceneManager::sharedSceneManager()->addMsgObserver("updateHero",this, GameMsghandler_selector(CCommandLayer::updateHero));
CRadioBtnGroup *radioGroup = (CRadioBtnGroup *)m_ui->getChildByTag(10);
for (int i = 0; i < 2; i++)
{
CRadioButton *radioBtn= (CRadioButton*)(radioGroup->getChildByTag(i+1));
radioBtn->setOnCheckListener(this,ccw_check_selector(CCommandLayer::onSwitchBtn));
}
CButton *compose = (CButton *)(m_comLayer->findWidgetById("strengthen"));
compose->setOnClickListener(this,ccw_click_selector(CCommandLayer::onComposeButton));
compose->setDisabledImageColor();
m_ui->setScale(0.0f);
CCScaleTo *big = CCScaleTo::create(0.2f,1.0f);
m_ui->runAction(big);
GetTcpNet->registerMsgHandler(BuildInfo,this,CMsgHandler_selector(CCommandLayer::recBuildInfo));
GetTcpNet->registerMsgHandler(CommanderMsg,this,CMsgHandler_selector(CCommandLayer::processNetMsg));
//GetTcpNet->registerMsgHandler(ComposeItemMsg,this,CMsgHandler_selector(CCommandLayer::processNetMsg));
GetTcpNet->registerMsgHandler(LevelUpMsg,this,CMsgHandler_selector(CCommandLayer::processNetMsg));
for (int i=1; i<=3; ++i)
{
CButton *btn = dynamic_cast<CButton*>(m_garrsionLayer->getChildByTag(i));
btn->setOnClickListener(this,ccw_click_selector(CCommandLayer::onGarrsion));
}
showSelectRadioImg(2);
}