摘要 : 该如何修改默认选中抓鸟个数呢,今天我教大家怎么修改。此次修改需要修改源码文件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鸟
修改完之后重新编译就可以了。
|
常见问题
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 找不到素材资源介绍文章里的示例图片?