修改成员

master
罗家炜 2025-06-19 23:14:44 +08:00
parent 8e927cf593
commit 08fa583c33
9 changed files with 426 additions and 388 deletions

View File

@ -6,9 +6,9 @@ local GroupGameSettingView = {}
local M = GroupGameSettingView local M = GroupGameSettingView
function GroupGameSettingView.new(blur_view, gid, pid , room_config, callback) function GroupGameSettingView.new(blur_view, gid, pid, room_config, hpdata, callback)
setmetatable(M, {__index = BaseWindow}) setmetatable(M, { __index = BaseWindow })
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = "GroupGameSettingView" self.class = "GroupGameSettingView"
self._animation = false self._animation = false
self._full = true self._full = true
@ -24,6 +24,7 @@ function GroupGameSettingView.new(blur_view, gid, pid , room_config, callback)
if room_config then if room_config then
self.room_config = json.decode(room_config) self.room_config = json.decode(room_config)
end end
self.lastHpdata = hpdata
self.rewards_data = {} self.rewards_data = {}
self.callback = callback self.callback = callback
self._full = true self._full = true
@ -32,7 +33,7 @@ function GroupGameSettingView.new(blur_view, gid, pid , room_config, callback)
end end
function M:init(url) function M:init(url)
BaseWindow.init(self,url) BaseWindow.init(self, url)
self.hpData = {} self.hpData = {}
self:FillGameData() self:FillGameData()
@ -77,7 +78,7 @@ function M:FillGameData()
index = i index = i
end end
end end
self.gl_view = GameListView.new(lst_game,index,self.room_config) self.gl_view = GameListView.new(lst_game, index, self.room_config)
local btn_close = lst_game:GetChild("btn_close") local btn_close = lst_game:GetChild("btn_close")
btn_close.onClick:Set(function() btn_close.onClick:Set(function()
self:Destroy() self:Destroy()
@ -89,10 +90,9 @@ function M:FillGameData()
end end
end end
local tuoguanTimeList={10,30,60,120,180,240,300} local tuoguanTimeList = { 10, 30, 60, 120, 180, 240, 300 }
-- 显示玩法体力值配置 -- 显示玩法体力值配置
function M:FillFagData() function M:FillFagData()
local mod = self.gl_view:GetModeData() local mod = self.gl_view:GetModeData()
local game_id = mod.data.game_data.game_id local game_id = mod.data.game_data.game_id
@ -161,14 +161,14 @@ function M:FillFagData()
local tex_join_limit = panel_play_set:GetChild("tex_join_limit") local tex_join_limit = panel_play_set:GetChild("tex_join_limit")
tex_join_limit.text = hpData and d2ad(hpData.limitInRoom) or 0 tex_join_limit.text = hpData and d2ad(hpData.limitInRoom) or 0
btn_join_limit.onClick:Set(function() btn_join_limit.onClick:Set(function()
self:__input_num(tex_join_limit,"limitInRoom") self:__input_num(tex_join_limit, "limitInRoom")
end) end)
--机器人 --机器人
local btn_robot_room = panel_fag:GetChild("robot_room") local btn_robot_room = panel_fag:GetChild("robot_room")
local tex_robot_room = panel_fag:GetChild("tex_robot_room") local tex_robot_room = panel_fag:GetChild("tex_robot_room")
tex_robot_room.text = hpData and (hpData.robot_room and (hpData.robot_room) or 0) or 0 tex_robot_room.text = hpData and (hpData.robot_room and (hpData.robot_room) or 0) or 0
btn_robot_room.onClick:Set(function() btn_robot_room.onClick:Set(function()
self:__input_num(tex_robot_room,"robot_room") self:__input_num(tex_robot_room, "robot_room")
end) end)
--抢庄限制 --抢庄限制
@ -185,9 +185,9 @@ function M:FillFagData()
tex_exit_limit.text = hpData and hpData.limitPlay and d2ad(hpData.limitPlay) or 1 tex_exit_limit.text = hpData and hpData.limitPlay and d2ad(hpData.limitPlay) or 1
btn_exit_limit.onClick:Set(function() btn_exit_limit.onClick:Set(function()
-- self:__input_num(tex_exit_limit, "limitPlay") -- self:__input_num(tex_exit_limit, "limitPlay")
local gfiv = GroupNumberInputView.new(self._root_view,function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
if num == 0 then if num == 0 then
ViewUtil.ErrorMsg(nil,-9,"不能输入0") ViewUtil.ErrorMsg(nil, -9, "不能输入0")
return return
end end
tex_exit_limit.text = num tex_exit_limit.text = num
@ -213,7 +213,6 @@ function M:FillFagData()
value = value - 1 value = value - 1
tex_times.text = tostring(value) tex_times.text = tostring(value)
end end
end) end)
local btn_add = panel_play_set:GetChild("btn_add") local btn_add = panel_play_set:GetChild("btn_add")
@ -228,7 +227,7 @@ function M:FillFagData()
local tex_times_room = panel_play_set:GetChild("tex_times_room") local tex_times_room = panel_play_set:GetChild("tex_times_room")
if hpData and hpData.tex_times_room then if hpData and hpData.tex_times_room then
tex_times_room.text = hpData.tex_times_room/1000 tex_times_room.text = hpData.tex_times_room / 1000
else else
tex_times_room.text = 1 tex_times_room.text = 1
end end
@ -241,7 +240,6 @@ function M:FillFagData()
value = value - 1 value = value - 1
tex_times_room.text = tostring(value) tex_times_room.text = tostring(value)
end end
end) end)
local btn_add_room = panel_play_set:GetChild("btn_add_room") local btn_add_room = panel_play_set:GetChild("btn_add_room")
@ -313,7 +311,7 @@ function M:FillFagData()
base_pump = d2ad(hpData.basePump) base_pump = d2ad(hpData.basePump)
end end
local tex_base_pump = panel_fag:GetChild("tex_base_pump") local tex_base_pump = panel_fag:GetChild("tex_base_pump")
tex_base_pump.text = ""..base_pump tex_base_pump.text = "" .. base_pump
local btn_base_pump = panel_fag:GetChild("btn_base_pump") local btn_base_pump = panel_fag:GetChild("btn_base_pump")
btn_base_pump.onClick:Set(function() btn_base_pump.onClick:Set(function()
@ -340,7 +338,7 @@ function M:FillFagData()
_data.tuoguan = btn_tuoguan.selected _data.tuoguan = btn_tuoguan.selected
_data.tuoguan_active_time = _data.tuoguan and tuoguanTimeList[(tonumber(cb_tuoguan_time.value))] or 0 _data.tuoguan_active_time = _data.tuoguan and tuoguanTimeList[(tonumber(cb_tuoguan_time.value))] or 0
_data.tuoguan_active_timeIndex=tonumber(cb_tuoguan_time.value) _data.tuoguan_active_timeIndex = tonumber(cb_tuoguan_time.value)
_data.tuoguan_result_type = _data.tuoguan and tonumber(cb_tuoguan_type.value) or 0 _data.tuoguan_result_type = _data.tuoguan and tonumber(cb_tuoguan_type.value) or 0
if btn_BanDismiss.selected then if btn_BanDismiss.selected then
_data.isBanDismiss = 1 _data.isBanDismiss = 1
@ -349,37 +347,37 @@ function M:FillFagData()
if btn_hidden then if btn_hidden then
_data.isHidden = btn_hidden.selected and 1 or 0 _data.isHidden = btn_hidden.selected and 1 or 0
else else
_data.isHidden=0 _data.isHidden = 0
end end
if btn_vip then if btn_vip then
_data.isvip = btn_vip.selected and 1 or 0 _data.isvip = btn_vip.selected and 1 or 0
else else
_data.isvip=0 _data.isvip = 0
end end
local hpType = mod.data.game_data.hpType local hpType = mod.data.game_data.hpType
self.hpData.limitInRoom = ad2d(tonumber(panel_play_set:GetChild("tex_join_limit").text)) self.hpData.limitInRoom = ad2d(tonumber(panel_play_set:GetChild("tex_join_limit").text))
self.hpData.limitPlay = ad2d(tonumber(panel_play_set:GetChild("tex_exit_limit").text)) self.hpData.limitPlay = ad2d(tonumber(panel_play_set:GetChild("tex_exit_limit").text))
self.hpData.limitloot = 0-- ad2d(tonumber(panel_play_set:GetChild("tex_bank_limit").text)) self.hpData.limitloot = 0 -- ad2d(tonumber(panel_play_set:GetChild("tex_bank_limit").text))
self.hpData.robot_room = (tonumber(panel_fag:GetChild("tex_robot_room").text)) self.hpData.robot_room = (tonumber(panel_fag:GetChild("tex_robot_room").text))
self.hpData.type = self._type self.hpData.type = self._type
self.hpData.limitPump = self._limitPump self.hpData.limitPump = self._limitPump
local hpOnOff = ctr_switch.selectedIndex local hpOnOff = ctr_switch.selectedIndex
if game_id == 41 then if game_id == 41 then
if self.hpData.limitloot < ad2d(_data.up_bank) then if self.hpData.limitloot < ad2d(_data.up_bank) then
ViewUtil.ErrorMsg(self._root_view,-9,"抢庄限制必须大于等于" .. _data.up_bank) ViewUtil.ErrorMsg(self._root_view, -9, "抢庄限制必须大于等于" .. _data.up_bank)
return return
end end
end end
if hpType > 1 and hpOnOff == 1 then if hpType > 1 and hpOnOff == 1 then
if self.hpData.limitInRoom < self.hpData.limitPlay then if self.hpData.limitInRoom < self.hpData.limitPlay then
ViewUtil.ErrorMsg(self._root_view,-9,"进入限制必须大于等于退出限制") ViewUtil.ErrorMsg(self._root_view, -9, "进入限制必须大于等于退出限制")
return return
end end
if self.hpData.limitPlay == 0 then if self.hpData.limitPlay == 0 then
ViewUtil.ErrorMsg(self._root_view,-9,"退出房间限制不能为0") ViewUtil.ErrorMsg(self._root_view, -9, "退出房间限制不能为0")
return return
end end
end end
@ -403,7 +401,8 @@ function M:FillFagData()
-- tem.limitPump = tonumber(r_item:GetChild("cb_type").value) -- tem.limitPump = tonumber(r_item:GetChild("cb_type").value)
-- 抽水次数 固定抽水要发小数 -- 抽水次数 固定抽水要发小数
local cb_method = r_item:GetChild("cb_method") local cb_method = r_item:GetChild("cb_method")
local proportion = string.gsub(string.gsub(r_item:GetChild("cb_proportion" .. cb_method.value).title, "", ""), "", "") local proportion = string.gsub(
string.gsub(r_item:GetChild("cb_proportion" .. cb_method.value).title, "", ""), "", "")
if cb_method.value == "1" then proportion = ad2d(proportion) end if cb_method.value == "1" then proportion = ad2d(proportion) end
-- 抽水分数 -- 抽水分数
-- self.hpData.pumpProportion = tonumber(proportion) -- self.hpData.pumpProportion = tonumber(proportion)
@ -415,7 +414,6 @@ function M:FillFagData()
local vsend = string.gsub(r_item:GetChild("cb_min_send").title, "", "") local vsend = string.gsub(r_item:GetChild("cb_min_send").title, "", "")
tem.UpperLimitReward = ad2d(tonumber(vsend)) tem.UpperLimitReward = ad2d(tonumber(vsend))
else else
local v = string.gsub(r_item:GetChild("cb_max").title, "", "") local v = string.gsub(r_item:GetChild("cb_max").title, "", "")
-- self.hpData.UpperLimit = ad2d(tonumber(v)) -- self.hpData.UpperLimit = ad2d(tonumber(v))
@ -464,7 +462,8 @@ function M:FillFagData()
ViewUtil.ShowModalWait(self._root_view) ViewUtil.ShowModalWait(self._root_view)
if not self.play then if not self.play then
-- 新增玩法 -- 新增玩法
fgCtr:FG_AddPlay(self.group_id, game_id, _data, name, self.hpData, hpOnOff, group.type, self.table_color, function(res) fgCtr:FG_AddPlay(self.group_id, game_id, _data, name, self.hpData, hpOnOff, group.type, self.table_color,
function(res)
if self._is_destroy then if self._is_destroy then
return return
end end
@ -478,7 +477,7 @@ function M:FillFagData()
play.game_name = mod.data.game_data.name play.game_name = mod.data.game_data.name
play.gameId = game_id play.gameId = game_id
play.hpOnOff = hpOnOff play.hpOnOff = hpOnOff
play.hpData= json.encode(self.hpData) play.hpData = json.encode(self.hpData)
play.id = res.Data.pid play.id = res.Data.pid
play.xipai_rewards_val = self.hpData.xipairewards_val play.xipai_rewards_val = self.hpData.xipairewards_val
play.anchou_rewards_val = self.hpData.anchou_rewards_val play.anchou_rewards_val = self.hpData.anchou_rewards_val
@ -493,18 +492,19 @@ function M:FillFagData()
play.config = json.encode(_data) play.config = json.encode(_data)
play.hp_times = self.hpData.times play.hp_times = self.hpData.times
play.maxPlayers = _data.maxPlayers play.maxPlayers = _data.maxPlayers
play.roomNum=self.hpData.tex_times_room/1000 play.roomNum = self.hpData.tex_times_room / 1000
play.maxRound=res.Data.maxRound play.maxRound = res.Data.maxRound
ViewUtil.ShowBannerOnScreenCenter("添加玩法成功") ViewUtil.ShowBannerOnScreenCenter("添加玩法成功")
self.callback(play) self.callback(play)
self:Destroy() self:Destroy()
else else
ViewUtil.ErrorTip(res.ReturnCode,"添加玩法失败!") ViewUtil.ErrorTip(res.ReturnCode, "添加玩法失败!")
end end
end) end)
else else
-- 修改玩法 -- 修改玩法
fgCtr:FG_UpdatePlay(self.group_id,game_id,_data,name,self.hpData,hpOnOff,self.play.id, group.type, self.table_color, function(res) fgCtr:FG_UpdatePlay(self.group_id, game_id, _data, name, self.hpData, hpOnOff, self.play.id, group.type,
self.table_color, function(res)
if self._is_destroy then if self._is_destroy then
return return
end end
@ -519,7 +519,7 @@ function M:FillFagData()
play.gameId = game_id play.gameId = game_id
play.id = self.play.id play.id = self.play.id
play.hpOnOff = hpOnOff play.hpOnOff = hpOnOff
play.hpData= json.encode(self.hpData) play.hpData = json.encode(self.hpData)
play.xipai_rewards_val = self.hpData.xipairewards_val play.xipai_rewards_val = self.hpData.xipairewards_val
play.anchou_rewards_val = self.hpData.anchou_rewards_val play.anchou_rewards_val = self.hpData.anchou_rewards_val
play.reward = self.hpData.rewards_val play.reward = self.hpData.rewards_val
@ -533,12 +533,12 @@ function M:FillFagData()
play.config = json.encode(_data) play.config = json.encode(_data)
play.hp_times = self.hpData.times play.hp_times = self.hpData.times
play.maxPlayers = _data.maxPlayers play.maxPlayers = _data.maxPlayers
play.roomNum=self.hpData.tex_times_room/1000 play.roomNum = self.hpData.tex_times_room / 1000
play.maxRound=res.Data.maxRound play.maxRound = res.Data.maxRound
self.callback(play) self.callback(play)
self:Destroy() self:Destroy()
else else
ViewUtil.ErrorTip(res.ReturnCode,"修改玩法失败!") ViewUtil.ErrorTip(res.ReturnCode, "修改玩法失败!")
end end
end) end)
end end
@ -559,15 +559,15 @@ function M:OnRenderItem(index, obj)
local data = self.rewards_data[index] local data = self.rewards_data[index]
-- 抽水方法,固定、浮动 -- 抽水方法,固定、浮动
local cb_method = obj:GetChild("cb_method") local cb_method = obj:GetChild("cb_method")
cb_method.value = tostring(self._type) cb_method.value = 1
cb_method.onChanged:Set(function() -- cb_method.onChanged:Set(function()
local tem = membe_clone(self.rewards_data[1]) -- local tem = membe_clone(self.rewards_data[1])
tem.pumpProportion = 0 -- tem.pumpProportion = 0
self._type = tonumber(cb_method.value) -- self._type = tonumber(cb_method.value)
self.rewards_data = {} -- self.rewards_data = {}
self.rewards_data[1] = tem -- self.rewards_data[1] = tem
self:UpdateRewards() -- self:UpdateRewards()
end) -- end)
--大赢家 --大赢家
local tem = obj:GetController("c1").selectedIndex local tem = obj:GetController("c1").selectedIndex
for i = 1, 2 do for i = 1, 2 do
@ -596,6 +596,7 @@ function M:OnRenderItem(index, obj)
end end
local cb_proportion1 = obj:GetChild("cb_proportion1") local cb_proportion1 = obj:GetChild("cb_proportion1")
local cb_proportion2 = obj:GetChild("cb_proportion2") local cb_proportion2 = obj:GetChild("cb_proportion2")
print(cb_method.value)
obj:GetChild("cb_proportion" .. cb_method.value).title = "" .. val .. "" obj:GetChild("cb_proportion" .. cb_method.value).title = "" .. val .. ""
cb_proportion1.onChanged:Set(function() cb_proportion1.onChanged:Set(function()
data.pumpProportion = ad2d(string.gsub(string.gsub(cb_proportion1.title, "", ""), "", "")) data.pumpProportion = ad2d(string.gsub(string.gsub(cb_proportion1.title, "", ""), "", ""))
@ -625,7 +626,6 @@ function M:OnRenderItem(index, obj)
end end
obj:GetController("give_owner").onChanged:Add(function() obj:GetController("give_owner").onChanged:Add(function()
if obj:GetController("give_owner").selectedIndex == 0 then if obj:GetController("give_owner").selectedIndex == 0 then
data.UpperLimitReward = 0 data.UpperLimitReward = 0
self:UpdateRewards() self:UpdateRewards()
@ -651,11 +651,11 @@ function M:OnRenderItem(index, obj)
if next_data then if next_data then
tem = string.format("小于%s", d2ad(next_data.UpperLimit)) tem = string.format("小于%s", d2ad(next_data.UpperLimit))
end end
local tem1 ="" local tem1 = ""
if UpperLimitReward ~= 0 then if UpperLimitReward ~= 0 then
tem1 = string.format(",每个玩家赠送盟主%s分",UpperLimitReward) tem1 = string.format(",每个玩家赠送盟主%s分", UpperLimitReward)
end end
str_min_tip = string.format("(低于%s分不抽水%s)", UpperLimit,tem1) str_min_tip = string.format("(低于%s分不抽水%s)", UpperLimit, tem1)
-- str_max_tip = string.format("(低于%s按此设置抽水)", UpperLimit) -- str_max_tip = string.format("(低于%s按此设置抽水)", UpperLimit)
elseif index == #self.rewards_data then elseif index == #self.rewards_data then
str_min_tip = string.format("(大于等于%s按此设置抽水)", UpperLimit) str_min_tip = string.format("(大于等于%s按此设置抽水)", UpperLimit)
@ -672,9 +672,9 @@ function M:OnRenderItem(index, obj)
local input_limit = 1000 local input_limit = 1000
local btn_input = obj:GetChild("btn_input") local btn_input = obj:GetChild("btn_input")
btn_input.onClick:Set(function() btn_input.onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view,function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
if num > input_limit then if num > input_limit then
ViewUtil.ErrorMsg(self._root_view,-9,"输入最大不能超过" .. input_limit) ViewUtil.ErrorMsg(self._root_view, -9, "输入最大不能超过" .. input_limit)
return return
end end
cb_proportion1.title = "" .. num .. "" cb_proportion1.title = "" .. num .. ""
@ -695,15 +695,15 @@ function M:OnRenderItem(index, obj)
end end
local btn_input2 = obj:GetChild("btn_input2") local btn_input2 = obj:GetChild("btn_input2")
btn_input2.onClick:Set(function() btn_input2.onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view,function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
if num > input_limit2 then if num > input_limit2 then
ViewUtil.ErrorMsg(nil,-9,"输入值不能超过" .. input_limit2) ViewUtil.ErrorMsg(nil, -9, "输入值不能超过" .. input_limit2)
return return
elseif num >= max_v then elseif num >= max_v then
ViewUtil.ErrorMsg(nil,-9,"输入值必须小于" .. max_v) ViewUtil.ErrorMsg(nil, -9, "输入值必须小于" .. max_v)
return return
elseif num <= min_v then elseif num <= min_v then
ViewUtil.ErrorMsg(nil,-9,"输入值必须大于" .. min_v) ViewUtil.ErrorMsg(nil, -9, "输入值必须大于" .. min_v)
return return
end end
-- cb_min.title = num .. "分" -- cb_min.title = num .. "分"
@ -715,8 +715,7 @@ function M:OnRenderItem(index, obj)
local btn_input2_send = obj:GetChild("btn_input2_send") local btn_input2_send = obj:GetChild("btn_input2_send")
btn_input2_send.onClick:Set(function() btn_input2_send.onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view,function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
data.UpperLimitReward = ad2d(num) data.UpperLimitReward = ad2d(num)
self:UpdateRewards() self:UpdateRewards()
end, 3) end, 3)
@ -726,15 +725,15 @@ function M:OnRenderItem(index, obj)
local tem = string.gsub(cb_min.title, "", "") local tem = string.gsub(cb_min.title, "", "")
local tem = tonumber(tem) local tem = tonumber(tem)
if tem > input_limit2 then if tem > input_limit2 then
ViewUtil.ErrorMsg(nil,-9,"输入值不能超过" .. input_limit2) ViewUtil.ErrorMsg(nil, -9, "输入值不能超过" .. input_limit2)
return return
elseif tem >= max_v then elseif tem >= max_v then
cb_min.title = d2ad(data.UpperLimit) .. "" cb_min.title = d2ad(data.UpperLimit) .. ""
ViewUtil.ErrorMsg(nil,-9,"输入值必须小于" .. max_v) ViewUtil.ErrorMsg(nil, -9, "输入值必须小于" .. max_v)
return return
elseif tem <= min_v then elseif tem <= min_v then
cb_min.title = d2ad(data.UpperLimit) .. "" cb_min.title = d2ad(data.UpperLimit) .. ""
ViewUtil.ErrorMsg(nil,-9,"输入值必须大于" .. min_v) ViewUtil.ErrorMsg(nil, -9, "输入值必须大于" .. min_v)
return return
end end
data.UpperLimit = ad2d(string.gsub(cb_min.title, "", "")) data.UpperLimit = ad2d(string.gsub(cb_min.title, "", ""))
@ -754,7 +753,7 @@ function M:OnRenderItem(index, obj)
local tem = tonumber(tem) local tem = tonumber(tem)
if tem > max_v then if tem > max_v then
self:SetIndex(cb_max, d2ad(data.UpperLimit)) self:SetIndex(cb_max, d2ad(data.UpperLimit))
ViewUtil.ErrorMsg(nil,-9,"输入值必须小于" .. max_v) ViewUtil.ErrorMsg(nil, -9, "输入值必须小于" .. max_v)
return return
-- elseif tem <= min_v then -- elseif tem <= min_v then
-- self:SetIndex(cb_max, d2ad(data.UpperLimit)) -- self:SetIndex(cb_max, d2ad(data.UpperLimit))
@ -775,7 +774,7 @@ function M:OnRenderItem(index, obj)
return return
end end
local ul = cb_method.value == "1" and data.UpperLimit + 10 or ad2d(cb_max.values[cb_max.selectedIndex + 1]) local ul = cb_method.value == "1" and data.UpperLimit + 10 or ad2d(cb_max.values[cb_max.selectedIndex + 1])
local tem = {type = data.type, pumpProportion = data.pumpProportion, UpperLimit = ul} local tem = { type = data.type, pumpProportion = data.pumpProportion, UpperLimit = ul }
table.insert(self.rewards_data, tem) table.insert(self.rewards_data, tem)
self:UpdateRewards() self:UpdateRewards()
end) end)
@ -803,7 +802,7 @@ end
function M:__input_num(tex, filed, itype) function M:__input_num(tex, filed, itype)
itype = itype or 0 itype = itype or 0
local gfiv = GroupNumberInputView.new(self._root_view,function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
tex.text = num tex.text = num
if filed == "robot_room" then if filed == "robot_room" then
--printlog("cccccccccccccccc ",num) --printlog("cccccccccccccccc ",num)
@ -811,7 +810,6 @@ function M:__input_num(tex, filed, itype)
else else
self.hpData[filed] = ad2d(num) self.hpData[filed] = ad2d(num)
end end
end, itype) end, itype)
gfiv:Show() gfiv:Show()
end end

View File

@ -5,8 +5,8 @@ local GroupMngGameListView = {}
local M = GroupMngGameListView local M = GroupMngGameListView
function GroupMngGameListView.new(gid, blur_view) function GroupMngGameListView.new(gid, blur_view)
setmetatable(M, {__index = BaseWindow}) setmetatable(M, { __index = BaseWindow })
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = "GroupMngGameListView" self.class = "GroupMngGameListView"
self.group_id = gid self.group_id = gid
self.blur_view = blur_view self.blur_view = blur_view
@ -67,9 +67,10 @@ function M:OnRenderItem(index, obj)
local str_reward_type = play.rewardType == 1 and "赢家返点" or (play.rewardType == 2 and "人头返点") local str_reward_type = play.rewardType == 1 and "赢家返点" or (play.rewardType == 2 and "人头返点")
local str_reward_val = play.rewardValueType == 1 and "百分比返点" or "固定值返点" local str_reward_val = play.rewardValueType == 1 and "百分比返点" or "固定值返点"
local str_hp_type = hpData.type == 1 and "固定抽水" or "浮动抽水" local str_hp_type = hpData.type == 1 and "固定抽水" or "浮动抽水"
local str_base_pump = (hpData.basePump ~= nil and hpData.basePump > 0) and "抽水保障".. d2ad(hpData.basePump) or "" local str_base_pump = (hpData.basePump ~= nil and hpData.basePump > 0) and "抽水保障" .. d2ad(hpData.basePump) or ""
local str_pump = "" local str_pump = ""
local str_hp_winner = hpData.limitPump == 0 and "大赢家" or hpData.limitPump == 1 and "所有赢家" or hpData.limitPump == 2 and "两个赢家" or hpData.limitPump == 2 and "三个赢家" or "所有玩家平分" local str_hp_winner = hpData.limitPump == 0 and "大赢家" or hpData.limitPump == 1 and "所有赢家" or
hpData.limitPump == 2 and "两个赢家" or hpData.limitPump == 2 and "三个赢家" or "所有玩家平分"
if hpData.rewards_list then if hpData.rewards_list then
-- for i = 1, #hpData.rewards_list do -- for i = 1, #hpData.rewards_list do
local rd = hpData.rewards_list[#hpData.rewards_list] local rd = hpData.rewards_list[#hpData.rewards_list]
@ -81,7 +82,8 @@ function M:OnRenderItem(index, obj)
str_pump = string.format(" 抽%s次 %s分", pump, d2ad(hpData.UpperLimit)) str_pump = string.format(" 抽%s次 %s分", pump, d2ad(hpData.UpperLimit))
end end
local str_fag = string.format("%s %s%s", str_hp_type, str_hp_winner, str_pump) local str_fag = string.format("%s %s%s", str_hp_type, str_hp_winner, str_pump)
local str = string.format("%s %s 进入门槛%s 倍数%s %s %s", str_reward_type, str_reward_val, d2ad(hpData.limitInRoom), d2ad(hpData.times), str_base_pump, str_fag) local str = string.format("%s %s 进入门槛%s 倍数%s %s %s", str_reward_type, str_reward_val, d2ad(hpData.limitInRoom),
d2ad(hpData.times), str_base_pump, str_fag)
-- local str = string.format("进入门槛%s 倍数%s %s %s", d2ad(hpData.limitInRoom), d2ad(hpData.times), str_reward_type, str_reward_val) -- local str = string.format("进入门槛%s 倍数%s %s %s", d2ad(hpData.limitInRoom), d2ad(hpData.times), str_reward_type, str_reward_val)
if game and game.hpType > 1 then if game and game.hpType > 1 then
str = string.format("%s 抢庄限制%s 退出限制%s", str, d2ad(hpData.limitloot), d2ad(hpData.limitPlay)) str = string.format("%s 抢庄限制%s 退出限制%s", str, d2ad(hpData.limitloot), d2ad(hpData.limitPlay))
@ -93,17 +95,14 @@ function M:OnRenderItem(index, obj)
-- end -- end
-- end -- end
hpStr = "[color=#08a805]积分设置:[/color]".."[color=#2365bb]"..str.."[/color]" hpStr = "[color=#08a805]积分设置:[/color]" .. "[color=#2365bb]" .. str .. "[/color]"
else else
hpStr = "[color=#08a805]积分设置:[/color]" .. "积分关闭"
hpStr = "[color=#08a805]积分设置:[/color]".."积分关闭"
end end
--obj:GetChild("tex_fag_info").text = "积分关闭" --obj:GetChild("tex_fag_info").text = "积分关闭"
local gameStr local gameStr
if not game then if not game then
gameStr = "没有添加该玩法" gameStr = "没有添加该玩法"
else else
-- 副圈主初始化扩展 -- 副圈主初始化扩展
if group.lev == 2 then if group.lev == 2 then
@ -116,15 +115,15 @@ function M:OnRenderItem(index, obj)
exconfig:FillRoomConfig(r, data) exconfig:FillRoomConfig(r, data)
gameStr = string.gsub(r.room_config:GetDes(), "\r", "") gameStr = string.gsub(r.room_config:GetDes(), "\r", "")
gameStr = "[color=#08a805]玩法说明:[/color]".."[color=#2365bb]"..gameStr.."[/color]" gameStr = "[color=#08a805]玩法说明:[/color]" .. "[color=#2365bb]" .. gameStr .. "[/color]"
end end
obj:GetChild("com_gameinfo"):GetChild("tex_room_info").text = hpStr.."\n"..gameStr obj:GetChild("com_gameinfo"):GetChild("tex_room_info").text = hpStr .. "\n" .. gameStr
obj:GetChild("btn_del").onClick:Set(function() obj:GetChild("btn_del").onClick:Set(function()
local msg_del = MsgWindow.new(nil, "删除该玩法,该玩法的相关数据也会被清除。\r确定要删除吗?", MsgWindow.MsgMode.OkAndCancel) local msg_del = MsgWindow.new(nil, "删除该玩法,该玩法的相关数据也会被清除。\r确定要删除吗?", MsgWindow.MsgMode.OkAndCancel)
msg_del.onOk:Add(function( ... ) msg_del.onOk:Add(function(...)
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
ViewUtil.ShowModalWait() ViewUtil.ShowModalWait()
fgCtr:FG_DelPlay(self.group_id, play.id, function(res) fgCtr:FG_DelPlay(self.group_id, play.id, function(res)
@ -138,14 +137,14 @@ function M:OnRenderItem(index, obj)
local group = DataManager.groups:get(self.group_id) local group = DataManager.groups:get(self.group_id)
group.update_play = true group.update_play = true
else else
ViewUtil.ErrorTip(res.ReturnCode,"删除玩法失败") ViewUtil.ErrorTip(res.ReturnCode, "删除玩法失败")
end end
end) end)
end) end)
msg_del:Show() msg_del:Show()
end) end)
obj:GetChild("btn_edit").onClick:Set(function() obj:GetChild("btn_edit").onClick:Set(function()
self:EditPlay(play.id, play.config) self:EditPlay(play.id, play.config, play.hpData)
end) end)
obj:GetChild("btn_ban").onClick:Set(function() obj:GetChild("btn_ban").onClick:Set(function()
self:BanPlay(play.id, 1) self:BanPlay(play.id, 1)
@ -165,11 +164,9 @@ function M:OnRenderItem(index, obj)
-- obj:GetChild("btn_select").onClick:Set(function() -- obj:GetChild("btn_select").onClick:Set(function()
-- self:MarkPlay(MarkSelect,play.id,MarkSelect.selected) -- self:MarkPlay(MarkSelect,play.id,MarkSelect.selected)
-- end) -- end)
end end
function M:MarkPlay(markS, pid, isMark)
function M:MarkPlay(markS,pid,isMark)
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
ViewUtil.ShowModalWait() ViewUtil.ShowModalWait()
fgCtr:FG_MarkPlay(self.group_id, pid, isMark, function(res) fgCtr:FG_MarkPlay(self.group_id, pid, isMark, function(res)
@ -183,43 +180,40 @@ function M:MarkPlay(markS,pid,isMark)
self:SetSortOrder(group.playList) self:SetSortOrder(group.playList)
self.lst_play.numItems = #group.playList self.lst_play.numItems = #group.playList
else else
markS.selected=not isMark markS.selected = not isMark
ViewUtil.ErrorTip(res.ReturnCode,"设置失败,或已达设置上限") ViewUtil.ErrorTip(res.ReturnCode, "设置失败,或已达设置上限")
end end
end) end)
end end
function M:SetSortOrder(playList) function M:SetSortOrder(playList)
if playList and #playList>0 then if playList and #playList > 0 then
local oldList={} local oldList = {}
local newList={} local newList = {}
for i=1,#playList do for i = 1, #playList do
if playList[i].mark then if playList[i].mark then
table.insert(newList,playList[i]) table.insert(newList, playList[i])
else else
table.insert(oldList,playList[i]) table.insert(oldList, playList[i])
end end
end end
if #newList>0 then if #newList > 0 then
for i=1,#newList do for i = 1, #newList do
table.insert(oldList,newList[i]) table.insert(oldList, newList[i])
end end
end end
DataManager.groups:get(self.group_id).playList=oldList DataManager.groups:get(self.group_id).playList = oldList
end end
end end
-- 设置玩法 -- 设置玩法
function M:EditPlay(pid, config) function M:EditPlay(pid, config, hpdata)
if #DataManager.SelfUser.games == 0 then if #DataManager.SelfUser.games == 0 then
ViewUtil.ErrorTip(nil, "请先至游戏大厅创建房间添加玩法") ViewUtil.ErrorTip(nil, "请先至游戏大厅创建房间添加玩法")
return return
end end
local tem = GroupGameSettingView.new(self.blur_view, self.group_id, pid, config, function(play) local tem = GroupGameSettingView.new(self.blur_view, self.group_id, pid, config, hpdata, function(play)
local group = DataManager.groups:get(self.group_id) local group = DataManager.groups:get(self.group_id)
group:addPlay(play) group:addPlay(play)
self:FillView() self:FillView()
@ -243,7 +237,7 @@ function M:BanPlay(pid, ban)
group:banPlay(pid, ban) group:banPlay(pid, ban)
self.lst_play.numItems = #group.playList self.lst_play.numItems = #group.playList
else else
ViewUtil.ErrorTip(res.ReturnCode,"设置失败") ViewUtil.ErrorTip(res.ReturnCode, "设置失败")
end end
end) end)
end end

View File

@ -15,7 +15,7 @@ local MngPermission = import('.MngPermission')
local GroupMngMemberHpListView = { local GroupMngMemberHpListView = {
numberMap = { {}, {} }, numberMap = { {}, {} },
backTable = {}, backTable = {},
pageNum = 10, pageNum = 20,
start = 1, start = 1,
page = 1 page = 1
} }
@ -95,12 +95,12 @@ function M:FillView()
self.lst_member.itemRenderer = function(index, obj) self.lst_member.itemRenderer = function(index, obj)
self:OnRenderItem(index, obj) self:OnRenderItem(index, obj)
end end
self.lst_member.scrollPane.onPullUpRelease:Set( -- self.lst_member.scrollPane.onPullUpRelease:Set(
function() -- function()
--printlog("aaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ",self.lst_member.numItems) -- --printlog("aaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbb ",self.lst_member.numItems)
self:GetMemberData(self.lst_member.numItems) -- self:GetMemberData(self.lst_member.numItems)
end -- end
) -- )
-- 初始化搜索成员列表 -- 初始化搜索成员列表
self.lst_member_find = self._view:GetChild('lst_member_find') self.lst_member_find = self._view:GetChild('lst_member_find')
@ -223,26 +223,38 @@ function M:GetMemberData(index)
ViewUtil.ShowModalWait(nil, "亲友圈成员较多,请稍后") ViewUtil.ShowModalWait(nil, "亲友圈成员较多,请稍后")
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
self.member_data = {}
self.all_member_data = {}
self:RecursionGetMenberData(fgCtr, 0)
end
function M:RecursionGetMenberData(fgCtr, index)
fgCtr:FG_GroupMembers12( fgCtr:FG_GroupMembers12(
self.group_id, self.group_id,
index, index * 67,
self.curGroup.total_member_num, 67,
self.stype, self.stype,
self.online, self.online,
function(res) function(res)
ViewUtil.CloseModalWait()
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
ViewUtil.CloseModalWait()
ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败') ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败')
self:Destroy()
return
else else
self.all_member_data = group.members if res.Data.members and #res.Data.members > 0 then
local mumbers = res.Data.members
-- self.member_data = self.all_member_data -- self.member_data = self.all_member_data
self.member_data = {} for i = 1, #mumbers do
for i = 1, #self.all_member_data do local number = mumbers[i]
local number = self.all_member_data[i]
if number.uid == DataManager.SelfUser.account_id or number.parentId == DataManager.SelfUser.account_id then if number.uid == DataManager.SelfUser.account_id or number.parentId == DataManager.SelfUser.account_id then
table.insert(self.member_data, number) table.insert(self.member_data, number)
end end
table.insert(self.all_member_data, number)
end end
self:RecursionGetMenberData(fgCtr, index + 1)
else
ViewUtil.CloseModalWait()
self.page = math.ceil(#self.member_data / self.pageNum) self.page = math.ceil(#self.member_data / self.pageNum)
self.lst_member.numItems = self:GetChildNumForPage() self.lst_member.numItems = self:GetChildNumForPage()
self._view:GetChild('text_ye').text = string.format("%d/%d", self.start, self.page) self._view:GetChild('text_ye').text = string.format("%d/%d", self.start, self.page)
@ -252,6 +264,7 @@ function M:GetMemberData(index)
end end
end end
end end
end
) )
end end

View File

@ -229,6 +229,10 @@ function M:FillView()
ViewUtil.ErrorTip(res.ReturnCode, "获取合伙人奖励失败") ViewUtil.ErrorTip(res.ReturnCode, "获取合伙人奖励失败")
else else
self.rewards = res.Data.rewards self.rewards = res.Data.rewards
if not self.rewards then
ViewUtil.ErrorTip(nil, "玩法为空")
return
end
self.lst_rewards.numItems = #self.rewards self.lst_rewards.numItems = #self.rewards
end end
end) end)
@ -257,26 +261,35 @@ function M:GetMemberData(index)
end end
ViewUtil.ShowModalWait(nil, "亲友圈成员较多,请稍后") ViewUtil.ShowModalWait(nil, "亲友圈成员较多,请稍后")
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
self.member_data = {}
self:RecursionGetMenberData(fgCtr, 0)
end
function M:RecursionGetMenberData(fgCtr, index)
fgCtr:FG_GroupMembers12( fgCtr:FG_GroupMembers12(
self.group_id, self.group_id,
index, index * 67,
self.curGroup.total_member_num, 67,
self.stype, self.stype,
self.online, self.online,
function(res) function(res)
ViewUtil.CloseModalWait()
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
ViewUtil.CloseModalWait()
ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败') ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败')
self:Destroy()
return
else else
local members = group.members if res.Data.members and #res.Data.members > 0 then
-- local tempNumberList = {} local mumbers = res.Data.members
-- for i = 1, #members do -- self.member_data = self.all_member_data
-- if members[i].lev < 3 or members[i].partnerLev ~= 0 then for i = 1, #mumbers do
-- table.insert(tempNumberList, members[i]) local number = mumbers[i]
-- end table.insert(self.member_data, number)
-- end end
self.member_data = members self:RecursionGetMenberData(fgCtr, index + 1)
self.page = math.ceil(#group.members / self.pageNum) else
ViewUtil.CloseModalWait()
self.page = math.ceil(#self.member_data / self.pageNum)
self.lst_member.numItems = self:GetChildNumForPage() self.lst_member.numItems = self:GetChildNumForPage()
self._view:GetChild('text_ye').text = string.format("%d/%d", self.start, self.page) self._view:GetChild('text_ye').text = string.format("%d/%d", self.start, self.page)
if index == 0 then if index == 0 then
@ -285,6 +298,7 @@ function M:GetMemberData(index)
end end
end end
end end
end
) )
end end

View File

@ -1,20 +1,26 @@
{ {
"objectStatus": { "objectStatus": {
"n147_10tp2": {
"hidden": true
},
"n175_upe1": {
"hidden": true
},
"n165_umid": {
"collapsed": true
},
"n145_10tp2": { "n145_10tp2": {
"hidden": true "hidden": true
}, },
"n147_10tp2": {
"hidden": true
},
"n156_10tp2": { "n156_10tp2": {
"hidden": true, "hidden": true,
"collapsed": true "collapsed": true
},
"n165_umid": {
"collapsed": true
},
"n122_cioe": {
"hidden": true
},
"n175_upe1": {
"hidden": true
},
"n141_u26u": {
"hidden": true
} }
} }
} }

View File

@ -1 +1,7 @@
{} {
"objectStatus": {
"n109_g21o": {
"hidden": true
}
}
}

View File

@ -1,5 +1,5 @@
{ {
"libview.firstColumnWidth": 297, "libview.firstColumnWidth": 522,
"expanded_nodes": [ "expanded_nodes": [
"27vd145b", "27vd145b",
"/", "/",
@ -37,6 +37,11 @@
"ui://ppu1wv76j4mf9k", "ui://ppu1wv76j4mf9k",
"ui://v6yvqp7wf55qwa", "ui://v6yvqp7wf55qwa",
"ui://v6yvqp7wf55qw7", "ui://v6yvqp7wf55qw7",
"ui://m7iejg46kwi0hkb",
"ui://m7iejg46mpllhv2",
"ui://m7iejg46kwi0hkl",
"ui://m7iejg46mpllhv5",
"ui://m7iejg46mkdvhdu",
"ui://v6yvqp7wf55qw5", "ui://v6yvqp7wf55qw5",
"ui://v6yvqp7waen81bs", "ui://v6yvqp7waen81bs",
"ui://v6yvqp7waen81b0", "ui://v6yvqp7waen81b0",
@ -70,7 +75,7 @@
"test.device": "720p Phone", "test.device": "720p Phone",
"canvasColor": 10066329, "canvasColor": 10066329,
"auxline2": true, "auxline2": true,
"doc.activeDoc": "ui://v6yvqp7wf55qw7", "doc.activeDoc": "ui://m7iejg46mpllhv5",
"libview.twoColumn": false, "libview.twoColumn": false,
"libview.expandedNodes": [ "libview.expandedNodes": [
"s63l0suw", "s63l0suw",
@ -88,7 +93,9 @@
"v6yvqp7w", "v6yvqp7w",
"/component/", "/component/",
"v6yvqp7w", "v6yvqp7w",
"/component/Main/" "/component/Main/",
"v6yvqp7w",
"/component/Main/component/"
], ],
"auxline1": true, "auxline1": true,
"snapToGrid": true, "snapToGrid": true,

View File

@ -8,7 +8,7 @@
<controller name="edit_type" pages="0,新建,1,修改,赢家返点,2,修改,人头返点,3," selected="0"/> <controller name="edit_type" pages="0,新建,1,修改,赢家返点,2,修改,人头返点,3," selected="0"/>
<controller name="enable_join_limit" exported="true" pages="0,,1," selected="0"/> <controller name="enable_join_limit" exported="true" pages="0,,1," selected="0"/>
<controller name="alliance" pages="0,,1," selected="0"/> <controller name="alliance" pages="0,,1," selected="0"/>
<controller name="rewards_value" pages="0,百分比,1,固定值" selected="1"/> <controller name="rewards_value" homePageType="specific" homePage="1" pages="0,百分比,1,固定值" selected="0"/>
<controller name="edit_value_type" pages="0,新建,1,百分比,2,固定值" selected="0"/> <controller name="edit_value_type" pages="0,新建,1,百分比,2,固定值" selected="0"/>
<controller name="rewards1" pages="0,,1,,2," selected="0"/> <controller name="rewards1" pages="0,,1,,2," selected="0"/>
<controller name="edit_type1" pages="0,,1,,2,,3," selected="0"/> <controller name="edit_type1" pages="0,,1,,2,,3," selected="0"/>
@ -33,7 +33,7 @@
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<Button title="人头返点" titleFontSize="20" controller="rewards" page="1"/> <Button title="人头返点" titleFontSize="20" controller="rewards" page="1"/>
</component> </component>
<group id="n122_cioe" name="n122" xy="588,8" size="185,36" group="n114_kwi0" advanced="true"> <group id="n122_cioe" name="n122" xy="588,8" size="185,36" group="n114_kwi0" visible="false" advanced="true">
<gearDisplay controller="edit_type" pages="0,2"/> <gearDisplay controller="edit_type" pages="0,2"/>
<gearXY controller="edit_type" pages="0,1,2" values="588,8|853,3|588,8" default="581,79"/> <gearXY controller="edit_type" pages="0,1,2" values="588,8|853,3|588,8" default="581,79"/>
</group> </group>
@ -54,27 +54,27 @@
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
</text> </text>
<group id="n128_g21o" name="n128" xy="824,1" size="432,49" group="n114_kwi0" advanced="true"/> <group id="n128_g21o" name="n128" xy="824,1" size="432,49" group="n114_kwi0" advanced="true"/>
<component id="n141_u26u" name="n141" src="h1uu3f" fileName="component/create_room/Btn_cr_checkbox.xml" pkg="27vd145b" xy="330,59" size="206,36" group="n114_kwi0"> <component id="n141_u26u" name="n141" src="h1uu3f" fileName="component/create_room/Btn_cr_checkbox.xml" pkg="27vd145b" xy="330,59" size="206,36" group="n114_kwi0" visible="false">
<gearDisplay controller="edit_value_type" pages="0,1"/> <gearDisplay controller="edit_value_type" pages="0,1"/>
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<Button title="百分比返点" titleFontSize="20" controller="rewards_value" page="0"/> <Button checked="true" title="百分比返点" titleFontSize="20" controller="rewards_value" page="0"/>
</component> </component>
<component id="n142_u26u" name="n142" src="h1uu3f" fileName="component/create_room/Btn_cr_checkbox.xml" pkg="27vd145b" xy="589,61" size="206,36" group="n114_kwi0"> <component id="n142_u26u" name="n142" src="h1uu3f" fileName="component/create_room/Btn_cr_checkbox.xml" pkg="27vd145b" xy="589,10" size="206,36" group="n114_kwi0">
<gearDisplay controller="edit_value_type" pages="0,2"/> <gearDisplay controller="edit_value_type" pages="0,2"/>
<gearXY controller="edit_value_type" pages="0,2" values="589,61|331,61" default="404,61"/> <gearXY controller="edit_value_type" pages="0,2" values="589,10|331,61" default="404,61"/>
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<Button checked="true" title="固定值返点" titleFontSize="20" controller="rewards_value" page="1"/> <Button title="固定值返点" titleFontSize="20" controller="rewards_value" page="1"/>
</component> </component>
<group id="n114_kwi0" name="n114" xy="330,1" size="926,96" group="n133_ozaz" advanced="true"/> <group id="n114_kwi0" name="n114" xy="330,1" size="926,94" group="n133_ozaz" advanced="true"/>
<group id="n133_ozaz" name="n133" xy="62,1" size="1194,96" advanced="true"/> <group id="n133_ozaz" name="n133" xy="62,1" size="1194,94" advanced="true"/>
<component id="n111_kwi0" name="n111" src="kwi0hjx" fileName="mgr/component/comm/mng_label.xml" xy="90,109" size="183,135" group="n140_ozaz" controller="type,1"> <component id="n111_kwi0" name="n111" src="kwi0hjx" fileName="mgr/component/comm/mng_label.xml" xy="90,109" size="183,135" group="n140_ozaz" controller="type,1">
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<Button title="抽水:" titleFontSize="20"/> <Button title="抽水:" titleFontSize="20"/>
</component> </component>
<list id="n125_mpll" name="lst_rewards" xy="267,118" size="905,141" group="n140_ozaz" lineGap="10" defaultItem="ui://m7iejg46mpllhv5" align="center"> <list id="n125_mpll" name="lst_rewards" xy="268,154" size="905,141" group="n140_ozaz" touchable="false" lineGap="10" defaultItem="ui://m7iejg46mpllhv5" align="center">
<item/> <item/>
</list> </list>
<group id="n140_ozaz" name="n140" xy="90,109" size="1082,150"/> <group id="n140_ozaz" name="n140" xy="90,109" size="1083,186"/>
<component id="n143_10tp2" name="n143" src="kwi0hjx" fileName="mgr/component/comm/mng_label.xml" xy="62,262" size="200,57" group="n156_10tp2" controller="type,1"> <component id="n143_10tp2" name="n143" src="kwi0hjx" fileName="mgr/component/comm/mng_label.xml" xy="62,262" size="200,57" group="n156_10tp2" controller="type,1">
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<Button title="洗牌返点:" titleFontSize="20"/> <Button title="洗牌返点:" titleFontSize="20"/>

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="905,135"> <component size="905,135">
<controller name="c1" pages="0,,6,,7," selected="0"/> <controller name="c1" pages="0,,6,,7," selected="0"/>
<controller name="type" pages="0,,1,,2,,3," selected="1"> <controller name="type" pages="0,,1,,2,,3," selected="0">
<action type="change_page" fromPage="0,1" toPage="2,3" controller="c1" targetPage="0"/> <action type="change_page" fromPage="0,1" toPage="2,3" controller="c1" targetPage="0"/>
</controller> </controller>
<controller name="last" pages="0,,1," selected="1"/> <controller name="last" pages="0,,1," selected="0"/>
<controller name="first" pages="0,,1," selected="0"/> <controller name="first" pages="0,,1," selected="0"/>
<controller name="give_owner" pages="0,,1," selected="0"/> <controller name="give_owner" pages="0,,1," selected="0"/>
<displayList> <displayList>
<component id="n96_kwi0" name="cb_method" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="4,0" size="199,49" controller="type,1"> <component id="n96_kwi0" name="cb_method" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="4,-1" size="199,49" touchable="false" controller="type,0">
<gearLook controller="type" pages="2,3" values="1,0,0,0|1,0,0,0" default="1,0,0,1"/> <gearLook controller="type" pages="0,2,3" values="1,0,0,0|1,0,0,0|1,0,0,0" default="1,0,0,1"/>
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<ComboBox title="固定抽水" visibleItemCount="5" direction="down" selectionController="c1"> <ComboBox title="固定抽水" visibleItemCount="5" direction="down" selectionController="c1">
<item title="固定抽水" value="1"/> <item title="固定抽水" value="1"/>
@ -59,7 +59,7 @@
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
</component> </component>
<group id="n119_124ey" name="n119" xy="221,0" size="554,50"/> <group id="n119_124ey" name="n119" xy="221,0" size="554,50"/>
<component id="n108_mpll" name="cb_type2" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="221,0" size="193,49" group="n120_124ey" controller="type,1"> <component id="n108_mpll" name="cb_type2" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="221,0" size="193,49" group="n120_124ey" touchable="false" controller="type,1">
<gearDisplay controller="c1" pages="1,2"/> <gearDisplay controller="c1" pages="1,2"/>
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<ComboBox visibleItemCount="5" direction="down"> <ComboBox visibleItemCount="5" direction="down">
@ -69,7 +69,7 @@
<item title="三个赢家" value="3"/> <item title="三个赢家" value="3"/>
</ComboBox> </ComboBox>
</component> </component>
<component id="n99_kwi0" name="cb_proportion2" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="438,0" size="193,49" group="n120_124ey" controller="type,1"> <component id="n99_kwi0" name="cb_proportion2" src="mkdvhdu" fileName="component/Btn/ComboBox1.xml" xy="438,0" size="193,49" group="n120_124ey" touchable="false" controller="type,1">
<gearDisplay controller="c1" pages="1"/> <gearDisplay controller="c1" pages="1"/>
<relation target="" sidePair="center-center%"/> <relation target="" sidePair="center-center%"/>
<ComboBox visibleItemCount="5" direction="down"> <ComboBox visibleItemCount="5" direction="down">
@ -198,6 +198,6 @@
<group id="n111_vz9l" name="n111" xy="438,71" size="365,49" group="n109_g21o" advanced="true"> <group id="n111_vz9l" name="n111" xy="438,71" size="365,49" group="n109_g21o" advanced="true">
<gearDisplay controller="c1" pages="1"/> <gearDisplay controller="c1" pages="1"/>
</group> </group>
<group id="n109_g21o" name="n109" xy="-3,50" size="868,86"/> <group id="n109_g21o" name="n109" xy="-3,50" size="868,86" visible="false" advanced="true"/>
</displayList> </displayList>
</component> </component>