提交6.20

master
罗家炜 2025-06-20 14:55:27 +08:00
parent f976b9db20
commit d7daa0c666
2 changed files with 194 additions and 200 deletions

View File

@ -22,8 +22,8 @@ local Fix_Msg_Chat = {
--- Create a new ZZ_MainView --- Create a new ZZ_MainView
function M.new() function M.new()
setmetatable(M, {__index = ZPMainView}) setmetatable(M, { __index = ZPMainView })
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = 'FanPaoFa_MainView' self.class = 'FanPaoFa_MainView'
self._full = true self._full = true
self:init() self:init()
@ -31,13 +31,13 @@ function M.new()
end end
function M:getCardItem(card_1, card_2) function M:getCardItem(card_1, card_2)
if self._room.change_card_display ~= nil then if self._room.change_card_display ~= nil then
return card_1 .. self._room.change_card_display .. card_2 return card_1 .. self._room.change_card_display .. card_2
else else
return card_1 .. '6_' .. card_2 return card_1 .. '6_' .. card_2
end end
end end
function M:InitView(url) function M:InitView(url)
local _room = self._room local _room = self._room
self.Fix_Msg_Chat = Fix_Msg_Chat self.Fix_Msg_Chat = Fix_Msg_Chat
@ -84,7 +84,7 @@ function M:InitPlayerInfoView()
local _player_info = self._player_info local _player_info = self._player_info
for i = 1, self._room.room_config.people_num do for i = 1, self._room.room_config.people_num do
local tem = self._view:GetChild("player_info" .. i) local tem = self._view:GetChild("player_info" .. i)
_player_info[i] = PlayerInfoView.new(tem,self) _player_info[i] = PlayerInfoView.new(tem, self)
tem.visible = false tem.visible = false
end end
end end
@ -153,34 +153,34 @@ function M:NewPlayerCardInfoView(view, index)
end end
return PlayerCardInfoView.new(view, self) return PlayerCardInfoView.new(view, self)
end end
function M:closeTipOnTuoguan() function M:closeTipOnTuoguan()
if self._clearingView ~= nil then if self._clearingView ~= nil then
self._clearingView:Close() self._clearingView:Close()
end end
self:__CloseTip() self:__CloseTip()
end end
function M:EventInit() function M:EventInit()
MainView.EventInit(self) MainView.EventInit(self)
local _room = self._room local _room = self._room
local _view = self._view local _view = self._view
local _player_info = self._player_info local _player_info = self._player_info
local _gamectr = self._gamectr local _gamectr = self._gamectr
_gamectr:AddEventListener(GameEvent.EventXiPai,function( ... ) _gamectr:AddEventListener(GameEvent.EventXiPai, function(...)
local arg = {...} local arg = { ... }
local currentPlayer1=arg[1] local currentPlayer1 = arg[1]
local currentPlayer2=arg[2] local currentPlayer2 = arg[2]
self._popEvent = false self._popEvent = false
self._player_card_info[1]:HideDaNiao(0) self._player_card_info[1]:HideDaNiao(0)
if ( currentPlayer1 ) then if (currentPlayer1) then
local xipaiCB = function()
local xipaiCB=function ()
self._popEvent = true self._popEvent = true
end end
self:PlayXiPai(xipaiCB) self:PlayXiPai(xipaiCB)
end end
if ( currentPlayer2 ) then if (currentPlayer2) then
local xipaiCB2=function () local xipaiCB2 = function()
self._popEvent = true self._popEvent = true
end end
self:PlayXiPai1(xipaiCB2) self:PlayXiPai1(xipaiCB2)
@ -189,10 +189,10 @@ function M:EventInit()
_gamectr:AddEventListener(GameEvent.OnDaNiaoTips, function(...) _gamectr:AddEventListener(GameEvent.OnDaNiaoTips, function(...)
local arg = {...} local arg = { ... }
local niao = arg[1] local niao = arg[1]
local reload = arg[2] local reload = arg[2]
if reload==0 then if reload == 0 then
self._leftcard = 1 self._leftcard = 1
self._leftcard = 1 self._leftcard = 1
local rightpanel = self._view:GetChild('right_panel') local rightpanel = self._view:GetChild('right_panel')
@ -216,22 +216,20 @@ function M:EventInit()
info:Ready(false) info:Ready(false)
--info:UpdatePiao(-1) --info:UpdatePiao(-1)
end end
end end
self._player_card_info[1]:ShwoDaNiao(niao) self._player_card_info[1]:ShwoDaNiao(niao)
end) end)
_gamectr:AddEventListener(GameEvent.OnEventDaNiao, function(...) _gamectr:AddEventListener(GameEvent.OnEventDaNiao, function(...)
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local niao = arg[2] local niao = arg[2]
if self.seat==seat then if self.seat == seat then
self._player_card_info[seat]:HideDaNiao(niao) self._player_card_info[seat]:HideDaNiao(niao)
end end
local head_info = self._player_info[self:GetPos(seat)] local head_info = self._player_info[self:GetPos(seat)]
head_info:UpdateNiao(niao) head_info:UpdateNiao(niao)
end) end)
@ -287,7 +285,7 @@ function M:EventInit()
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.GetCard, GameEvent.GetCard,
function(...) function(...)
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local card = arg[2] local card = arg[2]
local _leftcard = arg[3] local _leftcard = arg[3]
@ -313,7 +311,7 @@ function M:EventInit()
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.AddCard, GameEvent.AddCard,
function(...) function(...)
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local card = arg[2] local card = arg[2]
self._popEvent = false self._popEvent = false
@ -334,7 +332,7 @@ function M:EventInit()
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.EventTurn, GameEvent.EventTurn,
function(...) function(...)
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local list = _room.player_list local list = _room.player_list
local readyNum = 0 local readyNum = 0
@ -365,7 +363,7 @@ function M:EventInit()
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.FangWei, GameEvent.FangWei,
function(...) function(...)
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local card = arg[2] local card = arg[2]
--self:__CloseTip() --self:__CloseTip()
@ -405,7 +403,6 @@ function M:EventInit()
end end
) )
fangwei_msg:Show() fangwei_msg:Show()
end end
) )
@ -414,7 +411,7 @@ function M:EventInit()
function(...) function(...)
self:__CloseTip() self:__CloseTip()
self._left_time = 0 self._left_time = 0
local arg = {...} local arg = { ... }
local p = arg[1] local p = arg[1]
local card = arg[2] local card = arg[2]
local seat = p.seat local seat = p.seat
@ -428,7 +425,6 @@ function M:EventInit()
info:UpdateIsOnClick(true) info:UpdateIsOnClick(true)
info:SendChangeCard() info:SendChangeCard()
info:ChuPaiTiShi() info:ChuPaiTiShi()
end end
local list = _room.player_list local list = _room.player_list
for i = 1, #list do for i = 1, #list do
@ -455,7 +451,7 @@ function M:EventInit()
self:__CloseTip() self:__CloseTip()
self._popEvent = false self._popEvent = false
self._left_time = 0 self._left_time = 0
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local card = arg[2] local card = arg[2]
local p = _room:GetPlayerBySeat(seat) local p = _room:GetPlayerBySeat(seat)
@ -469,11 +465,11 @@ function M:EventInit()
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.FZTips, GameEvent.FZTips,
function(...) function(...)
local arg = {...} local arg = { ... }
local _tip = arg[1] local _tip = arg[1]
local _uid = arg[2] local _uid = arg[2]
local _fptype = arg[3] local _fptype = arg[3]
self:__FangziTip(_tip, _uid,_fptype) self:__FangziTip(_tip, _uid, _fptype)
end end
) )
@ -485,7 +481,7 @@ function M:EventInit()
self._left_time = 0 self._left_time = 0
self:__CloseTip() self:__CloseTip()
self._popEvent = false self._popEvent = false
local arg = {...} local arg = { ... }
local w = arg[1] local w = arg[1]
local l = arg[2] local l = arg[2]
local cards = arg[3] local cards = arg[3]
@ -522,7 +518,7 @@ function M:EventInit()
--printlog("ZPResult111ssssssttteessssssttt") --printlog("ZPResult111ssssssttteessssssttt")
self._popEvent = false self._popEvent = false
self._left_time = 0 self._left_time = 0
local arg = {...} local arg = { ... }
local result = arg[1] local result = arg[1]
local liuju = result.liuju local liuju = result.liuju
local data = result.info_list local data = result.info_list
@ -554,7 +550,7 @@ function M:EventInit()
p.total_score = data[i].total_score p.total_score = data[i].total_score
info._view:GetController('zhanji').selectedIndex = 1 info._view:GetController('zhanji').selectedIndex = 1
info._view:GetChild('tex_jifen').text =p.total_score info._view:GetChild('tex_jifen').text = p.total_score
info._view:GetChild('tex_jifen_text').text = "总胡息" info._view:GetChild('tex_jifen_text').text = "总胡息"
card_info:Clear() card_info:Clear()
info:UpdateScore() info:UpdateScore()
@ -599,7 +595,7 @@ function M:EventInit()
GameEvent.ZPResult2, GameEvent.ZPResult2,
function(...) function(...)
self._left_time = 0 self._left_time = 0
local arg = {...} local arg = { ... }
local total_result = arg[2] local total_result = arg[2]
local result = arg[1] local result = arg[1]
local over = arg[3] local over = arg[3]
@ -626,13 +622,12 @@ function M:EventInit()
GameEvent.FangPaoOk, GameEvent.FangPaoOk,
function(...) function(...)
self._left_time = 0 self._left_time = 0
local arg = {...} local arg = { ... }
local seat = arg[1] local seat = arg[1]
local card = arg[2] local card = arg[2]
--禁牌 把手上的牌都禁掉 --禁牌 把手上的牌都禁掉
-- local card_info = self._player_card_info[self:GetPos(seat)] -- local card_info = self._player_card_info[self:GetPos(seat)]
-- card_info:banHandCards(self._room.self_player.card_list) -- card_info:banHandCards(self._room.self_player.card_list)
end end
) )
end end
@ -651,7 +646,7 @@ function M:ChangeCards(list)
end end
end end
function M:__FangziTip(tip, _uid,fptype) function M:__FangziTip(tip, _uid, fptype)
local _gamectr = self._gamectr local _gamectr = self._gamectr
local _chipeng_tip = UIPackage.CreateObject('Main_RunBeard', 'Gcm_action_tips') local _chipeng_tip = UIPackage.CreateObject('Main_RunBeard', 'Gcm_action_tips')
self._chipeng_tip = _chipeng_tip self._chipeng_tip = _chipeng_tip
@ -675,7 +670,7 @@ function M:__FangziTip(tip, _uid,fptype)
tip_hu = true tip_hu = true
tip_id = td.id tip_id = td.id
--自动放炮 --自动放炮
if td.weight==7 then if td.weight == 7 then
zdhu = true zdhu = true
end end
end end
@ -683,7 +678,6 @@ function M:__FangziTip(tip, _uid,fptype)
if td.type == 6 and td.weight == 8 then if td.type == 6 and td.weight == 8 then
fpao = false fpao = false
end end
end end
if fpao and zdhu then if fpao and zdhu then
@ -698,7 +692,7 @@ function M:__FangziTip(tip, _uid,fptype)
local url = 'ui://Main_RunBeard/Btn_fztip' local url = 'ui://Main_RunBeard/Btn_fztip'
local btn_t = _lit_fanzi:AddItemFromPool(url) local btn_t = _lit_fanzi:AddItemFromPool(url)
btn_t.icon = 'ui://Main_RunBeard/newop_' .. td.type btn_t.icon = 'ui://Main_RunBeard/newop_' .. td.type
btn_t.data = {tip, td, tip_hu} btn_t.data = { tip, td, tip_hu }
btn_t.onClick:Set(self.__TipAction, self) btn_t.onClick:Set(self.__TipAction, self)
end end
@ -738,6 +732,7 @@ function M:__FangziTip(tip, _uid,fptype)
_chipeng_tip.y = _chipeng_tip.y - 50 _chipeng_tip.y = _chipeng_tip.y - 50
end end
end end
function M:__TipAction(context) function M:__TipAction(context)
local data = context.sender.data local data = context.sender.data
local _gamectr = self._gamectr local _gamectr = self._gamectr
@ -749,11 +744,11 @@ function M:__TipAction(context)
if (#list > 1) or td.type == 1 then if (#list > 1) or td.type == 1 then
local chiflag = true local chiflag = true
for key, value in pairs(list) do for key, value in pairs(list) do
if value['bi_list'] ~=nil then if value['bi_list'] ~= nil then
chiflag = false chiflag = false
end end
end end
if #list>1 then if #list > 1 then
chiflag = false chiflag = false
end end
if chiflag then if chiflag then
@ -944,7 +939,7 @@ function M:deepcopy(object)
end end
function M:OnFangziAction(...) function M:OnFangziAction(...)
local arg = {...} local arg = { ... }
local _player_card_info = self._player_card_info local _player_card_info = self._player_card_info
local fz = arg[1] local fz = arg[1]
local player = arg[2] local player = arg[2]
@ -1054,7 +1049,6 @@ function M:OnFangziAction(...)
effect:Dispose() effect:Dispose()
end end
) )
end end
if (player == self._room.self_player) then if (player == self._room.self_player) then
coroutine.start( coroutine.start(
@ -1127,7 +1121,6 @@ function M:ReloadRoom()
info._view:GetController('zhanji').selectedIndex = 1 info._view:GetController('zhanji').selectedIndex = 1
info._view:GetChild('tex_jifen').text = p.total_score -- d2ad(p.total_hp) info._view:GetChild('tex_jifen').text = p.total_score -- d2ad(p.total_hp)
info._view:GetChild('tex_jifen_text').text = "总胡息" info._view:GetChild('tex_jifen_text').text = "总胡息"
end end
local card_info = self._player_card_info[self:GetPos(p.seat)] local card_info = self._player_card_info[self:GetPos(p.seat)]

View File

@ -22,8 +22,8 @@ end
--- Create a new --- Create a new
function M.new() function M.new()
setmetatable(M, {__index = PlayBackView}) setmetatable(M, { __index = PlayBackView })
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = 'PlayBackView' self.class = 'PlayBackView'
self:init() self:init()
@ -139,15 +139,13 @@ function M:FillRoomData(data)
infoHand:UpdateScore() infoHand:UpdateScore()
end end
end end
self.CheckServerErrorList={} self.CheckServerErrorList = {}
self:UpdateRound(self._room.curren_round) self:UpdateRound(self._room.curren_round)
self:GenerateAllStepData(data) self:GenerateAllStepData(data)
self:ShowStep(1) self:ShowStep(1)
self:UpdateStep(1) self:UpdateStep(1)
end end
function M:ShowStep(index) function M:ShowStep(index)
local step = self._step[index + 1] local step = self._step[index + 1]
self:UpdateStep(index + 1) self:UpdateStep(index + 1)
@ -157,7 +155,7 @@ function M:ShowStep(index)
self._chipeng_tip = nil self._chipeng_tip = nil
end end
if self._lit_fanzi then if self._lit_fanzi then
self._lit_fanzi=nil self._lit_fanzi = nil
end end
local _chipeng_tip = UIPackage.CreateObject('Main_RunBeard', 'Gcm_action_tips') local _chipeng_tip = UIPackage.CreateObject('Main_RunBeard', 'Gcm_action_tips')
@ -165,7 +163,8 @@ function M:ShowStep(index)
self._lit_fanzi = _chipeng_tip:GetChild('lit_fanzi') self._lit_fanzi = _chipeng_tip:GetChild('lit_fanzi')
self._lit_fanzi:RemoveChildrenToPool() self._lit_fanzi:RemoveChildrenToPool()
printlog("lingmeng ShowStep", self._step[index + 1].cmd)
pt(self._step[index + 1])
for i = 1, #step.player_card_data do for i = 1, #step.player_card_data do
local p = self._room:GetPlayerBySeat(i) local p = self._room:GetPlayerBySeat(i)
local info = self._player_card_info[self:GetPos(i)] local info = self._player_card_info[self:GetPos(i)]
@ -199,16 +198,15 @@ function M:ShowStep(index)
end end
end end
if index>1 then if index > 1 then
for k,v in pairs(self.CheckServerErrorList) do for k, v in pairs(self.CheckServerErrorList) do
----printlog("k===>>>",k) ----printlog("k===>>>",k)
----printlog("v===>>>",v) ----printlog("v===>>>",v)
----printlog(k,index) ----printlog(k,index)
--pt(p.card_list) --pt(p.card_list)
if tonumber(index+1)>tonumber(k) then if tonumber(index + 1) > tonumber(k) then
list_remove(p.card_list,v) list_remove(p.card_list, v)
end end
end end
end end
@ -221,22 +219,23 @@ function M:ShowStep(index)
info:InitHandCard(false) info:InitHandCard(false)
end end
if step.cmd == Record_Event.Evt_ChangePaiXing then -- if step.cmd == Record_Event.Evt_ChangePaiXing then
local _card_list = {} -- local _card_list = {}
for i = 1, #step.card_list do -- for i = 1, #step.card_list do
local data = {} -- local data = {}
data.card_item = step.card_list[i].card -- data.card_item = step.card_list[i].card
data.index_X = step.card_list[i].X -- data.index_X = step.card_list[i].X
data.index_Y = step.card_list[i].Y -- data.index_Y = step.card_list[i].Y
_card_list[#_card_list + 1] = data -- _card_list[#_card_list + 1] = data
end -- end
local info = self._player_card_info[self:GetPos(step.seat)] -- local info = self._player_card_info[self:GetPos(step.seat)]
if step.card_list[1].card ~= nil then -- if step.card_list[1].card ~= nil then
info:UpdateHandCards(_card_list) -- info:UpdateHandCards(_card_list)
else -- -- info:InitHandCard(_card_list)
info:UpdateHandCards(step.card_list) -- else
end -- info:UpdateHandCards(step.card_list)
end -- end
-- end
--end --end
if step.cmd == Record_Event.Evt_OutCard or step.cmd == Record_Event.Evt_GetCard then if step.cmd == Record_Event.Evt_OutCard or step.cmd == Record_Event.Evt_GetCard then
@ -258,12 +257,12 @@ function M:ShowStep(index)
if step.cmd == Record_Event.Evt_TipAction then if step.cmd == Record_Event.Evt_TipAction then
if step.player_card_data[i].tip_list[index]~=nil then if step.player_card_data[i].tip_list[index] ~= nil then
for key, value in pairs(step.player_card_data[i].tip_list[index]) do for key, value in pairs(step.player_card_data[i].tip_list[index]) do
local td = value local td = value
local url = 'ui://Main_RunBeard/Btn_fztip' local url = 'ui://Main_RunBeard/Btn_fztip'
local btn_t = self._lit_fanzi:AddItemFromPool(url) local btn_t = self._lit_fanzi:AddItemFromPool(url)
btn_t.icon = 'ui://Main_RunBeard/newop_' ..td btn_t.icon = 'ui://Main_RunBeard/newop_' .. td
end end
local url1 = 'ui://Main_RunBeard/Btn_fztip' local url1 = 'ui://Main_RunBeard/Btn_fztip'
@ -274,15 +273,8 @@ function M:ShowStep(index)
_chipeng_tip:Center() _chipeng_tip:Center()
self._chipeng_tip.x = self._chipeng_tip.x + 200 self._chipeng_tip.x = self._chipeng_tip.x + 200
self._chipeng_tip.y = self._chipeng_tip.y - 50 self._chipeng_tip.y = self._chipeng_tip.y - 50
end end
end end
end end
@ -327,10 +319,16 @@ function M:ShowStep(index)
if data[i]['hp_info'] then if data[i]['hp_info'] then
p.total_score = d2ad(data[i].hp_info.cur_hp) p.total_score = d2ad(data[i].hp_info.cur_hp)
local stotal_hp = data[i].hp_info.total_hp local stotal_hp = data[i].hp_info.total_hp
local total_score = data[i].total_score
info._view:GetController('zhanji').selectedIndex = 0 info._view:GetController('zhanji').selectedIndex = 0
if _room.hpOnOff == 1 or _room:checkHpNonnegative() then if _room.hpOnOff == 1 or _room:checkHpNonnegative() then
info._view:GetController('huxi').selectedIndex = 1
info._view:GetChild('huxi').text = d2ad(stotal_hp)
info._view:GetController('zhanji').selectedIndex = 1 info._view:GetController('zhanji').selectedIndex = 1
info._view:GetChild('tex_jifen').text = d2ad(stotal_hp)
info._view:GetChild('tex_jifen').text = total_score
end end
end end
info:UpdateScore(p.total_score) info:UpdateScore(p.total_score)
@ -348,7 +346,7 @@ end
function M:GenerateAllStepData(data) function M:GenerateAllStepData(data)
local cmdList = self.cmdList local cmdList = self.cmdList
--pt(cmdList) -- pt(cmdList)
self._step = {} self._step = {}
local step = {} local step = {}
local info = data.info local info = data.info
@ -368,6 +366,7 @@ function M:GenerateAllStepData(data)
u.fz_list = {} u.fz_list = {}
u.outcard_list = {} u.outcard_list = {}
u.hu_xi = 0 u.hu_xi = 0
u.total_score = p.total_score
step.player_card_data[u.seat] = u step.player_card_data[u.seat] = u
end end
self._step[#self._step + 1] = step self._step[#self._step + 1] = step
@ -396,6 +395,7 @@ function M:CmdGetCard(cmd, index)
data.seat = cmd.seat data.seat = cmd.seat
data.DiceCard = cmd.data.card data.DiceCard = cmd.data.card
end end
function M:CmdThrowCard(cmd, index) function M:CmdThrowCard(cmd, index)
local data = self:CopyLastStep(index) local data = self:CopyLastStep(index)
data.cmd = cmd.cmd data.cmd = cmd.cmd
@ -405,6 +405,7 @@ function M:CmdThrowCard(cmd, index)
data.out_card_list = cmd.data.card data.out_card_list = cmd.data.card
u.outcard_list[#u.outcard_list + 1] = cmd.data.card u.outcard_list[#u.outcard_list + 1] = cmd.data.card
end end
function M:CmdAddCard(cmd, index) function M:CmdAddCard(cmd, index)
----printlog("CmdAddCard======>>>",index,cmd.data.card) ----printlog("CmdAddCard======>>>",index,cmd.data.card)
local data = self:CopyLastStep(index) local data = self:CopyLastStep(index)
@ -422,6 +423,7 @@ function M:onResult(cmd, index)
end end
function M:CmdChangePaiXing(cmd, index) function M:CmdChangePaiXing(cmd, index)
printlog("lingmeng CmdChangePaiXing", index)
local data = self:CopyLastStep(index) local data = self:CopyLastStep(index)
data.cmd = cmd.cmd data.cmd = cmd.cmd
data.seat = cmd.seat data.seat = cmd.seat
@ -505,10 +507,10 @@ function M:CmdAction(cmd, index)
end end
end end
--table.insert(self.CheckServerErrorList,card) --table.insert(self.CheckServerErrorList,card)
if self.CheckServerErrorList==nil then if self.CheckServerErrorList == nil then
self.CheckServerErrorList={} self.CheckServerErrorList = {}
end end
self.CheckServerErrorList[index]=card self.CheckServerErrorList[index] = card
local isAddTi = false local isAddTi = false
for i = 1, #p.fz_list do for i = 1, #p.fz_list do
if p.fz_list[i].card == card then if p.fz_list[i].card == card then
@ -534,14 +536,14 @@ function M:CmdWin(cmd, index)
data.win = cmd.seat data.win = cmd.seat
end end
function M:CmdTipAction(cmd,index) function M:CmdTipAction(cmd, index)
local data = self:CopyLastStep(index) local data = self:CopyLastStep(index)
data.cmd = cmd.cmd data.cmd = cmd.cmd
data.seat = cmd.seat data.seat = cmd.seat
local u = data.player_card_data[cmd.seat] local u = data.player_card_data[cmd.seat]
data.tip_list = cmd.data.tip_list data.tip_list = cmd.data.tip_list
local tips = {} local tips = {}
if #cmd.data.tip_list>0 then if #cmd.data.tip_list > 0 then
for i = 1, #cmd.data.tip_list do for i = 1, #cmd.data.tip_list do
tips[cmd.data.tip_list[i].type] = cmd.data.tip_list[i].type tips[cmd.data.tip_list[i].type] = cmd.data.tip_list[i].type
end end
@ -713,7 +715,6 @@ function M:OnUpdate()
end end
end end
function M:Destroy() function M:Destroy()
UpdateBeat:Remove(self.OnUpdate, self) UpdateBeat:Remove(self.OnUpdate, self)
PlayBackView.Destroy(self) PlayBackView.Destroy(self)