diff --git a/lua_probject/base_project/Game/View/FamilyView.lua b/lua_probject/base_project/Game/View/FamilyView.lua index 82ab78c1..32edac63 100644 --- a/lua_probject/base_project/Game/View/FamilyView.lua +++ b/lua_probject/base_project/Game/View/FamilyView.lua @@ -100,7 +100,7 @@ function M:init(url) fgCtr:FG_CreateGroup(input_name.text, 1, 2, function(res) if res.ReturnCode == 0 then self.familyType.selectedIndex = 1 - self:ConnetFamily(1, groups, true) + self:ConnetFamily(1, DataManager.groups.groupList, true) end end) end) @@ -110,7 +110,7 @@ function M:init(url) fgCtr:FG_CreateGroup(input_name.text, 1, 2, function(res) if res.ReturnCode == 0 then self.familyType.selectedIndex = 1 - self:ConnetFamily(1, groups, true) + self:ConnetFamily(1, DataManager.groups.groupList, true) end end) end @@ -283,8 +283,8 @@ function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type) list_familyNumber.itemRenderer = function(index, obj) obj:GetChild('text_name').text = members[index + 1].nick if self._lev ~= 3 then - if members[index + 1].hp < 777777 then - fgCtr:FG_ChangeFag(group_id, members[index + 1].uid, members[index + 1].hp + 777777, + if members[index + 1].hp < 777777000 then + fgCtr:FG_ChangeFag(group_id, members[index + 1].uid, members[index + 1].hp + 777777000, function(res) if res.ReturnCode == 0 then diff --git a/lua_probject/extend_project/extend/majiang/nancheng/EXGameInfo.lua b/lua_probject/extend_project/extend/majiang/nancheng/EXGameInfo.lua index e6a63c52..1b594349 100644 --- a/lua_probject/extend_project/extend/majiang/nancheng/EXGameInfo.lua +++ b/lua_probject/extend_project/extend/majiang/nancheng/EXGameInfo.lua @@ -16,6 +16,10 @@ function M:FillData() self._roundChoice = 3 -- 回合选项数 self._config = UIPackage.CreateObjectFromURL("ui://Info_MJ_NanCheng/Label_Detail_83") + local jiangmaSlider = self._config:GetChild("n92") + jiangmaSlider.onChanged:Set(function() + self._config:GetChild("n93").text = string.format("奖%s马", Mathf.Round(jiangmaSlider.value)) + end) -- if oldGameVersion == 2 then -- self._config:GetController("xipai").selectedIndex = 0 @@ -110,8 +114,7 @@ function M:SelectedConfigData() local zhuanwan = _config:GetController("ZhuanWan").selectedIndex local jiahu = _config:GetController("JiaHu").selectedIndex - - local jiangma = _config:GetChild("n92").value + local jiangma = Mathf.Round(_config:GetChild("n92").value) local xi_pai = false local xi_paifen = 0