设为首页 收藏本站
开启辅助访问 快捷导航
菜单

学院推荐

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

网狐房卡麻将源码修改默认选择游戏玩法

[复制链接]
棋牌学院 发表于 2020-8-16 17:18:27 | 显示全部楼层 |阅读模式
该如何修改默认选中抓鸟个数,需要修改源码文件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鸟

修改完之后重新编译就可以了。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则