倍数修改100

master
罗家炜 2025-06-19 23:51:18 +08:00
parent 08fa583c33
commit 866ca2e5d6
22 changed files with 2213 additions and 2416 deletions

View File

@ -179,7 +179,7 @@ local function __fillRoomItem(self, index, item, room)
room_item:SetPlay(play) room_item:SetPlay(play)
-- local str="(人数:".. room.maxPlayers -- local str="(人数:".. room.maxPlayers
-- if room.limitInRoom then -- if room.limitInRoom then
-- str=str.." 限制积分:"..room.limitInRoom/1000 ..")" -- str=str.." 限制积分:"..room.limitInRoom/100 ..")"
-- else -- else
-- str=str..")" -- str=str..")"
-- end -- end
@ -187,7 +187,7 @@ local function __fillRoomItem(self, index, item, room)
local str = "" local str = ""
if room.limitInRoom then if room.limitInRoom then
str = str .. room.limitInRoom / 1000 str = str .. room.limitInRoom / 100
end end
if room.round == nil then if room.round == nil then
@ -247,7 +247,7 @@ local function __fillRoomItem(self, index, item, room)
if p.hp then if p.hp then
local str1 = "积分:" local str1 = "积分:"
local hp = p.hp / 1000 local hp = p.hp / 100
p_head.text_score.text = str1 .. hp p_head.text_score.text = str1 .. hp
end end
else else
@ -577,7 +577,7 @@ local function __fillRoomData(self)
end end
local totalNum = 1 local totalNum = 1
if hp.tex_times_room then if hp.tex_times_room then
totalNum = hp.tex_times_room / 1000 totalNum = hp.tex_times_room / 100
end end
for i = 1, totalNum do for i = 1, totalNum do
@ -637,7 +637,7 @@ local function __fillRoomData(self)
local totalNum = 1 local totalNum = 1
if hp and hp.tex_times_room then if hp and hp.tex_times_room then
totalNum = hp.tex_times_room / 1000 totalNum = hp.tex_times_room / 100
end end
for j = 1, totalNum do for j = 1, totalNum do
self.curRooms[#self.curRooms + 1] = self.curGroup.default_rooms[i] self.curRooms[#self.curRooms + 1] = self.curGroup.default_rooms[i]

View File

@ -25,7 +25,6 @@ function GroupMngFagPackView.new(gid, blur_view,ctrNum,uid)
end end
function M:FillView() function M:FillView()
self.Ctr = self._view:GetController("ctr") self.Ctr = self._view:GetController("ctr")
self.Ctr.selectedIndex = 1 self.Ctr.selectedIndex = 1
@ -74,9 +73,7 @@ function M:FillView()
local btn_cr = self._view:GetChild('btn_qd') local btn_cr = self._view:GetChild('btn_qd')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView.new(nil, function(num) local gniv = GroupNumberInputView.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -102,11 +99,8 @@ function M:FillView()
ViewUtil.ErrorTip(res1.ReturnCode, "存取积分失败!") ViewUtil.ErrorTip(res1.ReturnCode, "存取积分失败!")
end end
end) end)
end, 0, nil) end, 0, nil)
gniv:Show() gniv:Show()
end end
) )
@ -114,9 +108,7 @@ function M:FillView()
local btn_qc = self._view:GetChild('btn_qc') local btn_qc = self._view:GetChild('btn_qc')
btn_qc.onClick:Set( btn_qc.onClick:Set(
function() function()
local gniv = GroupNumberInputView.new(nil, function(num) local gniv = GroupNumberInputView.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -142,10 +134,8 @@ function M:FillView()
ViewUtil.ErrorTip(res1.ReturnCode, "获取积分失败!") ViewUtil.ErrorTip(res1.ReturnCode, "获取积分失败!")
end end
end) end)
end, 0, nil) end, 0, nil)
gniv:Show() gniv:Show()
end end
) )
@ -187,8 +177,6 @@ function M:FillView()
self.lst_bxx.numItems = self.ctrNum self.lst_bxx.numItems = self.ctrNum
end end
function M:initBankData() function M:initBankData()
ViewUtil.ShowModalWait() ViewUtil.ShowModalWait()
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
@ -200,15 +188,10 @@ function M:initBankData()
else else
self:SetBank(res.Data.total_hp, res.Data.bank_hp) self:SetBank(res.Data.total_hp, res.Data.bank_hp)
self.Ctr.selectedIndex = 0 self.Ctr.selectedIndex = 0
end end
end) end)
end end
function M:initShouyiData() function M:initShouyiData()
ViewUtil.ShowModalWait() ViewUtil.ShowModalWait()
self.shouyiData = {} self.shouyiData = {}
@ -235,14 +218,11 @@ function M:SetCallback(callback)
self.callback = callback self.callback = callback
end end
function M:SetBank(totalHp, bankHp) function M:SetBank(totalHp, bankHp)
self.playerJF.text=totalHp/1000 self.playerJF.text = totalHp / 100
self.bankJF.text=bankHp/1000 self.bankJF.text = bankHp / 100
end end
function M:fillGameItem(index, item) function M:fillGameItem(index, item)
if index ~= 0 then if index ~= 0 then
item.icon = "ui://NewGroup/button_cqg" item.icon = "ui://NewGroup/button_cqg"
@ -263,22 +243,8 @@ function M:fillGameItem(index, item)
self:initShouyiData() self:initShouyiData()
end end
end end
end end
-- 销毁窗口 -- 销毁窗口
function M:Destroy(remove_map) function M:Destroy(remove_map)
if self.callback then if self.callback then

View File

@ -227,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 / 100
else else
tex_times_room.text = 1 tex_times_room.text = 1
end end
@ -492,7 +492,7 @@ 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 / 100
play.maxRound = res.Data.maxRound play.maxRound = res.Data.maxRound
ViewUtil.ShowBannerOnScreenCenter("添加玩法成功") ViewUtil.ShowBannerOnScreenCenter("添加玩法成功")
self.callback(play) self.callback(play)
@ -533,7 +533,7 @@ 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 / 100
play.maxRound = res.Data.maxRound play.maxRound = res.Data.maxRound
self.callback(play) self.callback(play)
self:Destroy() self:Destroy()

View File

@ -67,7 +67,7 @@ function M:GetRewardsData()
self._view:GetChild('btn_piliang').onClick:Set(function() self._view:GetChild('btn_piliang').onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view, function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
local tem = num * 1000 local tem = num * 100
local msg_win = MsgWindow.new(nil, string.format("是否设定所有玩法奖励为%s", num), local msg_win = MsgWindow.new(nil, string.format("是否设定所有玩法奖励为%s", num),
MsgWindow.MsgMode.OkAndCancel, nil, false) MsgWindow.MsgMode.OkAndCancel, nil, false)
@ -211,12 +211,12 @@ function M:OnRenderRewardsItem(index, obj)
local input_type1 = data.xipai_rewardValueType == 1 and 0 or 3 local input_type1 = data.xipai_rewardValueType == 1 and 0 or 3
obj:GetChild("btn_set1").onClick:Set(function() obj:GetChild("btn_set1").onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view, function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
local tem = num * 1000 local tem = num * 100
if data.xipai_rewardValueType == 2 then if data.xipai_rewardValueType == 2 then
tem = ad2d(tem) tem = ad2d(tem)
end end
if tem / 1000 > data.xipai_max_value then if tem / 100 > data.xipai_max_value then
ViewUtil.ErrorTip(nil, "输入值超过上限") ViewUtil.ErrorTip(nil, "输入值超过上限")
return return
-- elseif tem < data.cur_value then -- elseif tem < data.cur_value then
@ -275,7 +275,7 @@ function M:OnRenderRewardsItem(index, obj)
local input_type2 = data.anchou_rewardValueType == 1 and 0 or 3 local input_type2 = data.anchou_rewardValueType == 1 and 0 or 3
obj:GetChild("btn_set2").onClick:Set(function() obj:GetChild("btn_set2").onClick:Set(function()
local gfiv = GroupNumberInputView.new(self._root_view, function(num) local gfiv = GroupNumberInputView.new(self._root_view, function(num)
local tem = num * 1000 local tem = num * 100
if data.anchou_rewardValueType == 2 then if data.anchou_rewardValueType == 2 then
tem = ad2d(tem) tem = ad2d(tem)
end end

View File

@ -134,7 +134,6 @@ function ViewUtil.HandCardSort2(a,b)
return a < b return a < b
end end
function ViewUtil.HandCardSort3(a, b) function ViewUtil.HandCardSort3(a, b)
local sort_a = a[1] or 101 local sort_a = a[1] or 101
local sort_b = b[1] or 101 local sort_b = b[1] or 101
@ -142,10 +141,6 @@ function ViewUtil.HandCardSort3(a,b)
return sort_a < sort_b return sort_a < sort_b
end end
function ViewUtil.CardPos(obj, area, oder, index, offset, isAdd) function ViewUtil.CardPos(obj, area, oder, index, offset, isAdd)
offset = offset or 0 offset = offset or 0
if oder == AreaOderType.left_right then if oder == AreaOderType.left_right then
@ -174,6 +169,7 @@ function ViewUtil.PlayMuisc(group, path)
end end
GameApplication.Instance:PlayMuisc(group, path) GameApplication.Instance:PlayMuisc(group, path)
end end
function ViewUtil.PlaySound(group, path) function ViewUtil.PlaySound(group, path)
if group ~= _current_group then if group ~= _current_group then
if _current_group then if _current_group then
@ -226,12 +222,12 @@ end
-- 数据转换成3位小数 data to a decimal -- 数据转换成3位小数 data to a decimal
function d2ad(data) function d2ad(data)
return data / 1000 return data / 100
end end
-- 3位小数转换成数据 a decimal to data -- 3位小数转换成数据 a decimal to data
function ad2d(decimal) function ad2d(decimal)
return decimal * 1000 return decimal * 100
end end
-- 获取gps -- 获取gps
@ -256,7 +252,6 @@ end
--依据宽度截断字符 --依据宽度截断字符
function ViewUtil.stringEllipsis(szText, size, full) function ViewUtil.stringEllipsis(szText, size, full)
full = full or false full = full or false
size = size or 4 size = size or 4
--截断结果 --截断结果
@ -282,9 +277,7 @@ function ViewUtil.stringEllipsis(szText,size,full)
i = i + 3 i = i + 3
char_count = char_count + 1 char_count = char_count + 1
elseif byte ~= 32 then elseif byte ~= 32 then
if string.byte('A') <= byte and byte <= string.byte('Z') then if string.byte('A') <= byte and byte <= string.byte('Z') then
char_count = char_count + 1 char_count = char_count + 1
else else
char_count = char_count + 0.5 char_count = char_count + 0.5

View File

@ -35,9 +35,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -51,13 +49,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -65,9 +60,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -81,18 +74,13 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
local _help_url = "ui://Info_MJ_ChangSha/Com_help" local _help_url = "ui://Info_MJ_ChangSha/Com_help"
@ -137,7 +125,8 @@ function M:SelectedConfigData()
local niao_type = _config:GetController("niao").selectedIndex local niao_type = _config:GetController("niao").selectedIndex
local niao_num = _config:GetController("niao_num").selectedIndex local niao_num = _config:GetController("niao_num").selectedIndex
local niao_db_num = _config:GetController("niao_db_num").selectedIndex local niao_db_num = _config:GetController("niao_db_num").selectedIndex
local niao = niao_type == 1 and (niao_db_num == 0 and 1 or 2) or (niao_type == 0 and (niao_num == 0 and 2 or (niao_num == 1 and 4 or 6)) or 2) local niao = niao_type == 1 and (niao_db_num == 0 and 1 or 2) or
(niao_type == 0 and (niao_num == 0 and 2 or (niao_num == 1 and 4 or 6)) or 2)
local piao_niao = _config:GetChild("btn_piao_niao").selected local piao_niao = _config:GetChild("btn_piao_niao").selected
local two_pair = _config:GetChild("btn_two_pair").selected local two_pair = _config:GetChild("btn_two_pair").selected
local no_jiang = _config:GetChild("btn_no_jiang").selected local no_jiang = _config:GetChild("btn_no_jiang").selected
@ -252,15 +241,14 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
if oldGameVersion == 2 then if oldGameVersion == 2 then
_data['niaofen_opt'] = niaofen_opt _data['niaofen_opt'] = niaofen_opt
_data['niaofen_score'] = niaofen_score _data['niaofen_score'] = niaofen_score
_data['difen_score'] = difen_score _data['difen_score'] = difen_score
_data['kai_gong'] = kai_gong _data['kai_gong'] = kai_gong
end end
@ -268,8 +256,6 @@ function M:SelectedConfigData()
return _data return _data
end end
function M:LoadConfigData(data) function M:LoadConfigData(data)
pt(data) pt(data)
local _config = self._config local _config = self._config
@ -293,7 +279,8 @@ function M:LoadConfigData(data)
_config:GetController("niao").selectedIndex = data.niao_type _config:GetController("niao").selectedIndex = data.niao_type
if oldGameVersion == 1 then if oldGameVersion == 1 then
_config:GetController("niao_num").selectedIndex = data.niao_type ~= 0 and 0 or (data.niao == 4 and 1 or (data.niao == 6 and 2 or 0)) _config:GetController("niao_num").selectedIndex = data.niao_type ~= 0 and 0 or
(data.niao == 4 and 1 or (data.niao == 6 and 2 or 0))
else else
_config:GetController("niao_num").selectedIndex = data.niao / 2 - 1 _config:GetController("niao_num").selectedIndex = data.niao / 2 - 1
end end
@ -330,11 +317,11 @@ function M:LoadConfigData(data)
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
@ -343,8 +330,6 @@ function M:LoadConfigData(data)
_config:GetController("jcdifen").selectedIndex = data.difen_score - 1 _config:GetController("jcdifen").selectedIndex = data.difen_score - 1
_config:GetController("kaigang").selectedIndex = data.kai_gong _config:GetController("kaigang").selectedIndex = data.kai_gong
end end
end end
return M return M

View File

@ -30,9 +30,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -46,13 +44,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -60,9 +55,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -76,16 +69,12 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
@ -152,8 +141,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
@ -183,18 +172,12 @@ function M:LoadConfigData(data)
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
end end
return M return M

View File

@ -33,9 +33,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -49,13 +47,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -64,9 +59,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -80,18 +73,13 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
local _help_url = "ui://Info_MJ_HongZhong/Com_help" local _help_url = "ui://Info_MJ_HongZhong/Com_help"
@ -234,8 +222,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
_data["fengding_score"] = fengding_score _data["fengding_score"] = fengding_score
_data["wuguizhuopaojiabei"] = wuguizhuopaojiabei _data["wuguizhuopaojiabei"] = wuguizhuopaojiabei
@ -295,11 +283,11 @@ function M:LoadConfigData(data)
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
if _config:GetController("fengding") then if _config:GetController("fengding") then
@ -307,8 +295,6 @@ function M:LoadConfigData(data)
end end
_config:GetChild("btn_wuhongzhongzuobaofanbei").selected = data.wuguizhuopaojiabei _config:GetChild("btn_wuhongzhongzuobaofanbei").selected = data.wuguizhuopaojiabei
end end
return M return M

View File

@ -34,9 +34,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -50,13 +48,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -64,9 +59,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -80,19 +73,13 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
local _help_url = "ui://Info_MJ_ZhuanZhuan/Com_help" local _help_url = "ui://Info_MJ_ZhuanZhuan/Com_help"
@ -217,8 +204,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
--_data["fengding_score"] = fengding_score --_data["fengding_score"] = fengding_score
return _data return _data
@ -274,18 +261,16 @@ function M:LoadConfigData(data)
-- end -- end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
-- if _config:GetController("fengding") then -- if _config:GetController("fengding") then
-- _config:GetController("fengding").selectedIndex=data.fengding_score -- _config:GetController("fengding").selectedIndex=data.fengding_score
-- end -- end
end end
return M return M

View File

@ -37,9 +37,7 @@ function M:FillData(view, index)
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -53,21 +51,16 @@ function M:FillData(view, index)
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 0, nil) end, 0, nil)
gniv:Show() gniv:Show()
end end
) )
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -81,19 +74,13 @@ function M:FillData(view, index)
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
local _help_url = "ui://Info_Poker_ChunTian/Com_help" local _help_url = "ui://Info_Poker_ChunTian/Com_help"
@ -139,13 +126,12 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
end end
function M:SelectedConfigData() function M:SelectedConfigData()
@ -195,8 +181,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
end end

View File

@ -53,8 +53,8 @@ function M:FillData(view, index)
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text = value / 1000 self.xipaiValueText.text = value / 100
self.xipaiValue = value / 1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
@ -78,8 +78,8 @@ function M:FillData(view, index)
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text = value / 1000 self.anchouValueText.text = value / 100
self.anchouValue = value / 1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
@ -194,11 +194,11 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text = data.xi_pai_score / 1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue = data.xi_pai_score / 1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text = data.an_chou_score / 1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue = data.an_chou_score / 1000 self.anchouValue = data.an_chou_score / 100
end end
end end
@ -291,8 +291,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score * 1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score * 1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
end end

View File

@ -50,8 +50,8 @@ function M:FillData(view, index)
-- ViewUtil.ErrorTip(1,"输入数据异常!") -- ViewUtil.ErrorTip(1,"输入数据异常!")
-- end -- end
-- self.xipaiValueText.text=value/1000 -- self.xipaiValueText.text=value/100
-- self.xipaiValue=value/1000 -- self.xipaiValue=value/100
-- end, 0, nil) -- end, 0, nil)
-- gniv:Show() -- gniv:Show()
@ -82,7 +82,6 @@ function M:FillData(view, index)
piao.selectedIndex = 0 piao.selectedIndex = 0
end end
end) end)
end end
local _help_url = "ui://Info_Poker_SanQianFen/Com_help" local _help_url = "ui://Info_Poker_SanQianFen/Com_help"
@ -130,7 +129,6 @@ function M:LoadConfigData(data)
_config:GetChild("planelack").selected = false _config:GetChild("planelack").selected = false
_config:GetChild("Threelack").selected = false _config:GetChild("Threelack").selected = false
else else
_config:GetChild("sandaidan").selected = false _config:GetChild("sandaidan").selected = false
@ -179,7 +177,6 @@ function M:LoadConfigData(data)
-- self.xipaiValueText.text=data.xi_pai_score -- self.xipaiValueText.text=data.xi_pai_score
-- self.xipaiValue=data.xi_pai_score -- self.xipaiValue=data.xi_pai_score
-- end -- end
end end
function M:SelectedConfigData() function M:SelectedConfigData()
@ -259,7 +256,6 @@ function M:SelectedConfigData()
_data["planelack"] = 0 _data["planelack"] = 0
_data["threelack"] = 0 _data["threelack"] = 0
else else
if sandaidan == 1 then if sandaidan == 1 then
_data["planelack"] = 0 _data["planelack"] = 0
_data["threelack"] = 0 _data["threelack"] = 0

View File

@ -33,9 +33,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -49,21 +47,16 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -77,13 +70,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
@ -191,6 +181,7 @@ function M:FillData()
end end
) )
end end
local _help_url = 'ui://Info_Poker_ChangdeWHZ/Com_help' local _help_url = 'ui://Info_Poker_ChangdeWHZ/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -284,8 +275,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
_data['xi_pai'] = xi_pai _data['xi_pai'] = xi_pai
return _data return _data
@ -332,14 +323,14 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end
end end
end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
IGameInfo.OnChangeOption(self, ctype) IGameInfo.OnChangeOption(self, ctype)
local people = self._config:GetController('renshu') local people = self._config:GetController('renshu')
@ -350,4 +341,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -32,9 +32,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -48,20 +46,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_FanPaoFa/Com_help' local _help_url = 'ui://Info_Poker_FanPaoFa/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -77,7 +70,6 @@ function M:GetIconUrl1()
return _icon_url1 return _icon_url1
end end
function M:SelectedConfigData() function M:SelectedConfigData()
local _config = self._config local _config = self._config
local round = _config:GetController('round').selectedIndex + 1 --局数 local round = _config:GetController('round').selectedIndex + 1 --局数
@ -147,7 +139,7 @@ function M:SelectedConfigData()
if oldGameVersion == 2 then if oldGameVersion == 2 then
xi_pai_score = self.xipaiValue xi_pai_score = self.xipaiValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
return _data return _data
end end
@ -177,11 +169,11 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
end
end end
end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
IGameInfo.OnChangeOption(self, ctype) IGameInfo.OnChangeOption(self, ctype)
local people = self._config:GetController('renshu') local people = self._config:GetController('renshu')
@ -192,4 +184,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -32,9 +32,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -48,20 +46,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_FanPaoFa/Com_help' local _help_url = 'ui://Info_Poker_FanPaoFa/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -77,7 +70,6 @@ function M:GetIconUrl1()
return _icon_url1 return _icon_url1
end end
function M:SelectedConfigData() function M:SelectedConfigData()
local _config = self._config local _config = self._config
local round = _config:GetController('round').selectedIndex + 1 --局数 local round = _config:GetController('round').selectedIndex + 1 --局数
@ -145,7 +137,7 @@ function M:SelectedConfigData()
if oldGameVersion == 2 then if oldGameVersion == 2 then
xi_pai_score = self.xipaiValue xi_pai_score = self.xipaiValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
return _data return _data
end end
@ -173,11 +165,11 @@ function M:LoadConfigData(data)
_config:GetChild('btn_mingwei').selected = data.mingwei --明偎 _config:GetChild('btn_mingwei').selected = data.mingwei --明偎
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
end
end end
end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
IGameInfo.OnChangeOption(self, ctype) IGameInfo.OnChangeOption(self, ctype)
local people = self._config:GetController('renshu') local people = self._config:GetController('renshu')
@ -188,4 +180,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -33,9 +33,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -49,13 +47,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -63,9 +58,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -79,19 +72,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_FuLuShou/Com_help' local _help_url = 'ui://Info_Poker_FuLuShou/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -178,8 +167,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
@ -220,13 +209,12 @@ function M:LoadConfigData(data)
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
end end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
@ -240,4 +228,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -61,7 +61,6 @@ function M:FillData()
function() function()
local cur_tun = tonumber(self._config:GetChild("shu1").text) local cur_tun = tonumber(self._config:GetChild("shu1").text)
if cur_tun < 15 then if cur_tun < 15 then
cur_tun = cur_tun + 1 cur_tun = cur_tun + 1
self._config:GetChild("shu1").text = tostring(cur_tun) self._config:GetChild("shu1").text = tostring(cur_tun)
@ -79,7 +78,6 @@ function M:FillData()
function() function()
local cur_tun = tonumber(self._config:GetChild("shu1").text) local cur_tun = tonumber(self._config:GetChild("shu1").text)
if cur_tun > 1 then if cur_tun > 1 then
cur_tun = cur_tun - 1 cur_tun = cur_tun - 1
self._config:GetChild("shu1").text = tostring(cur_tun) self._config:GetChild("shu1").text = tostring(cur_tun)
@ -139,9 +137,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -155,20 +151,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_HSRunBeard/Com_help' local _help_url = 'ui://Info_Poker_HSRunBeard/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -244,7 +235,6 @@ function M:SelectedConfigData()
_data['jhd'] = _config:GetController('jhd').selectedIndex _data['jhd'] = _config:GetController('jhd').selectedIndex
_data['dhdf'] = dhdf _data['dhdf'] = dhdf
elseif wanfa_C == 2 then elseif wanfa_C == 2 then
_data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5 _data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5
_data['tianhu'] = tianhu _data['tianhu'] = tianhu
@ -307,9 +297,7 @@ function M:LoadConfigData(data)
_config:GetController('tinghu').selectedIndex = data.tinghu _config:GetController('tinghu').selectedIndex = data.tinghu
_config:GetController('Back').selectedIndex = data.back _config:GetController('Back').selectedIndex = data.back
_config:GetController('yuan').selectedIndex = data.yuan _config:GetController('yuan').selectedIndex = data.yuan
elseif data.mode == 2 then elseif data.mode == 2 then
_config:GetChild("shu1").text = tostring(data.tun) _config:GetChild("shu1").text = tostring(data.tun)
local btn_jian1 = _config:GetChild("btn_jian1") local btn_jian1 = _config:GetChild("btn_jian1")
@ -341,7 +329,6 @@ function M:LoadConfigData(data)
_config:GetController('dhdf').selectedIndex = data.dhdf _config:GetController('dhdf').selectedIndex = data.dhdf
elseif data.mode == 3 then elseif data.mode == 3 then
_config:GetController('haihu').selectedIndex = data.haihu _config:GetController('haihu').selectedIndex = data.haihu
_config:GetController('tinghu').selectedIndex = data.tinghu _config:GetController('tinghu').selectedIndex = data.tinghu
_config:GetController('tianhu').selectedIndex = data.tianhu _config:GetController('tianhu').selectedIndex = data.tianhu
@ -376,4 +363,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -34,9 +34,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -50,22 +48,17 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -79,16 +72,12 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
@ -194,6 +183,7 @@ function M:FillData()
-- end -- end
-- ) -- )
end end
local _help_url = 'ui://Info_Poker_RunBeard/Com_help' local _help_url = 'ui://Info_Poker_RunBeard/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -273,7 +263,6 @@ function M:SelectedConfigData()
_data['daxiaozi'] = daxiaozi _data['daxiaozi'] = daxiaozi
_data['hongheihu'] = hongheihu _data['hongheihu'] = hongheihu
_data['yidianhu'] = yidianhu _data['yidianhu'] = yidianhu
elseif wanfa_C == 1 then elseif wanfa_C == 1 then
_data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5 _data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5
_data['fengding'] = fengding -- 封顶 0 1 2 红黑点分别是 不封顶 单局20封顶 单局 40封顶 _data['fengding'] = fengding -- 封顶 0 1 2 红黑点分别是 不封顶 单局20封顶 单局 40封顶
@ -311,8 +300,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
end end
@ -344,13 +333,11 @@ function M:LoadConfigData(data)
_config:GetController('daxiaozi').selectedIndex = data.daxiaozi _config:GetController('daxiaozi').selectedIndex = data.daxiaozi
_config:GetController('hongheihu').selectedIndex = data.hongheihu _config:GetController('hongheihu').selectedIndex = data.hongheihu
_config:GetController('yidianhu').selectedIndex = data.yidianhu _config:GetController('yidianhu').selectedIndex = data.yidianhu
elseif data.mode == 2 then elseif data.mode == 2 then
_config:GetController('tun').selectedIndex = data.tun _config:GetController('tun').selectedIndex = data.tun
_config:GetController('fengding').selectedIndex = data.fengding _config:GetController('fengding').selectedIndex = data.fengding
_config:GetController('duizifu').selectedIndex = data.duizifu _config:GetController('duizifu').selectedIndex = data.duizifu
elseif data.mode == 3 then elseif data.mode == 3 then
_config:GetController('tun').selectedIndex = data.tun _config:GetController('tun').selectedIndex = data.tun
_config:GetController('fengding').selectedIndex = data.fengding _config:GetController('fengding').selectedIndex = data.fengding
_config:GetController('tuanyuan').selectedIndex = data.tuanyuan _config:GetController('tuanyuan').selectedIndex = data.tuanyuan
@ -373,14 +360,14 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end
end end
end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
IGameInfo.OnChangeOption(self, ctype) IGameInfo.OnChangeOption(self, ctype)
local people = self._config:GetController('renshu') local people = self._config:GetController('renshu')
@ -391,4 +378,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -32,9 +32,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -48,21 +46,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_ShiHuKa/Com_help' local _help_url = 'ui://Info_Poker_ShiHuKa/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -142,7 +134,6 @@ function M:SelectedConfigData()
_data['daxiaozi'] = daxiaozi _data['daxiaozi'] = daxiaozi
_data['hongheihu'] = hongheihu _data['hongheihu'] = hongheihu
_data['yidianhu'] = yidianhu _data['yidianhu'] = yidianhu
elseif wanfa_C == 1 then elseif wanfa_C == 1 then
_data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5 _data['tun'] = tun -- 充囤 0 1 2 3 4 5 分别是 0 1 2 3 4 5
_data['fengding'] = fengding -- 封顶 0 1 2 红黑点分别是 不封顶 单局20封顶 单局 40封顶 _data['fengding'] = fengding -- 封顶 0 1 2 红黑点分别是 不封顶 单局20封顶 单局 40封顶
@ -180,8 +171,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
end end
@ -213,13 +204,11 @@ function M:LoadConfigData(data)
_config:GetController('daxiaozi').selectedIndex = data.daxiaozi _config:GetController('daxiaozi').selectedIndex = data.daxiaozi
_config:GetController('hongheihu').selectedIndex = data.hongheihu _config:GetController('hongheihu').selectedIndex = data.hongheihu
_config:GetController('yidianhu').selectedIndex = data.yidianhu _config:GetController('yidianhu').selectedIndex = data.yidianhu
elseif data.mode == 2 then elseif data.mode == 2 then
_config:GetController('tun').selectedIndex = data.tun _config:GetController('tun').selectedIndex = data.tun
_config:GetController('fengding').selectedIndex = data.fengding _config:GetController('fengding').selectedIndex = data.fengding
_config:GetController('duizifu').selectedIndex = data.duizifu _config:GetController('duizifu').selectedIndex = data.duizifu
elseif data.mode == 3 then elseif data.mode == 3 then
_config:GetController('tun').selectedIndex = data.tun _config:GetController('tun').selectedIndex = data.tun
_config:GetController('fengding').selectedIndex = data.fengding _config:GetController('fengding').selectedIndex = data.fengding
_config:GetController('tuanyuan').selectedIndex = data.tuanyuan _config:GetController('tuanyuan').selectedIndex = data.tuanyuan
@ -242,14 +231,14 @@ function M:LoadConfigData(data)
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end
end end
end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
IGameInfo.OnChangeOption(self, ctype) IGameInfo.OnChangeOption(self, ctype)
local people = self._config:GetController('renshu') local people = self._config:GetController('renshu')
@ -260,4 +249,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -33,9 +33,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -49,13 +47,10 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
@ -63,9 +58,7 @@ function M:FillData()
local btn_cr2 = self._config:GetChild('anchoubtn') local btn_cr2 = self._config:GetChild('anchoubtn')
btn_cr2.onClick:Set( btn_cr2.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -79,18 +72,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.anchouValueText.text=value/1000 self.anchouValueText.text = value / 100
self.anchouValue=value/1000 self.anchouValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end end
end end
local _help_url = 'ui://Info_Poker_YueYangWHZ/Com_help' local _help_url = 'ui://Info_Poker_YueYangWHZ/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -156,8 +146,8 @@ function M:SelectedConfigData()
an_chou_score = self.anchouValue an_chou_score = self.anchouValue
end end
_data['xi_pai_score'] = xi_pai_score*1000 _data['xi_pai_score'] = xi_pai_score * 100
_data['an_chou_score'] = an_chou_score*1000 _data['an_chou_score'] = an_chou_score * 100
return _data return _data
end end
@ -181,13 +171,12 @@ function M:LoadConfigData(data)
end end
if oldGameVersion == 2 then if oldGameVersion == 2 then
self.xipaiValueText.text=data.xi_pai_score/1000 self.xipaiValueText.text = data.xi_pai_score / 100
self.xipaiValue=data.xi_pai_score/1000 self.xipaiValue = data.xi_pai_score / 100
self.anchouValueText.text=data.an_chou_score/1000 self.anchouValueText.text = data.an_chou_score / 100
self.anchouValue=data.an_chou_score/1000 self.anchouValue = data.an_chou_score / 100
end end
end end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
@ -201,4 +190,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -28,9 +28,7 @@ function M:FillData()
local btn_cr = self._config:GetChild('sdsrbtn') local btn_cr = self._config:GetChild('sdsrbtn')
btn_cr.onClick:Set( btn_cr.onClick:Set(
function() function()
local gniv = GroupNumberInputView_Game.new(nil, function(num) local gniv = GroupNumberInputView_Game.new(nil, function(num)
local value = limit local value = limit
if otype == 1 then if otype == 1 then
value = value + ad2d(num) value = value + ad2d(num)
@ -44,19 +42,15 @@ function M:FillData()
ViewUtil.ErrorTip(1, "输入数据异常!") ViewUtil.ErrorTip(1, "输入数据异常!")
end end
self.xipaiValueText.text=value/1000 self.xipaiValueText.text = value / 100
self.xipaiValue=value/1000 self.xipaiValue = value / 100
end, 3, nil) end, 3, nil)
gniv:Show() gniv:Show()
end end
) )
end
end end
end
local _help_url = 'ui://Info_Poker_YueYangWHZ/Com_help' local _help_url = 'ui://Info_Poker_YueYangWHZ/Com_help'
function M:GetHelpUrl() function M:GetHelpUrl()
return _help_url return _help_url
@ -146,7 +140,6 @@ function M:LoadConfigData(data)
self.xipaiValueText.text = data.xi_pai_score self.xipaiValueText.text = data.xi_pai_score
self.xipaiValue = data.xi_pai_score self.xipaiValue = data.xi_pai_score
end end
end end
function M:OnChangeOption(ctype) function M:OnChangeOption(ctype)
@ -160,4 +153,5 @@ function M:OnChangeOption(ctype)
end end
) )
end end
return M return M

View File

@ -71,7 +71,7 @@
<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="268,154" size="905,141" group="n140_ozaz" touchable="false" lineGap="10" defaultItem="ui://m7iejg46mpllhv5" align="center"> <list id="n125_mpll" name="lst_rewards" xy="268,154" size="905,141" group="n140_ozaz" lineGap="10" defaultItem="ui://m7iejg46mpllhv5" align="center">
<item/> <item/>
</list> </list>
<group id="n140_ozaz" name="n140" xy="90,109" size="1083,186"/> <group id="n140_ozaz" name="n140" xy="90,109" size="1083,186"/>