盟主观战可以查看双方
parent
61fc680b4a
commit
af006a117c
|
|
@ -52,7 +52,6 @@ function M:InitView()
|
||||||
end
|
end
|
||||||
self.lst_player_record.scrollPane.onPullUpRelease:Set(function()
|
self.lst_player_record.scrollPane.onPullUpRelease:Set(function()
|
||||||
self:GetRecordData(self.lst_player_record.numItems, self.qid)
|
self:GetRecordData(self.lst_player_record.numItems, self.qid)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self._view:GetChild("btn_search").onClick:Set(function()
|
self._view:GetChild("btn_search").onClick:Set(function()
|
||||||
|
|
@ -76,7 +75,6 @@ function M:InitView()
|
||||||
self.player_record_data = {}
|
self.player_record_data = {}
|
||||||
self.lst_player_record.numItems = 0
|
self.lst_player_record.numItems = 0
|
||||||
self.isFindCode = false
|
self.isFindCode = false
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -192,6 +190,7 @@ end
|
||||||
|
|
||||||
function M:OnRenderRecordItem(index, obj)
|
function M:OnRenderRecordItem(index, obj)
|
||||||
local data = self.record_data[index + 1]
|
local data = self.record_data[index + 1]
|
||||||
|
data.seat = 2 - (index + 1) % 2
|
||||||
self:FillRecordItem(data, obj)
|
self:FillRecordItem(data, obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -205,7 +204,6 @@ function M:OnRenderPlayerRecordItem(index, obj)
|
||||||
self:FillRecordItem(data, obj)
|
self:FillRecordItem(data, obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function M:GetRecordByRoomid()
|
function M:GetRecordByRoomid()
|
||||||
local qid = self._view:GetChild("tex_id").text
|
local qid = self._view:GetChild("tex_id").text
|
||||||
ViewUtil.ShowModalWait()
|
ViewUtil.ShowModalWait()
|
||||||
|
|
@ -336,7 +334,7 @@ function M:OnShowRecordInfo(rdata,ids)
|
||||||
local extend = ExtendManager.GetExtendConfig(game_id)
|
local extend = ExtendManager.GetExtendConfig(game_id)
|
||||||
extend:FillPlayBackData(DataManager.SelfUser.playback[playback_id][i])
|
extend:FillPlayBackData(DataManager.SelfUser.playback[playback_id][i])
|
||||||
if not room.self_player then
|
if not room.self_player then
|
||||||
room.self_player = room:GetPlayerBySeat(1)
|
room.self_player = room:GetPlayerBySeat(rdata.seat)
|
||||||
end
|
end
|
||||||
local main = self:GenaratePlayBack(ViewManager.View_PlayBack, game_id)
|
local main = self:GenaratePlayBack(ViewManager.View_PlayBack, game_id)
|
||||||
main._currentId = playback_id
|
main._currentId = playback_id
|
||||||
|
|
@ -352,14 +350,16 @@ function M:OnShowRecordInfo(rdata,ids)
|
||||||
loddyCtr1:RequestPlayBack(_data, function(code, data)
|
loddyCtr1:RequestPlayBack(_data, function(code, data)
|
||||||
ViewUtil.CloseModalWait()
|
ViewUtil.CloseModalWait()
|
||||||
if code == 0 then
|
if code == 0 then
|
||||||
if DataManager.SelfUser.playback[playback_id] ~= nil then
|
if group.lev == 1 then
|
||||||
DataManager.SelfUser.playback[playback_id][i] = data
|
DataManager.CurrenRoom.self_player = DataManager.CurrenRoom:GetPlayerBySeat(rdata.seat)
|
||||||
else
|
|
||||||
local playback_data = {}
|
|
||||||
playback_data[i] = data
|
|
||||||
DataManager.SelfUser.playback[playback_id] = playback_data
|
|
||||||
end
|
end
|
||||||
|
-- if DataManager.SelfUser.playback[playback_id] ~= nil then
|
||||||
|
-- DataManager.SelfUser.playback[playback_id][i] = data
|
||||||
|
-- else
|
||||||
|
-- local playback_data = {}
|
||||||
|
-- playback_data[i] = data
|
||||||
|
-- DataManager.SelfUser.playback[playback_id] = playback_data
|
||||||
|
-- end
|
||||||
local main = self:GenaratePlayBack(ViewManager.View_PlayBack, game_id)
|
local main = self:GenaratePlayBack(ViewManager.View_PlayBack, game_id)
|
||||||
main._currentId = playback_id
|
main._currentId = playback_id
|
||||||
main._currentRound = i
|
main._currentRound = i
|
||||||
|
|
|
||||||
|
|
@ -310,12 +310,8 @@ end
|
||||||
|
|
||||||
function M:GetPos(seat, myseat)
|
function M:GetPos(seat, myseat)
|
||||||
local my_seat = 1
|
local my_seat = 1
|
||||||
if myseat == nil then
|
if not myseat then
|
||||||
for i = 1, #self._room.player_list do
|
my_seat = self._room.self_player.seat
|
||||||
if DataManager.SelfUser.account_id == self._room.player_list[i].self_user.account_id then
|
|
||||||
my_seat = self._room.player_list[i].seat
|
|
||||||
end
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
my_seat = myseat
|
my_seat = myseat
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ function M:FillPlayBackData(pd_data)
|
||||||
room.curren_round = _tableInfo["round"]
|
room.curren_round = _tableInfo["round"]
|
||||||
|
|
||||||
local _info_list = _tableInfo["playerData"]
|
local _info_list = _tableInfo["playerData"]
|
||||||
|
|
||||||
for i = 1, #_info_list do
|
for i = 1, #_info_list do
|
||||||
local _jp = _info_list[i]
|
local _jp = _info_list[i]
|
||||||
local p = room:NewPlayer()
|
local p = room:NewPlayer()
|
||||||
|
|
@ -164,6 +165,7 @@ function M:FillPlayBackData(pd_data)
|
||||||
|
|
||||||
room:AddPlayer(p)
|
room:AddPlayer(p)
|
||||||
end
|
end
|
||||||
|
|
||||||
room.cmdList = pd_data["cmdList"]
|
room.cmdList = pd_data["cmdList"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,8 @@ end
|
||||||
function M:ChangeTextSpeed()
|
function M:ChangeTextSpeed()
|
||||||
local str1 = self._play and self._speed or ""
|
local str1 = self._play and self._speed or ""
|
||||||
self._view:GetChild("panel_record"):GetChild("tex_speed").text = str1
|
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 "快退")
|
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
|
self._view:GetChild("panel_record"):GetChild("tex_2").text = str2
|
||||||
local str3 = self._play and "倍速度" or ""
|
local str3 = self._play and "倍速度" or ""
|
||||||
self._view:GetChild("panel_record"):GetChild("tex_1").text = str3
|
self._view:GetChild("panel_record"):GetChild("tex_1").text = str3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue