摘要 : 该如何修改默认选中抓鸟个数呢,今天我教大家怎么修改。此次修改需要修改源码文件HNPrivateScenceHN.cpp WidgetManager::addButtonCB(“Button_GameRule0”,this,button_selector(HNPrivateScenceHN::ButtonGameR …
该如何修改默认选中抓鸟个数呢,今天我教大家怎么修改。此次修改需要修改源码文件HNPrivateScenceHN.cpp
WidgetManager::addButtonCB(“Button_GameRule0”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule1”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule2”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule3”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule4”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule5”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameRule6”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetFun::setChecked(this,”PlaneCreate_CS:Button_GameRule6″,true);
WidgetManager::addButtonCB(“Button_GameRule8”,this,button_selector(HNPrivateScenceHN::ButtonGameRule));
WidgetManager::addButtonCB(“Button_GameType0”,this,button_selector(HNPrivateScenceHN::Button_GameType));
WidgetManager::addButtonCB(“Button_GameType1”,this,button_selector(HNPrivateScenceHN::Button_GameType));
setPlayerCoutIdex(0); //这里是改默认局数
setGameRuleIdex(GAME_TYPE_ZZ_QIANGGANGHU);
setGameRuleIdex(GAME_TYPE_ZZ_HONGZHONG);
setGameRuleIdex(GAME_TYPE_ZZ_ZIMOHU);
setGameRuleIdex(GAME_TYPE_ZZ_ZHANIAO4);
return true;
//就是在这个位置改默认的勾选中
//你这里已经改掉了把 默认就是转转 抢杠胡 红中 自摸胡 4鸟
修改完之后重新编译就可以了。
|
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。