master
罗家炜 2025-04-01 18:09:55 +08:00
parent 9c80480996
commit 1e7356d57b
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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