master
1076390229 2026-02-07 21:22:56 +08:00
commit 03b7c98908
277 changed files with 390 additions and 504 deletions

View File

@ -1568,3 +1568,12 @@ function M:FG_Reset_Lock(group_id, tagId, flag, callback)
callback(res)
end)
end
function M:FG_Get_Partner(group_id, callback)
local _client = ControllerManager.GroupClient
local _data = {}
_data.id = group_id
_client:send(Protocol.WEB_GROUP_GET_PARTNER, _data, function(res)
callback(res)
end)
end

View File

@ -358,6 +358,9 @@ Protocol = {
--群主解除绑定
WEB_GROUP_RESET_LOCK = "group/group_reset_lock",
--获取自己所有下级成员
WEB_GROUP_GET_PARTNER = "group/get_partner",
-------------- group-mgr --------------------
-- 进入圈子
FGMGR_ENTER_GROUP = "11001",

View File

@ -7,167 +7,75 @@ function GroupManagerStagView.new(root)
setmetatable(M, { __index = root })
local self = setmetatable({}, { __index = M })
self.class = "GroupManagerStagView"
self:Init()
-- self:InitInfo()
return self
end
function M:Init()
self._viewList_partner = self._view:GetChild('lst_partner')
self._data_choosePlayer = { uid = DataManager.SelfUser.account_id, nick = DataManager.SelfUser.nick_name }
self._viewList_partner:SetVirtual()
self._viewList_partner.itemRenderer = handler(self, self.PartnerRender)
self._viewList_partner.onClickItem:Set(handler(self, self.PartnerClick))
self._data_Players = {}
--将外面设置为最外圈页面
self.ctr_index.selectedIndex = #self.page_config
self._view:GetChild('btn_showAll').onClick:Set(handler(self,self.ClickShowAll))
end
function M:ClickShowAll()
self.ctr_index.selectedIndex = #self.page_config
local data = self._data_Players[self._viewList_partner.selectedIndex + 1]
self._view_map[#self.page_config + 1]:RefrenRecordData(data)
end
function M:InitInfo()
self._map_members = {}
self._viewList_partner:RemoveChildren()
local obj = self._viewList_partner:AddItemFromPool()
self._ctr_tongji.selectedIndex = 1
self:PartnerRender(
{ uid = DataManager.SelfUser.account_id, nick = DataManager.SelfUser.nick_name }, obj)
-- obj:GetController('show').selectedIndex = 1
obj.data.selected = true
ViewUtil.ShowModalWait(true, "正在获取成员中", 0.01)
self:RecursionGetNumber1(0, DataManager.SelfUser.account_id, {})
--将外面设置为最外圈页面20.536
self:RecursionGetNumber1()
self.ctr_index.selectedIndex = #self.page_config
self._data_selectedData = obj
end
function M:SetRecursionGetNumber1Info(id, tempTable)
local me = self._map_members[id]
me.data.listInfo = tempTable
me.data.listNum = #tempTable
me.data.childNum = #tempTable
for i = 1, #tempTable do
local obj = me.data.list:AddItemFromPool()
self:PartnerRender(tempTable[i], obj)
function M:PartnerClick(context)
if self.ctr_index.selectedIndex ~= #self.page_config then
self.ctr_index.selectedIndex = #self.page_config
end
self:RecursionReSize(me)
self:RecursionSetScrollPannel(me, 0)
local data = self._data_Players[context.sender.selectedIndex + 1]
self._view_map[#self.page_config + 1]:RefrenRecordData(data)
end
function M:PartnerRender(data, obj)
function M:PartnerRender(index, obj)
local data = self._data_Players[index + 1]
obj:GetChild('text_name').text = string.format("%d", data.uid)
obj:GetChild('text_id').text = data.nick
obj:GetChild('text_name1').text = string.format("%d", data.uid)
obj:GetChild('text_id1').text = data.nick
obj:GetChild('text_lev').text = data.partnerLev and data.partnerLev + 1 or 1
obj:GetController('show').selectedIndex = data.partnerLev and 1 or 0
obj:GetController('isLine').selectedIndex = 1
obj.data = {}
obj.data.list = obj:GetChild('list')
obj.data.info = data
self._map_members[data.uid] = obj
obj.onClick:Set(function()
if obj.data.info.uid == DataManager.SelfUser.account_id then
if obj.data.info.uid ~= self._data_selectedData.data.info.uid then
self:RecursionReSize(self._data_selectedData, -1, true, obj.data.info.uid)
end
else
if obj.data.info.parentId and obj.data.info.parentId ~= 0 then
if obj.data.info.parentId ~= self._data_selectedData.data.info.uid then
self:RecursionReSize(self._data_selectedData, -1, true, obj.data.info.parentId)
end
local father = self._map_members[obj.data.info.parentId]
for i = 1, father.data.listNum do
father.data.list:GetChildAt(i - 1):GetController('isLine').selectedIndex = 0
end
obj:GetController('isLine').selectedIndex = 1
end
end
-- if obj.data.selected then
-- self:RecursionReSize(self._data_selectedData, -1, true, obj.data.info.uid)
-- self:RecursionSetScrollPannel(obj, 0)
-- else
self._data_choosePlayer = data
if obj.data.listNum then
self:RecursionReSize(obj)
self:RecursionSetScrollPannel(obj, 0)
else
ViewUtil.ShowModalWait(true, "正在获取成员中", 0.01)
self:RecursionGetNumber1(0, data.uid, {})
end
-- end
if self.ctr_index.selectedIndex == #self.page_config then
self._view_map[#self.page_config + 1]:RefrenRecordData(data)
else
self.ctr_index.selectedIndex = #self.page_config
end
obj.data.selected = true
self._data_selectedData = obj
-- self._ctr_tongji.selectedIndex = 1
end)
end
function M:RecursionReSize(obj, add, flag, tagFather)
--如果把小箭头取消选择状态
if not add then
for i = 1, obj.data.listNum do
obj.data.list:GetChildAt(i - 1):GetController('isLine').selectedIndex = 1
end
elseif add == -1 then
obj.data.selected = false
for i = 1, obj.data.listNum do
obj.data.list:GetChildAt(i - 1):GetController('isLine').selectedIndex = 0
end
elseif add == 0 then
for i = 1, obj.data.listNum do
obj.data.list:GetChildAt(i - 1):GetController('isLine').selectedIndex = 0
end
end
--递归把列表缩回
obj.data.list:ResizeToFit(flag and 0 or obj.data.childNum)
if obj.data.info.parentId and obj.data.info.parentId ~= 0 then
if tagFather and obj.data.info.parentId == tagFather then
return
end
local father = self._map_members[obj.data.info.parentId]
father.data.childNum = father.data.childNum + obj.data.childNum * (add or 1)
father:GetController('isLine').selectedIndex = 1
self:RecursionReSize(father, add or 1, flag, tagFather)
end
end
function M:RecursionSetScrollPannel(obj, scrollIndex)
if obj.data.info.parentId and obj.data.info.parentId ~= 0 then
local father = self._map_members[obj.data.info.parentId]
self:RecursionSetScrollPannel(father, scrollIndex + father.data.list:GetChildIndex(obj) + 1)
else
self._viewList_partner.scrollPane:SetPosY(scrollIndex * 115, true)
end
end
function M:RecursionGetNumber1(index, id, tempTable)
function M:RecursionGetNumber1()
ViewUtil.ShowModalWait(true, "正在获取成员中", 0.01)
local fgCtr = ControllerManager.GetController(NewGroupController)
fgCtr:FG_GroupSubMembers(
fgCtr:FG_Get_Partner(
self.group_id,
index * 67,
67,
id,
function(res)
if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败')
ViewUtil.CloseModalWait()
else
local numbers = res.Data.members
if #numbers == 0 then
self:SetRecursionGetNumber1Info(id, tempTable)
ViewUtil.CloseModalWait()
else
for i = 1, #numbers do
if numbers[i].partnerLev ~= 0 then
table.insert(tempTable, numbers[i])
end
end
self:RecursionGetNumber1(index + 1, id, tempTable)
self._viewList_partner:RemoveChildren()
self._data_Players = {}
table.insert(self._data_Players,
{ uid = DataManager.SelfUser.account_id, nick = DataManager.SelfUser.nick_name, partnerLev = -1 })
for i, v in ipairs(res.Data.partners) do
table.insert(self._data_Players, v)
end
table.sort(self._data_Players, function(a, b)
if a.partnerLev == b.partnerLev then
return a.uid < b.uid
else
return a.partnerLev < b.partnerLev
end
end)
self._viewList_partner.numItems = #self._data_Players
self._viewList_partner.selectedIndex = 0
self._view_map[#self.page_config + 1]:RefrenRecordData(self._data_Players[1])
end
end
)

View File

@ -68,15 +68,15 @@ function M:init(btn_type)
self.page_config = MngPageConfig.Config[btn_type][lev]
local gmsv
if btn_type == 2 and lev ~= 4 then
--绑定统计代码
self._child_statView = GroupManagerStagView.new(self)
-- 初始界面 --战况是用新界面
local first_page_config = getPageConfig(19)
gmsv = first_page_config.view.new(self.group_id, self._root_view, self._child_statView._data_choosePlayer)
gmsv = first_page_config.view.new(self.group_id, self._root_view)
self._view_map = {}
self._view_map[#self.page_config + 1] = gmsv
gmsv.id = first_page_config.id
self._view:GetChild('bgWindow').text = first_page_config.title
--绑定统计代码
self._child_statView = GroupManagerStagView.new(self)
else
-- 初始界面
local first_page_config = getPageConfig(self.page_config[1])

View File

@ -175,6 +175,7 @@ function M:FillView()
self.tongji:initData()
self.tongji:Show()
end)
self._view:GetChild('btn_tongji').visible = group.lev < 3 or group.partnerLev > 0
self:GetMemberData(0)
end
@ -275,7 +276,7 @@ local function __change_fag(gid, pid, is_add, cur_hp, callback)
)
-- item:GetChild("tex_fag").text = (self_user or show_fag) and num or show_fag_str
end,
is_add and 1 or 2,
1,
cur_hp and d2ad(cur_hp) or nil
)
gniv:Show()

View File

@ -7,11 +7,10 @@ local GroupMngPartnerStatView = {}
local M = GroupMngPartnerStatView
function GroupMngPartnerStatView.new(gid, rootView, player)
function GroupMngPartnerStatView.new(gid, rootView)
local self = M
self.class = "GroupMngPartnerStatView"
self.group_id = gid
self._data_choosePlayyer = player
self:InitView()
return self
end
@ -25,37 +24,14 @@ function M:initData()
local today = os.time({ year = now_time.year, month = now_time.month, day = now_time.day, hour = 0, min = 0, sec = 0 })
self.begin_time = today
self.end_time = today + 86400
-- print("lingmeng initData")
self:GetRecordData(0)
--self:ShowPeopleNum()
end
-- function M:ShowPeopleNum()
-- local fgCtr = ControllerManager.GetController(NewGroupController)
-- fgCtr:FG_GetMembersCount(self.group_id,function(res)
-- ViewUtil.CloseModalWait()
-- if res.ReturnCode == 0 then
-- self._view:GetChild('tex_memb_num').text = res.Data.member_num
-- self._view:GetChild('tex_total_hp').text = d2ad(res.Data.hp_num1+res.Data.otherHp)
-- end
-- end)
-- end
function M:InitView()
self._view = UIPackage.CreateObjectFromURL("ui://NewGroup/View_GroupPartnerStat")
-- if group.lev ~= 3 then
-- self._view:GetController("mng").selectedIndex = 1
-- end
local group = DataManager.groups:get(self.group_id)
local lst_mgr_index = self._view:GetChild("lst_mgr_index")
-- lst_mgr_index.visible = false
-- if group.lev == 1 then
-- lst_mgr_index.visible = true
-- end
self.lst_record = self._view:GetChild("lst_record")
self.lst_record:SetVirtual()
@ -72,9 +48,6 @@ function M:InitView()
self.lst_record_find.itemRenderer = function(index, obj)
self:OnRenderRecordItem(index, obj)
end
-- self.lst_record.scrollPane.onPullUpRelease:Set(function()
-- self:GetRecordData(self.lst_record.numItems)
-- end)
self.time_panel = TimeSettingPanel.new(self._view, self._view:GetChild("btn_date1"), self._view:GetChild("btn_date2"),
-308, 0, function()
@ -101,15 +74,7 @@ function M:InitView()
end
self:GetRecordData(0)
end)
-- self._view:GetChild("btn_search").onClick:Set(function()
-- self.record_data = {}
-- self.lst_record.numItems = 0
-- self.begin_time, self.end_time = self.time_panel:GetDate()
-- self:GetRecordData(0)
-- end)
-- 搜索玩家
local ctr_search = self._view:GetController('search')
self._view:GetChild('btn_search').onClick:Set(
@ -278,55 +243,49 @@ end
function M:GetRecordData(index)
local group = DataManager.groups:get(self.group_id)
-- pt("lingmeng GetRecordData", self.group_id, self._data_choosePlayyer, group.lev)
-- if group.lev == 1 and self._data_choosePlayyer.uid == DataManager.SelfUser.account_id then
-- self:RecursionGetRankData(0)
-- else
self:GetRecoedData(0, 5)
-- end
-- self:GetRecoedData(0, 5)
end
function M:RefrenRecordData(data)
self._data_choosePlayyer = data
local group = DataManager.groups:get(self.group_id)
-- pt("lingmeng GetRecordData2", self.group_id, self._data_choosePlayyer, group.lev)
self:GetRecoedData(0, 5)
end
function M:RecursionGetRecoedData(index)
ViewUtil.ShowModalWait("正在获取数据中")
local fgCtr = ControllerManager.GetController(NewGroupController)
fgCtr:FG_GetMemberStat(self.group_id, 0, self._data_choosePlayyer.uid,
index * 67, 67, 3, self.begin_time, self.end_time, 5,
function(res)
if res.ReturnCode == 0 then
local members = res.Data.members
if members and #members > 0 then
for i = 1, #members do
if members[i].round > 0 then
members[i].pump = 0 - members[i].pump
self.record_data[#self.record_data + 1] = members[i]
end
end
self:RecursionGetRecoedData(index + 1)
else
ViewUtil.CloseModalWait()
self.btn_totalRound:GetController("type").selectedIndex = 1
self.btn_totalWin:GetController("type").selectedIndex = 0
self.btn_total:GetController("type").selectedIndex = 0
self.btn_reward:GetController("type").selectedIndex = 0
-- table.sort(self.record_data, function(a, b)
-- return a.round > b.round
-- end)
self.lst_record.numItems = #self.record_data
end
else
ViewUtil.CloseModalWait()
ViewUtil.ErrorTip(res.ReturnCode)
return
end
end)
end
-- function M:RecursionGetRecoedData(index)
-- ViewUtil.ShowModalWait("正在获取数据中")
-- local fgCtr = ControllerManager.GetController(NewGroupController)
-- fgCtr:FG_GetMemberStat(self.group_id, 0, self._data_choosePlayyer.uid,
-- index * 67, 67, 3, self.begin_time, self.end_time, 5,
-- function(res)
-- if res.ReturnCode == 0 then
-- local members = res.Data.members
-- if members and #members > 0 then
-- for i = 1, #members do
-- if members[i].round > 0 then
-- members[i].pump = 0 - members[i].pump
-- self.record_data[#self.record_data + 1] = members[i]
-- end
-- end
-- self:RecursionGetRecoedData(index + 1)
-- else
-- ViewUtil.CloseModalWait()
-- self.btn_totalRound:GetController("type").selectedIndex = 1
-- self.btn_totalWin:GetController("type").selectedIndex = 0
-- self.btn_total:GetController("type").selectedIndex = 0
-- self.btn_reward:GetController("type").selectedIndex = 0
-- -- table.sort(self.record_data, function(a, b)
-- -- return a.round > b.round
-- -- end)
-- self.lst_record.numItems = #self.record_data
-- end
-- else
-- ViewUtil.CloseModalWait()
-- ViewUtil.ErrorTip(res.ReturnCode)
-- return
-- end
-- end)
-- end
function M:GetRecoedData(index, type)
if index == 0 then

View File

@ -27,7 +27,8 @@ function M:init()
UIPackage.AddPackage('base/chat/ui/Chat')
self.cmdList = self._room.cmdList
self._eventmap = {}
-- self._full = true
self._full = true
self._full_offset = false
self._put_map = false
self._new_hide = false
self._queue = false

View File

@ -21,7 +21,7 @@ end
function M:InitView(url)
local room = self._room
UIPackage.AddPackage("extend/majiang/hongzhong/ui/Extend_MJ_HongZhong")
MJPlayBackView.InitView(self,"ui://Main_Majiang/Main_"..room.room_config.people_num)
MJPlayBackView.InitView(self,"ui://Main_Majiang/Main_"..room.room_config.people_num .. "_s2")
local _cardbox = self._view:GetChild("cardbox")
--self._view:GetChild("panel_record"):GetChild("btn_LastStep").enabled = false
self._ctr_cardbox = _cardbox:GetController("c1")
@ -288,8 +288,14 @@ function M:UpdateCardBox(seat)
self._ctr_cardbox.selectedIndex = index
end
function M:UpdateRound(round)
self._tex_round.text = ""..round.."/"..self._room.room_config.round..""
function M:UpdateRound()
local currRD=self._room.curren_round
if self._room.curren_round==0 then
currRD=1
end
self._view:GetChild("tex_round1").text = currRD
self._view:GetChild("tex_round2").text = self._room.room_config.round
end
function M:UpdateStep(step)

View File

@ -17,8 +17,7 @@ local RunFast_Record_Event = {
Evt_Pass = 'pass',
Evt_NewRound = 'newindex',
Evt_result = 'result',
Evt_Result = 'Result',
Evt_Opt = 'prompt'
Evt_Result = 'Result'
}
local default_bg = 1
@ -82,8 +81,6 @@ function M:InitView(url)
else
self._view:GetChild('roominfo_panel1'):GetChild('tex_beishu').text = ''
end
self._ctr_inClear = self._view:GetController('Inclear')
self._cardCheck = RunFast_CardCheck:InitFlag()
self._gamectr._cardCheck = self._cardCheck
@ -94,7 +91,7 @@ function M:InitView(url)
self._cmdmap[RunFast_Record_Event.Evt_Pass] = self.CmdPass
self._cmdmap[RunFast_Record_Event.Evt_NewRound] = self.CmdNewRound
self._cmdmap[RunFast_Record_Event.Evt_result] = self.Cmdresult
self._cmdmap[RunFast_Record_Event.Evt_Opt] = self.CmdOpt
self._cmdmap[RunFast_Record_Event.Evt_Result] = self.CmdResult
end
function M:NewPlayerPokerInfoView(view, index)
@ -108,11 +105,10 @@ function M:FillRoomData(data)
-- print("hidezhanji 1111")
self._currentStep = 1
DataManager.CurrenRoom.pai = 0
local room = DataManager.CurrenRoom
self._room = DataManager.CurrenRoom
local _player_card_info = self._player_card_info
local roominfo_panel = self._view:GetChild('roominfo_panel1')
self._room.pai = 0
roominfo_panel:GetChild('tex_roomid').text = data.info.roomid
roominfo_panel:GetChild('tex_gametype').text = room.room_config:GetGameName()
@ -129,6 +125,7 @@ function M:FillRoomData(data)
if room.hpOnOff == 1 or room:checkHpNonnegative() then
head_info._view:GetChild('zhanji').visible = true
head_info._view:GetChild('text_jifen').text = d2ad(p.total_hp)
end
end
head_info:FillData(p)
@ -140,36 +137,10 @@ function M:FillRoomData(data)
head_info:UpdatePiao(p.piao)
end
self:UpdateRound(self._room.curren_round)
self:UpdateRound()
self:GenerateAllStepData(data)
self:ShowStep(1)
self:Play()
end
function M:ChangePlayState(state)
self._play = state
self:ChangeTextSpeed()
local btn_play = self._view:GetChild("panel_record"):GetChild("btn_play")
if self._play then
btn_play:GetController("state").selectedIndex = 1
else
btn_play:GetController("state").selectedIndex = 0
end
--开始时,隐藏显示结算界面
if state then
if self.destory_win ~= nil then
coroutine.stop(self.destory_win)
end
self.destory_win = nil
if self.result_view then
self.result_view._root_view:RemoveFromParent()
self.result_view:Destroy()
self._ctr_inClear.selectedIndex = 0
end
self.result_view = nil
end
end
function M:ShowStep(index)
@ -185,19 +156,13 @@ function M:ShowStep(index)
p.out_card_list = step.player_card_data[i].out_card_list
p.hand_left_count = #p.hand_list
if step.cmd == RunFast_Record_Event.Evt_Opt and step.seat == p.seat then
info._view:GetController('out_card_option2').selectedIndex = 1
else
info._view:GetController('out_card_option2').selectedIndex = 0
end
if p.seat ~= self._room.self_player.seat then
info:UpdateHandPoker(p.hand_list, false, true)
else
info:InitPoker(p.hand_list, false)
end
info:SetOutCardInfo(nil, false)
end
if step.cmd == RunFast_Record_Event.Evt_OutCard then
local seat = step.current_out_seat
local p = self._room:GetPlayerBySeat(seat)
@ -230,91 +195,16 @@ function M:ShowStep(index)
end
end
if step.cmd == RunFast_Record_Event.Evt_result then
local data = step.data
local over = 0
local info = data.win.info
local win_seat = data.win.winseat
local remaincards = {}
-- local energyTab = arg[5]
local otherpoker_list = self._view:GetChild("otherpoker_list")
local card_info = self._player_card_info[self:GetPos(self._room.self_player.seat)]
if self.dismissWin ~= nil then
self.dismissWin:Destroy()
end
self.dismissWin = nil
if self.MypokerList ~= nil then
-- body
card_info:Clear()
card_info:InitPoker(self.MypokerList, false)
self.MypokerList = nil
end
if otherpoker_list ~= nil then
-- body
otherpoker_list:RemoveChildrenToPool()
otherpoker_list.visible = true
end
local result = step.result
for i = 1, #result do
local card_info = self._player_card_info[self:GetPos(result[i].seat)]
if self.destory_win ~= nil then
coroutine.stop(self.destory_win)
end
self.destory_win = nil
self.destory_win = coroutine.start(function()
if win_seat == self._room.self_player.seat then
ViewUtil.PlaySound("RunFastNew_PK", "extend/poker/runfast/sound/end_music.mp3")
else
ViewUtil.PlaySound("RunFastNew_PK", "extend/poker/runfast/sound/lose_music.mp3")
if result[i].entrust ~= nil and result[i].entrust == true then
local head_info = self._player_info[self:GetPos(result[i].seat)]
head_info:MarkTuoguan()
end
coroutine.stop(self._leftClock_continue)
for i = 1, #self._player_card_info do
local card_info = self._player_card_info[i]
card_info._ctr_time_clock.selectedIndex = 0
self._left_time = 0
end
for i = 1, #info do
local player = info[i]
local p = self._room:GetPlayerBySeat(player.seat)
local head_info = self._player_info[self:GetPos(player.seat)]
end
coroutine.wait(2)
self.result_view = RunFast_ResultView.new(self, info, self._room.room_id, over, win_seat, 0,
remaincards)
self.result_view:SetDestroryCallback(function()
for i = 1, #self._player_card_info do
local card_info = self._player_card_info[i]
card_info.ctr_outpoker.selectedIndex = 0
if card_info._ctr_resultOut then
card_info._ctr_resultOut.selectedIndex = 0
end
end
end)
self.result_view:Show()
self.result_view._root_view:RemoveFromParent()
self._view:AddChildAt(self.result_view._root_view,
self._view:GetChildIndex(self._view:GetChild('mask_tips')) - 1)
if self.WinItem_view ~= nil then
self.WinItem_view:Dispose()
self.WinItem_view = nil
end
if self.rank_view ~= nil then
self.rank_view:Dispose()
self.rank_view = nil
end
if self._room.self_player.entrust == true then
local btn_confirm = self.result_view._view:GetChild("btn_confirm")
btn_confirm.onClick:Call()
end
ViewUtil.PlaySound("RunFastNew_PK", "extend/poker/runfast/sound/end_music.mp3")
end)
if over == 1 then
-- body
self:UnmarkSelfTuoguan()
ControllerManager.ChangeController(LoddyController)
-- head_info:UpdateScore(result[i].score)
card_info:PlayScore(result[i].score, false, step.win_seat == result[i].seat)
end
end
if step.cmd == RunFast_Record_Event.Evt_Result then
@ -324,9 +214,9 @@ function M:ShowStep(index)
local num = self._view:GetChildIndex(self._view:GetChild("panel_record"))
self._view:AddChildAt(self.result_view._view, num)
else
-- if self.result_view then
-- self.result_view:Dispose()
-- end
if self.result_view then
self.result_view:Dispose()
end
end
end
@ -387,7 +277,8 @@ end
function M:Cmdresult(cmd, index)
local data = self:CopyLastStep(index)
data.cmd = cmd.cmd
data.data = cmd.data
data.result = cmd.data.result
data.win_seat = cmd.seat
end
function M:CmdResult(cmd, index)
@ -400,12 +291,6 @@ function M:CmdResult(cmd, index)
end
end
function M:CmdOpt(cmd, index)
local data = self:CopyLastStep(index)
data.cmd = cmd.cmd
data.seat = cmd.seat
end
function M:CopyLastStep(index)
local step = {}
local last_step = self._step[index]
@ -433,17 +318,9 @@ function M:ClearNextSeatOutCard(currenOutCardSeat)
card_info:SetOutCardInfo(nil, false)
end
function M:UpdateRound(round)
local total_round = self._room.room_config.Times
-- self._text_round.text = string.format("%d / %d 局", round, total_round)
if not self._text_currenRound then
self._text_currenRound = self._view:GetChild('Text_CurrenRound')
end
if not self._text_maxRound then
self._text_maxRound = self._view:GetChild('Text_MaxMaxRound')
end
self._text_currenRound.text = round
self._text_maxRound.text = string.format("/%s局", total_round)
function M:UpdateRound()
local round = self._room.curren_round
self._tex_round.text = string.format('第 %d 局', round)
end
function M:NextRecordPlay()
@ -456,10 +333,10 @@ function M:NextRecordPlay()
self._speed = 1
self._playFoward = true
self:ChangeTextSpeed()
-- if self.result_view then
-- self.result_view:Dispose()
-- self.result_view = nil
-- end
if self.result_view then
self.result_view:Dispose()
self.result_view = nil
end
end
function M:LastRecordPlay()
@ -471,10 +348,70 @@ function M:LastRecordPlay()
self._speed = 1
self._playFoward = true
self:ChangeTextSpeed()
-- if self.result_view then
-- self.result_view:Dispose()
-- self.result_view = nil
-- end
if self.result_view then
self.result_view:Dispose()
self.result_view = nil
end
end
function M:Play()
self:ChangeAlpha()
self:ChangePlayState(not self._play)
if not self._play then
return
end
if (self._currentStep == #self.cmdList and self._playFoward) or (self._currentStep == 0 and not self._playFoward) then
self._currentStep = 0
self._speed = 1
self._playFoward = true
self:ChangeTextSpeed()
end
end
function M:ChangeTextSpeed()
local str1 = self._play and self._speed or ''
self._view:GetChild('panel_record'):GetChild('tex_speed').text = str1
local str2 =
not self._play and (self._playFoward and '播放暂停' or '回退暂停') or
self._playFoward and (self._speed == 1 and '播放' or '快进') or
(self._speed == 1 and '回退' or '快退')
self._view:GetChild('panel_record'):GetChild('tex_2').text = str2
local str3 = self._play and '倍速度' or ''
self._view:GetChild('panel_record'):GetChild('tex_1').text = str3
end
function M:CmdLeftArrows()
self:ChangeAlpha()
self:ChangePlayState(true)
if not self._playFoward then
if self._speed < 16 then
self._speed = self._speed * 2
else
self._speed = 1
end
self:ChangeTextSpeed()
else
self._speed = 1
self._playFoward = false
self:ChangeTextSpeed()
end
end
function M:CmdRightArrows()
self:ChangeAlpha()
self:ChangePlayState(true)
if self._playFoward then
if self._speed < 16 then
self._speed = self._speed * 2
else
self._speed = 1
end
self:ChangeTextSpeed()
else
self._speed = 1
self._playFoward = true
self:ChangeTextSpeed()
end
end
function M:_Effect(type1, player)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 238 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 866 KiB

After

Width:  |  Height:  |  Size: 965 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

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

View File

@ -12,16 +12,9 @@
"n131_ckvb": {
"hidden": true
},
"n164_ukp7": {
"locked": true,
"collapsed": true
},
"n166_ukp7": {
"hidden": true
},
"n163_ukp7": {
"collapsed": true
},
"n93_eclw": {
"collapsed": true
}

View File

@ -0,0 +1 @@
{}

View File

@ -2,9 +2,6 @@
"objectStatus": {
"n44_rpaz": {
"collapsed": true
},
"n47_rpaz": {
"collapsed": true
}
}
}

View File

@ -1,7 +1 @@
{
"objectStatus": {
"n8_yvb2": {
"locked": true
}
}
}
{}

View File

@ -1,33 +1,39 @@
{
"objectStatus": {
"n33_rpaz": {
"n46_tqi8": {
"collapsed": true
},
"n142_ufim": {
"hidden": true
},
"n91_task": {
"hidden": true
},
"n142_ufim": {
"n51_jd7v": {
"hidden": true
},
"n86_t1hq": {
"hidden": true
},
"n113_csp4": {
"n33_rpaz": {
"hidden": true
},
"n112_csp4": {
"hidden": true
},
"n86_t1hq": {
"hidden": true
},
"n89_t1hq": {
"collapsed": true
},
"n69_jd7v": {
"hidden": true
},
"n85_t1hq": {
"hidden": true
},
"n35_rpaz": {
"hidden": true
},
"n51_jd7v": {
"hidden": true
},
"n69_jd7v": {
"hidden": true
},
"n112_csp4": {
"n113_csp4": {
"hidden": true
}
},

View File

@ -3,14 +3,14 @@
"n85_l2u4": {
"collapsed": true
},
"n108_go7q": {
"hidden": true
},
"n107_go7q": {
"hidden": true
},
"n82_l2u4": {
"collapsed": true
"n108_go7q": {
"hidden": true
},
"n59_v38k": {
"locked": true
}
}
}

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="1500,930" extention="Button">
<controller name="bianhui" pages="0,,1," selected="1"/>
<controller name="bianhui" pages="0,,1," selected="0"/>
<displayList>
<image id="n5_ik9v" name="n5" src="ik9v7imc" fileName="images/bg_window.png" xy="-1,0" size="1500,930">
<relation target="" sidePair="width-width,height-height"/>
</image>
<image id="n7_zmrw" name="n7" src="ik9v7imd" fileName="images/bg_windowTitle.png" xy="371,-6" grayed="true">
<image id="n7_zmrw" name="n7" src="ik9v7imd" fileName="images/bg_windowTitle.png" xy="371,-6">
<gearLook controller="bianhui" pages="1" values="1,0,1,0" default="1,0,0,0"/>
<relation target="" sidePair="center-center"/>
</image>
<loader id="n4_hz87" name="icon" xy="371,-6" size="757,125" fill="scaleFree" clearOnPublish="true">
<relation target="" sidePair="center-center"/>
</loader>
<text id="n6_ik9v" name="title" xy="745,-17" pivot="0.5,0.5" size="10,117" font="ui://27vd145bik9v7imb" fontSize="94" autoClearText="true" text="">
<text id="n6_ik9v" name="title" xy="662,4" pivot="0.5,0.5" size="176,98" font="ui://27vd145bik9v7imb" fontSize="94" align="center" vAlign="middle" autoClearText="true" text="战况">
<relation target="" sidePair="center-center"/>
</text>
</displayList>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Some files were not shown because too many files have changed in this diff Show More