补修 展示牌型位置

master
1076390229 2026-03-13 19:24:45 +08:00
parent eb33d2ea99
commit cbdb58101d
18 changed files with 381 additions and 339 deletions

View File

@ -1,10 +1,10 @@
local PlayerSelfCardInfoView = require("main.zipai.ZPPlayerSelfCardInfoView")
local CardCheck = require("main.zipai.CardCheck")
local M = {}
--
function M.new(view,mainView)
setmetatable(M, {__index = PlayerSelfCardInfoView})
local self = setmetatable({},{__index = M})
--
function M.new(view, mainView)
setmetatable(M, { __index = PlayerSelfCardInfoView })
local self = setmetatable({}, { __index = M })
self.class = "PlayerSelfCardInfoView"
self._view = view
self._mainView = mainView
@ -13,35 +13,33 @@ function M.new(view,mainView)
return self
end
function M:onTouchBegin(context)
if DataManager.CurrenRoom ==nil or DataManager.CurrenRoom.self_player ==nil then
if DataManager.CurrenRoom == nil or DataManager.CurrenRoom.self_player == nil then
return
end
local button = context.sender
local card = button.data
if DataManager.CurrenRoom.curren_outcard_seat == DataManager.CurrenRoom.self_player.seat then
if DataManager.CurrenRoom.curren_outcard_seat == DataManager.CurrenRoom.self_player.seat then
self:ShowHuTip(card.card_item)
end
card.btn_card:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/203_",card.card_item)
card.btn_card:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/203_", card.card_item)
card.btn_card.sortingOrder = 100
local xy = self._area_handcard_list:GlobalToLocal(Vector2.New(context.inputEvent.x,context.inputEvent.y))
card.btn_card.xy = Vector2.New(card.btn_card.x+20 ,card.btn_card.y-50)
local xy = self._area_handcard_list:GlobalToLocal(Vector2.New(context.inputEvent.x, context.inputEvent.y))
card.btn_card.xy = Vector2.New(card.btn_card.x + 20, card.btn_card.y - 50)
card.touch_pos = xy - button.xy
end
function M:__OnDragEnd(context)
if DataManager.CurrenRoom ==nil or DataManager.CurrenRoom.self_player ==nil then
if DataManager.CurrenRoom == nil or DataManager.CurrenRoom.self_player == nil then
return
end
if self.outcard_button then
self.outcard_button = nil
end
local button = context.sender
local card = button.data
local _room = DataManager.CurrenRoom
card.btn_card.sortingOrder = 0
-- print("button.y"..button.y .. "_room.curren_outcard_seat".._room.curren_outcard_seat)
@ -53,7 +51,7 @@ function M:__OnDragEnd(context)
else
local isChangeCard = false
self.outcard_button = nil
card.btn_card:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/201_",card.card_item)
card.btn_card:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/201_", card.card_item)
self._area_handcard_list:AddChild(button)
if #self.card_list == 1 then
isChangeCard = false
@ -61,188 +59,184 @@ function M:__OnDragEnd(context)
return
end
local CountCards = {}
for i=1,#self.card_list do
for i = 1, #self.card_list do
local lists = {}
if CountCards[self.card_list[i].index_X] == nil then
lists[#lists+1] = self.card_list[i]
CountCards[self.card_list[i].index_X]= lists
lists[#lists + 1] = self.card_list[i]
CountCards[self.card_list[i].index_X] = lists
else
CountCards[self.card_list[i].index_X][#CountCards[self.card_list[i].index_X]+1] =self.card_list[i]
CountCards[self.card_list[i].index_X][#CountCards[self.card_list[i].index_X] + 1] = self.card_list[i]
end
end
local minmark = 1
local maxmark = #self.card_list
if card == self.card_list[1] or card == self.card_list[#self.card_list] then
if card == self.card_list[1] or card == self.card_list[#self.card_list] then
if self.card_list[1].index_X == self.card_list[2].index_X then
minmark =2
minmark = 2
end
if self.card_list[#self.card_list].index_X == self.card_list[#self.card_list-1].index_X then
maxmark =#self.card_list-1
if self.card_list[#self.card_list].index_X == self.card_list[#self.card_list - 1].index_X then
maxmark = #self.card_list - 1
end
end
if button.x+button.width/2 < self.card_list[minmark].btn_card.x and #CountCards<10 then
list_remove(self.card_list,card)
if button.x + button.width / 2 < self.card_list[minmark].btn_card.x and #CountCards < 10 then
list_remove(self.card_list, card)
local num = 0
for i=1,#self.card_list do
for i = 1, #self.card_list do
if card.index_X == self.card_list[i].index_X and card.index_Y < self.card_list[i].index_Y then
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
end
if card.index_X == self.card_list[i].index_X then
num = num+1
num = num + 1
end
end
if num ==0 then
for i=1,#self.card_list do
if self.card_list[i].index_X < card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X + 1
end
if num == 0 then
for i = 1, #self.card_list do
if self.card_list[i].index_X < card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X + 1
end
end
else
for i=1,#self.card_list do
self.card_list[i].index_X = self.card_list[i].index_X + 1
for i = 1, #self.card_list do
self.card_list[i].index_X = self.card_list[i].index_X + 1
end
end
card.index_X =1
card.index_Y =1
table.insert(self.card_list,1,card)
card.index_X = 1
card.index_Y = 1
table.insert(self.card_list, 1, card)
isChangeCard = true
elseif button.x+button.width/2 > (self.card_list[maxmark].btn_card.x +button.width) and #CountCards<10 then
list_remove(self.card_list,card)
elseif button.x + button.width / 2 > (self.card_list[maxmark].btn_card.x + button.width) and #CountCards < 10 then
list_remove(self.card_list, card)
local num = 0
for i=1,#self.card_list do
for i = 1, #self.card_list do
if card.index_X == self.card_list[i].index_X then
num = num+1
num = num + 1
end
if card.index_X == self.card_list[i].index_X and card.index_Y < self.card_list[i].index_Y then
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
end
end
if num ==0 then
for i=1,#self.card_list do
if self.card_list[i].index_X > card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X - 1
end
if num == 0 then
for i = 1, #self.card_list do
if self.card_list[i].index_X > card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X - 1
end
end
end
card.index_X =self.card_list[#self.card_list].index_X+1
card.index_Y =1
self.card_list[#self.card_list+1] =card
card.index_X = self.card_list[#self.card_list].index_X + 1
card.index_Y = 1
self.card_list[#self.card_list + 1] = card
isChangeCard = true
else
else
local MoveCard = false
local MoveCardPos = 0
local MoveCardY = 0
for i=1,#CountCards do
for i = 1, #CountCards do
local card_view = CountCards[i][1]
if card_view~=nil then
if button.x+button.width/2 > card_view.old_postion.x and button.x+button.width/2 < (card_view.old_postion.x+button.width) then
if card ~= card_view and #CountCards[i] <4 and card.index_X ~= card_view.index_X then
if card_view ~= nil then
if button.x + button.width / 2 > card_view.old_postion.x and button.x + button.width / 2 < (card_view.old_postion.x + button.width) then
if card ~= card_view and #CountCards[i] < 4 and card.index_X ~= card_view.index_X then
MoveCardPos = i
MoveCardY = #CountCards[i]+1
MoveCardY = #CountCards[i] + 1
MoveCard = true
list_remove(self.card_list,card)
list_remove(self.card_list, card)
end
end
end
end
local MoveCardindex = 0
-- local MoveCardY = 0
if button.x+button.width/2 > card.old_postion.x and button.x+button.width/2 < (card.old_postion.x+button.width) then
if #CountCards[card.index_X]>1 then
for i=1,#CountCards[card.index_X] do
-- local MoveCardY = 0
if button.x + button.width / 2 > card.old_postion.x and button.x + button.width / 2 < (card.old_postion.x + button.width) then
if #CountCards[card.index_X] > 1 then
for i = 1, #CountCards[card.index_X] do
local _cv = CountCards[card.index_X][i]
if _cv ~= card then
if button.y+button.height/2 > _cv.btn_card.y and button.y+button.height/2 < (_cv.btn_card.y+button.height) then
if button.y + button.height / 2 > _cv.btn_card.y and button.y + button.height / 2 < (_cv.btn_card.y + button.height) then
--向下移動
if ((button.y+button.height/2) +20) > (card.old_postion.y+button.height) then
MoveCardindex = -1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list,card)
--向上移動
elseif ((button.y+button.height/2) -20) < card.old_postion.y then
MoveCardindex = 1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list,card)
end
elseif i == #CountCards[card.index_X] and button.y+button.height/2 < _cv.btn_card.y then
MoveCardindex = 1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list,card)
elseif i == 1 and button.y+button.height/2 > (_cv.btn_card.y+button.width) then
MoveCardindex = -1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list,card)
if ((button.y + button.height / 2) + 20) > (card.old_postion.y + button.height) then
MoveCardindex = -1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list, card)
--向上移動
elseif ((button.y + button.height / 2) - 20) < card.old_postion.y then
MoveCardindex = 1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list, card)
end
elseif i == #CountCards[card.index_X] and button.y + button.height / 2 < _cv.btn_card.y then
MoveCardindex = 1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list, card)
elseif i == 1 and button.y + button.height / 2 > (_cv.btn_card.y + button.width) then
MoveCardindex = -1
MoveCardPos = card.index_X
MoveCardY = _cv.index_Y
MoveCard = true
list_remove(self.card_list, card)
end
end
end
end
end
if MoveCard ==true and MoveCardindex ==0 then
if MoveCard == true and MoveCardindex == 0 then
local num = 0
for i=1,#self.card_list do
for i = 1, #self.card_list do
if card.index_X == self.card_list[i].index_X and card.index_Y < self.card_list[i].index_Y then
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
end
if card.index_X == self.card_list[i].index_X then
num = num+1
num = num + 1
end
end
if num ==0 then
for i=1,#self.card_list do
if self.card_list[i].index_X > card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X - 1
end
if num == 0 then
for i = 1, #self.card_list do
if self.card_list[i].index_X > card.index_X then
self.card_list[i].index_X = self.card_list[i].index_X - 1
end
end
if MoveCardPos > card.index_X then
MoveCardPos = MoveCardPos-1
MoveCardPos = MoveCardPos - 1
end
end
card.index_X =MoveCardPos
card.index_Y =MoveCardY
for i=#self.card_list,1,-1 do
card.index_X = MoveCardPos
card.index_Y = MoveCardY
for i = #self.card_list, 1, -1 do
if MoveCardPos == self.card_list[i].index_X then
table.insert(self.card_list,(i+1),card)
table.insert(self.card_list, (i + 1), card)
break
end
end
isChangeCard = true
--上下移动
elseif MoveCard ==true and MoveCardindex ~= 0 then
for i=1,#self.card_list do
if card.index_X == self.card_list[i].index_X then
--上下移动
elseif MoveCard == true and MoveCardindex ~= 0 then
for i = 1, #self.card_list do
if card.index_X == self.card_list[i].index_X then
--向下移动
if MoveCardindex == -1 then
if self.card_list[i].index_Y < card.index_Y and self.card_list[i].index_Y >= MoveCardY then
if self.card_list[i].index_Y < card.index_Y and self.card_list[i].index_Y >= MoveCardY then
self.card_list[i].index_Y = self.card_list[i].index_Y + 1
end
--向上移动
--向上移动
else
if self.card_list[i].index_Y > card.index_Y and self.card_list[i].index_Y <= MoveCardY then
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
if self.card_list[i].index_Y > card.index_Y and self.card_list[i].index_Y <= MoveCardY then
self.card_list[i].index_Y = self.card_list[i].index_Y - 1
end
end
end
end
card.index_X =MoveCardPos
card.index_Y =MoveCardY
for i=#self.card_list,1,-1 do
if MoveCardPos == self.card_list[i].index_X and self.card_list[i].index_Y == (MoveCardY-1) then
table.insert(self.card_list,(i+1),card)
card.index_X = MoveCardPos
card.index_Y = MoveCardY
for i = #self.card_list, 1, -1 do
if MoveCardPos == self.card_list[i].index_X and self.card_list[i].index_Y == (MoveCardY - 1) then
table.insert(self.card_list, (i + 1), card)
break
elseif MoveCardPos == self.card_list[i].index_X and self.card_list[i].index_Y == (MoveCardY+1) then
table.insert(self.card_list,i,card)
elseif MoveCardPos == self.card_list[i].index_X and self.card_list[i].index_Y == (MoveCardY + 1) then
table.insert(self.card_list, i, card)
break
end
end
@ -251,176 +245,162 @@ function M:__OnDragEnd(context)
isChangeCard = false
self._area_handcard_list:AddChild(button)
end
end
end
self:UpdateHandCardsPos()
if isChangeCard ==true then
if isChangeCard == true then
self:SendChangeCard()
end
end
end
function M:UpdateOutCardList(outcard,isShow,isMopai,seat)
if(isShow == nil) then
isShow = false
function M:UpdateOutCardList(outcard, isShow, isMopai, seat)
if (isShow == nil) then
isShow = false
end
if(isMopai == nil) then
isMopai = false
if (isMopai == nil) then
isMopai = false
end
self._area_outcard_list:RemoveChildren(0,-1,true)
local outcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Gcm_OutCard")
if outcard==0 then
outcards:GetChild("icon").icon ="ui://Main_RunBeard/202_1_300"
self._area_outcard_list:RemoveChildren(0, -1, true)
local outcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Gcm_OutCard")
if outcard == 0 then
outcards:GetChild("icon").icon = "ui://Main_RunBeard/202_1_300"
else
outcards:GetChild("icon").icon =self:getCardItem("ui://Main_RunBeard/203_",outcard)
outcards:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/203_", outcard)
end
outcards.x,outcards.y = 0,0
local show_di_bg = outcards:GetChild("show_di_bg")
outcards.x, outcards.y = 0, 0
local show_di_bg = outcards:GetChild("show_di_bg")
--show_di_bg.visible = true
if(isShow)then
if outcard == 0 then
show_di_bg.visible = false
end
if(seat ~= nil and outcards~=nil)then
if(isMopai)then
if outcard ~= 0 then
outcards:GetTransition("mopai"..seat):Play(function( )
-- show_di_bg.visible = true
end)
end
if (isShow) then
if outcard == 0 then
show_di_bg.visible = false
end
if (seat ~= nil and outcards ~= nil) then
if (isMopai) then
if outcard ~= 0 then
outcards:GetTransition("mopai" .. seat):Play(function()
-- show_di_bg.visible = true
end)
end
else
show_di_bg.visible = false
outcards:GetTransition("cpai"..seat):Play()
show_di_bg.visible = false
outcards:GetTransition("cpai" .. seat):Play()
end
else
--show_di_bg.visible = true
end
else
--show_di_bg.visible = true
end
else
show_di_bg.visible = false
show_di_bg.visible = false
end
self._area_outcard_list:AddChild(outcards)
end
--弃牌
function M:UpdateQiPai( qi_list,isplay)
self._area_qipai_list:RemoveChildren(0,-1,true)
for i=1,#qi_list do
local qicards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Qipai")
qicards:GetChild("icon").icon =self:getCardItem("ui://Main_RunBeard/202_",qi_list[i])
if(isplay)then
if(i == #qi_list) then
qicards:GetTransition("t0"):Play()
function M:UpdateQiPai(qi_list, isplay)
self._area_qipai_list:RemoveChildren(0, -1, true)
for i = 1, #qi_list do
local qicards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Qipai")
qicards:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/202_", qi_list[i])
if (isplay) then
if (i == #qi_list) then
qicards:GetTransition("t0"):Play()
end
end
self._area_qipai_list:AddChild(qicards)
end
end
self._area_qipai_list:AddChild(qicards)
end
end
--摸牌动画
function M:PlayingOutCardAnima( card)
function M:PlayingOutCardAnima(card)
coroutine.start(function()
coroutine.wait(0.1)
coroutine.wait(0.1)
self:ClearOutCard()
end)
end
function M:UpdateFzList( fz_list ,ispaly)
self._area_fz_list:RemoveChildren(0,-1,true)
for i = 1,#fz_list do
local fzitem=nil
function M:UpdateFzList(fz_list, ispaly)
self._area_fz_list:RemoveChildren(0, -1, true)
for i = 1, #fz_list do
local fzitem = nil
if fz_list[i].type ~= RB_FZType.Kan then
fzitem =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/ComponentNew")
if(ispaly == false)then
fzitem:RemoveChildren(0,-1,true)
fzitem = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/ComponentNew")
if (ispaly == false) then
fzitem:RemoveChildren(0, -1, true)
end
end
if fz_list[i].type == RB_FZType.Chi or fz_list[i].type == RB_FZType.Bi then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
fzcards:GetChild("card_"..1).icon = self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].active_card)
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
fzcards:GetChild("card_" .. 1).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].active_card)
fzcards:GetController("c2").selectedIndex = 1
fzcards:GetChild("card_"..2).icon = self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].opcard[1])
fzcards:GetChild("card_"..3).icon = self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].opcard[2])
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards:GetChild("card_" .. 2).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].opcard[1])
fzcards:GetChild("card_" .. 3).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].opcard[2])
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
elseif fz_list[i].type == RB_FZType.Peng then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
for j=1,3 do
fzcards:GetChild("card_"..j).icon =self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].card)
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
for j = 1, 3 do
fzcards:GetChild("card_" .. j).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].card)
end
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
elseif fz_list[i].type == RB_FZType.Wei then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
fzcards:GetController("c1").selectedIndex=1
for j=1,3 do
fzcards:GetChild("card_"..j).icon =self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].card)
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
fzcards:GetController("c1").selectedIndex = 1
for j = 1, 3 do
fzcards:GetChild("card_" .. j).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].card)
end
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
elseif fz_list[i].type == RB_FZType.ChouWei then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
for j=1,2 do
fzcards:GetChild("card_"..j).icon ="ui://Main_RunBeard/202_1_300"
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_3")
for j = 1, 2 do
fzcards:GetChild("card_" .. j).icon = "ui://Main_RunBeard/202_1_300"
end
fzcards:GetChild("card_"..3).icon =self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].card)
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards:GetChild("card_" .. 3).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].card)
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
elseif fz_list[i].type == RB_FZType.Pao then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_4")
for j=1,4 do
fzcards:GetChild("card_"..j).icon =self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].card)
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_4")
for j = 1, 4 do
fzcards:GetChild("card_" .. j).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].card)
end
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
elseif fz_list[i].type == RB_FZType.Ti then
local fzcards =UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_4")
for j=1,4 do
if j==4 then
fzcards:GetChild("card_"..j).icon =self:getCardItem("ui://Main_RunBeard/202_",fz_list[i].card)
local fzcards = UIPackage.CreateObjectFromURL("ui://Main_RunBeard/Fz_0_4")
for j = 1, 4 do
if j == 4 then
fzcards:GetChild("card_" .. j).icon = self:getCardItem("ui://Main_RunBeard/202_", fz_list[i].card)
else
fzcards:GetChild("card_"..j).icon ="ui://Main_RunBeard/202_1_300"
fzcards:GetChild("card_" .. j).icon = "ui://Main_RunBeard/202_1_300"
end
end
fzcards.x,fzcards.y = 0,0
self:playAnim(fzitem,fzcards,#fz_list,i,ispaly)
fzcards.x, fzcards.y = 0, 0
self:playAnim(fzitem, fzcards, #fz_list, i, ispaly)
end
end
end
function M:playAnim( fzitem,fzcards, size,i,ispaly )
if(ispaly == nil)then
ispaly =false
end
if(ispaly and i == size)then
local faArray= fzitem:GetChild("chiwei")
if(faArray~=nil)then
faArray:AddChild(fzcards)
else
fzitem:AddChild(fzcards)
end
else
fzitem:AddChild(fzcards)
end
self._area_fz_list:AddChild(fzitem)
function M:playAnim(fzitem, fzcards, size, i, ispaly)
if (ispaly == nil) then
ispaly = false
end
if (ispaly and i == size) then
local faArray = fzitem:GetChild("chiwei")
if (faArray ~= nil) then
faArray:AddChild(fzcards)
else
fzitem:AddChild(fzcards)
end
else
fzitem:AddChild(fzcards)
end
self._area_fz_list:AddChild(fzitem)
end
--出牌提示动画
function M:ChuPaiTiShi()
if DataManager.CurrenRoom ==nil or DataManager.CurrenRoom.self_player ==nil then
--出牌提示动画
function M:ChuPaiTiShi()
if DataManager.CurrenRoom == nil or DataManager.CurrenRoom.self_player == nil then
return
end
local chu_player = DataManager.CurrenRoom.self_player
@ -431,32 +411,31 @@ end
selfplayeTable.paoCount = chu_player.paoCount
selfplayeTable.hu_xi = chu_player.hu_xi
local player = membe_deep_clone(selfplayeTable)
local mark_ting= {}
for i=1,#DataManager.CurrenRoom.self_player.handcard_list do
local card = DataManager.CurrenRoom.self_player.handcard_list[i]
local mark_ting = {}
for i = 1, #DataManager.CurrenRoom.self_player.handcard_list do
local card = DataManager.CurrenRoom.self_player.handcard_list[i]
list_remove(player.handcard_list, card)
local _player = membe_deep_clone(player)
local tingList = CardCheck.tingPai(_player,DataManager.CurrenRoom)
local tingList = CardCheck.tingPai(_player, DataManager.CurrenRoom)
local isKan = false
for j=1,#player.fz_list do
for j = 1, #player.fz_list do
if card == player.fz_list[j].card and player.fz_list[j].type == RB_FZType.Kan then
isKan =true
isKan = true
end
end
if #tingList > 0 and isKan == false then
mark_ting[#mark_ting+1] = card
mark_ting[#mark_ting + 1] = card
end
table.insert(player.handcard_list, card)
table.sort( player.handcard_list, ViewUtil.HandCardSort)
table.sort(player.handcard_list, ViewUtil.HandCardSort)
end
-- print("ChuPaiTiShi",#mark_ting,vardump(player))
if DataManager.CurrenRoom.curren_outcard_seat == DataManager.CurrenRoom.self_player.seat then
self._view :GetController("chupai").selectedIndex =1
if #mark_ting>0 then
for i=1,#mark_ting do
for k=1,#self.card_list do
local card_view= self.card_list[k]
if DataManager.CurrenRoom.curren_outcard_seat == DataManager.CurrenRoom.self_player.seat then
self._view:GetController("chupai").selectedIndex = 1
if #mark_ting > 0 then
for i = 1, #mark_ting do
for k = 1, #self.card_list do
local card_view = self.card_list[k]
if card_view.card_item == mark_ting[i] then
card_view.btn_card:GetController("mark_ting").selectedIndex = 1
end
@ -464,13 +443,12 @@ end
end
end
else
self._view :GetController("chupai").selectedIndex =0
for k=1,#self.card_list do
local card_view= self.card_list[k]
self._view:GetController("chupai").selectedIndex = 0
for k = 1, #self.card_list do
local card_view = self.card_list[k]
card_view.btn_card:GetController("mark_ting").selectedIndex = 0
end
end
end
return M
return M

View File

@ -198,12 +198,14 @@ function M:UpdateOutCardList(outcard, isShow, isMopai, seat)
seat = 3
end
if (isMopai) then
print("摸牌动作1====="..seat)
if outcard ~= 0 then
outcards:GetTransition("mopai" .. seat):Play(function()
-- show_di_bg.visible = true
end)
end
else
print("出牌动作1----"..seat)
show_di_bg.visible = false
outcards:GetTransition("cpai" .. seat):Play()
end

View File

@ -280,6 +280,7 @@ function M:UpdateOutCardList(outcard, isShow, isMopai, seat)
show_di_bg.visible = false
end
if (seat ~= nil and outcards ~= nil) then
print("摸牌动作2=====" .. seat)
if (isMopai) then
if outcard ~= 0 then
outcards:GetTransition("mopai" .. seat):Play(function()

View File

@ -244,6 +244,7 @@ function M:PlayingOutCardAnima(card, seat)
self._area_outcard_list:AddChild(outcards)
end
outcards:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/203_", card)
print("弃牌动作0000==" .. seat)
outcards:GetTransition("qipai" .. seat):Play()
end

View File

@ -530,11 +530,11 @@ function M:UpdateOutLine()
elseif self:getCardSize() == 1.6 then
self._data_outLinePos = 90 - (152 * 3)
elseif self:getCardSize() == 1.8 then
self._data_outLinePos = 90 - (170 * 3)
self._data_outLinePos = 135 - (170 * 3)
elseif self:getCardSize() == 2 then
self._data_outLinePos = 110 - (195 * 3)
self._data_outLinePos = 160 - (195 * 3)
end
self._view_outLine.y = self._data_outLinePos + self._area_handcard_list.height - 60
self._view_outLine.y = self._data_outLinePos + self._area_handcard_list.height
end
function M:UpdateIsOnClick(isOut)
@ -795,7 +795,7 @@ end
--计算手牌位置
function M:GetHandCardPos(cards_view, cards)
local x, y = 0, 0
local card_width = self.card_width - (self._room.change_card_display == "8_" and -2 or 5) -- 牌的宽度
local card_width = self.card_width - (self._room.change_card_display == "8_" and -2 or 5) - 2 -- 牌的宽度
local middle_x = self._area_handcard_list.width / 2
local start_x = middle_x - (cards / 2 * (card_width))
@ -804,19 +804,19 @@ function M:GetHandCardPos(cards_view, cards)
-- local card_height = self.card_hight
-- y = 90 - card_height * 0.66 * cards_view.index_Y
if self:getCardSize() == 1.3 then
y = 90 - (119 * cards_view.index_Y)
y = 100 - (119 * cards_view.index_Y)
elseif self:getCardSize() == 1.2 then
y = 90 - (110 * cards_view.index_Y)
y = 100 - (110 * cards_view.index_Y)
elseif self:getCardSize() == 0.8 then
y = 100 - (85 * cards_view.index_Y)
elseif self:getCardSize() == 1.5 then
y = 90 - (137 * cards_view.index_Y)
y = 100 - (137 * cards_view.index_Y)
elseif self:getCardSize() == 1.6 then
y = 90 - (147 * cards_view.index_Y)
y = 100 - (147 * cards_view.index_Y)
elseif self:getCardSize() == 1.8 then
y = 90 - (164 * cards_view.index_Y)
y = 100 - (135 * cards_view.index_Y)
elseif self:getCardSize() == 2 then
y = 90 - (182 * cards_view.index_Y)
y = 100 - (150 * cards_view.index_Y)
end
return Vector2.New(x, y)
end
@ -939,6 +939,7 @@ function M:PlayingOutCardAnima(card, seat)
self._area_outcard_list:AddChild(outcards)
end
outcards:GetChild("icon").icon = self:getCardItem("ui://Main_RunBeard/203_", card)
print("弃牌动作000.。==" .. seat)
outcards:GetTransition("qipai" .. seat):Play()
end

View File

@ -0,0 +1,10 @@
{
"objectStatus": {
"n48_cphv": {
"collapsed": true
},
"n45_j34t": {
"collapsed": true
}
}
}

View File

@ -1,9 +1,9 @@
{
"objectStatus": {
"n76_oqog": {
"n77_oqog": {
"collapsed": true
},
"n77_oqog": {
"n66_j4og": {
"collapsed": true
}
}

View File

@ -3,23 +3,21 @@
"libview.iconScale": 0,
"doc.openedDocs": [
"ui://lkq9ne9speuq8b",
"ui://lkq9ne9speuq6p",
"ui://lkq9ne9speuq5a",
"ui://lkq9ne9speuq59",
"ui://lkq9ne9speuq6p",
"ui://lkq9ne9ssyh3rk",
"ui://lkq9ne9speuq3",
"ui://lkq9ne9speuq9d",
"ui://lkq9ne9speuq9f",
"ui://lkq9ne9speuq9g",
"ui://lkq9ne9speuqcv",
"ui://lkq9ne9speuqc6",
"ui://lkq9ne9speuqao",
"ui://lkq9ne9speuq5b",
"ui://1utjt0r2ufu92i",
"ui://1utjt0r2ufu92s",
"ui://1utjt0r2ufu930"
"ui://lkq9ne9speuq9",
"ui://lkq9ne9speuqcu",
"ui://lkq9ne9speuq9n"
],
"test.device": "Huawei Mate20",
"canvasColor": 10066329,
"auxline2": true,
"doc.activeDoc": "ui://lkq9ne9speuq6p",
"doc.activeDoc": "ui://lkq9ne9speuq9n",
"libview.twoColumn": false,
"libview.expandedNodes": [
"27vd145b",
@ -29,21 +27,9 @@
"lkq9ne9s",
"/",
"lkq9ne9s",
"/component/",
"lkq9ne9s",
"/component/Main/",
"lkq9ne9s",
"/component/Main/component/",
"lkq9ne9s",
"/component/option/",
"lkq9ne9s",
"/component/option/component/",
"lkq9ne9s",
"/component/option/component/choose/",
"/buttons/",
"lkq9ne9s",
"/images/",
"lkq9ne9s",
"/images/cards1/",
"yzaioi79",
"/",
"yzaioi79",

View File

@ -31,6 +31,10 @@
<gearDisplay controller="state" pages="1,3"/>
<relation target="" sidePair="center-center"/>
</image>
<text id="n27" name="remaining_card" xy="1169,127" size="165,45" fontSize="32" color="#ffffff" align="center" autoSize="none" text="剩余20张">
<gearDisplay controller="state" pages="1,3"/>
<relation target="" sidePair="center-center"/>
</text>
<loader id="n156_mk2u" name="jiang" xy="450,91" size="65,75" fill="scaleFree"/>
<component id="n61_jali" name="player_card_info1" src="peuq5a" fileName="component/Main/component/Player_card_info_1.xml" xy="0,943" size="2532,228">
<gearDisplay controller="state" pages="1,3"/>
@ -100,10 +104,6 @@
<image id="n175_fgao" name="zipai2" src="peuq2u" fileName="component/images/zipaic2.png" xy="1163,133" visible="false">
<relation target="" sidePair="center-center"/>
</image>
<text id="n27" name="remaining_card" xy="1169,127" size="165,45" fontSize="32" color="#ffffff" align="center" autoSize="none" text="剩余20张">
<gearDisplay controller="state" pages="1,3"/>
<relation target="" sidePair="center-center"/>
</text>
<component id="n162_o49p" name="btn_getRoomNum" src="peuq91" fileName="component/room/btn_invite.xml" xy="1096,468" group="n163_o49p" visible="false" touchable="false">
<Button icon="ui://lkq9ne9speuq93"/>
</component>

View File

@ -16,11 +16,11 @@
<component id="n25" name="area_handcard_list" src="peuq59" fileName="component/Component1.xml" xy="447,1021" size="1698,148">
<relation target="" sidePair="center-center,bottom-bottom"/>
</component>
<component id="n37_n1ry" name="mask_liangpai" src="peuq59" fileName="component/Component1.xml" xy="868,-91" size="5,5"/>
<component id="n37_n1ry" name="mask_liangpai" src="peuq59" fileName="component/Component1.xml" xy="1310,-501" size="5,5"/>
<component id="n38_ey1o" name="n38" src="peuq5b" fileName="component/Main/component/PromptOutCard.xml" xy="16,-177" size="1577,5">
<gearDisplay controller="chupai" pages="1"/>
</component>
<component id="n27" name="area_outcard_list" src="peuq59" fileName="component/Component1.xml" xy="1178,-751" size="100,100" touchable="false"/>
<component id="n27" name="area_outcard_list" src="peuq59" fileName="component/Component1.xml" xy="1178,-851" size="100,100"/>
<component id="n39_j34t" name="piao0" src="peuq5f" fileName="component/piao/btn_nopiao.xml" xy="668,-20" group="n45_j34t">
<gearDisplay controller="piao" pages="1,3,4"/>
<Button controller="piaovalue" page="0"/>

View File

@ -4,7 +4,7 @@
<list id="n47_lr5d" name="area_fz_list" xy="84,31" pivot="0.5,0.5" size="713,268" rotation="180" layout="row" scroll="horizontal" colGap="18" align="right" vAlign="bottom"/>
<list id="n48_lr5d" name="windcard_list" xy="84,350" size="535,530" touchable="false" layout="flow_hz" selectionMode="none" scroll="horizontal" lineGap="1" colGap="1" defaultItem="ui://v6yvqp7wf55qvw"/>
<component id="n50_n1ry" name="mask_liangpai" src="peuq59" fileName="component/Component1.xml" xy="200,83" size="5,5"/>
<component id="n25" name="area_outcard_list" src="peuq59" fileName="component/Component1.xml" xy="869,140" size="100,100" touchable="false"/>
<component id="n25" name="area_outcard_list" src="peuq59" fileName="component/Component1.xml" xy="264,-55" size="100,100"/>
<component id="n51_n7o4" name="area_handcard_list" src="peuq59" fileName="component/Component1.xml" xy="226,230" size="717,533" touchable="false"/>
</displayList>
<transition name="t0">

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="147,437">
<component size="132,393">
<displayList>
<image id="n2_ddb9" name="show_di_bg" src="peuqa" fileName="component/cards/zipai_di_bg.png" xy="-51,-50" size="243,559">
<image id="n2_ddb9" name="show_di_bg" src="peuqa" fileName="component/cards/zipai_di_bg.png" xy="-45,-44" size="215,495" visible="false">
<relation target="n1_wyal" sidePair="width-width%,height-height%,center-center%,middle-middle%"/>
</image>
<loader id="n1_wyal" name="icon" xy="0,0" size="147,437" url="ui://lkq9ne9speuqb" fill="scale" clearOnPublish="true"/>
<loader id="n1_wyal" name="icon" xy="0,0" size="130,387" url="ui://lkq9ne9speuqb" fill="scale" clearOnPublish="true"/>
</displayList>
<transition name="mopai1">
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="15,44" endValue="148.076,438.809" duration="7"/>
<item time="0" type="Size" target="n2_ddb9" value="-,-"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-365,-40" endValue="0,-1" duration="7"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="40,-60" endValue="0,-1" duration="7"/>
<item time="0" type="XY" target="n2_ddb9" value="-,-"/>
<item time="7" type="Size" target="n2_ddb9" value="-,-"/>
<item time="7" type="XY" target="n2_ddb9" value="-,-"/>
@ -25,7 +25,7 @@
<transition name="mopai3">
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="15,44" endValue="145.626,431.55" duration="7"/>
<item time="0" type="Size" target="n2_ddb9" value="-,-"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="300,0" endValue="0,0" duration="7"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="722,167" endValue="0,0" duration="7"/>
<item time="0" type="XY" target="n2_ddb9" value="-,-"/>
<item time="7" type="Size" target="n2_ddb9" value="-,-"/>
<item time="7" type="XY" target="n2_ddb9" value="-,-"/>
@ -40,7 +40,7 @@
</transition>
<transition name="cpai3">
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="145.577,431.406" duration="7"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-189,149" endValue="0,0" duration="7"/>
<item time="0" type="XY" target="n1_wyal" tween="true" startValue="-536,162" endValue="0,0" duration="7"/>
</transition>
<transition name="mopai4">
<item time="0" type="Size" target="n1_wyal" tween="true" startValue="17,44" endValue="145.112,430.025" duration="5"/>

View File

@ -1,52 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="2532,690">
<controller name="bipai" pages="0,,1,,2,,3," selected="0"/>
<controller name="bipai" pages="0,,1,,2,,3," selected="2"/>
<displayList>
<component id="n62_j5c2" name="dibtn" src="peuq9o" fileName="component/option/dibutton.xml" xy="0,2" size="2538,694"/>
<image id="n78_h5b1" name="di1" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1462,103" size="369,373" group="n66_j4og">
<image id="n78_h5b1" name="di1" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1838,103" size="369,373" group="n66_j4og">
<relation target="" sidePair=""/>
</image>
<graph id="n64_j4og" name="di1__" xy="1524,123" pivot="1,0" size="276,273" group="n66_j4og" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20"/>
<text id="n65_j4og" name="n65" xy="1478,134" size="54,253" group="n66_j4og" fontSize="50" color="#ffffff" autoSize="none" strokeColor="#000000" text="吃牌"/>
<list id="n27_m25s" name="Lst_choose" xy="1527,123" size="282,214" group="n66_j4og" layout="row" lineGap="7" colGap="30" defaultItem="ui://lkq9ne9speuq9g" align="right" vAlign="middle">
<graph id="n64_j4og" name="di1__" xy="1900,123" pivot="1,0" size="276,273" group="n66_j4og" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20"/>
<text id="n65_j4og" name="n65" xy="1854,134" size="54,253" group="n66_j4og" fontSize="50" color="#ffffff" autoSize="none" strokeColor="#000000" text="吃牌"/>
<list id="n27_m25s" name="Lst_choose" xy="1903,123" size="282,214" group="n66_j4og" layout="row" lineGap="7" colGap="30" defaultItem="ui://lkq9ne9speuq9g" align="right" vAlign="middle">
<item url="ui://gsufj3fakg838c"/>
<item url="ui://gsufj3fakg838c"/>
</list>
<group id="n66_j4og" name="1223" xy="1462,103" size="369,373"/>
<image id="n79_o0c1" name="di2" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1070,107" pivot="1,0" size="358,331" group="n76_oqog">
<group id="n66_j4og" name="1223" xy="1838,103" size="369,373"/>
<image id="n79_o0c1" name="di2" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1466,107" pivot="1,0" size="277,331" group="n76_oqog">
<relation target="" sidePair=""/>
<relation target="n78_h5b1" sidePair="left-left"/>
</image>
<graph id="n67_j4og" name="di2__" xy="1449,108" pivot="1,0" anchor="true" size="343,281" group="n76_oqog" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20"/>
<text id="n68_j4og" name="n68" xy="1081,127" size="46,252" group="n76_oqog" fontSize="40" color="#ffffff" autoSize="none" strokeColor="#000000" text="比牌">
<graph id="n67_j4og" name="di2__" xy="1734,108" pivot="1,0" anchor="true" size="247,281" group="n76_oqog" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20"/>
<text id="n68_j4og" name="n68" xy="1477,127" size="0,252" group="n76_oqog" fontSize="40" color="#ffffff" autoSize="none" strokeColor="#000000" text="比牌">
<relation target="n79_o0c1" sidePair="left-left"/>
</text>
<list id="n40_ey1o" name="Bi_Lst_choose1" xy="1158,125" pivot="1,0" size="242,195" group="n76_oqog" layout="row" lineGap="7" colGap="30" defaultItem="ui://gsufj3fakg838c" align="right" vAlign="middle">
<list id="n40_ey1o" name="Bi_Lst_choose1" xy="1479,125" pivot="1,0" size="250,195" group="n76_oqog" layout="row" lineGap="7" colGap="30" defaultItem="ui://gsufj3fakg838c" align="right" vAlign="middle">
<relation target="n78_h5b1" sidePair="left-left"/>
<item/>
<item/>
<item/>
<item/>
</list>
<group id="n76_oqog" name="n76" xy="1070,107" size="379,331" advanced="true">
<group id="n76_oqog" name="n76" xy="1466,107" size="277,331" advanced="true">
<gearDisplay controller="bipai" pages="1,2"/>
</group>
<image id="n81_o0c1" name="di3" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1064,490" group="n77_oqog">
<image id="n81_o0c1" name="di3" src="h5b1rr" fileName="image/main_2/main_2_choice.png" xy="1383,490" group="n77_oqog">
<relation target="n79_o0c1" sidePair="right-left"/>
</image>
<graph id="n71_oqog" name="di3__" xy="1443,494" pivot="1,0" anchor="true" size="384,259" group="n77_oqog" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20">
<graph id="n71_oqog" name="di3__" xy="1762,494" pivot="1,0" anchor="true" size="384,259" group="n77_oqog" visible="false" alpha="0.8" type="rect" fillColor="#ff000000" corner="20">
<relation target="n79_o0c1" sidePair="right-left"/>
</graph>
<text id="n72_oqog" name="n72" xy="1082,518" size="55,156" group="n77_oqog" fontSize="40" color="#ffffff" autoSize="none" text="比牌">
<text id="n72_oqog" name="n72" xy="1401,518" size="55,156" group="n77_oqog" fontSize="40" color="#ffffff" autoSize="none" text="比牌">
<relation target="n81_o0c1" sidePair="left-left"/>
</text>
<list id="n48_ey1o" name="Bi_Lst_choose2" xy="1421,514" pivot="1,0" anchor="true" size="272,171" group="n77_oqog" layout="row" lineGap="7" colGap="30" defaultItem="ui://gsufj3fakg838c" align="right" vAlign="middle">
<list id="n48_ey1o" name="Bi_Lst_choose2" xy="1740,514" pivot="1,0" anchor="true" size="272,171" group="n77_oqog" layout="row" lineGap="7" colGap="30" defaultItem="ui://gsufj3fakg838c" align="right" vAlign="middle">
<relation target="n81_o0c1" sidePair="right-right"/>
<item/>
<item/>
<item/>
</list>
<group id="n77_oqog" name="n77" xy="1059,490" size="384,335" advanced="true">
<group id="n77_oqog" name="n77" xy="1378,490" size="384,335" advanced="true">
<gearDisplay controller="bipai" pages="2"/>
</group>
</displayList>

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="83,106" extention="Button">
<component size="83,90" extention="Button">
<controller name="button" pages="0,up,1,down" selected="0"/>
<controller name="Kan" pages="0,,1," selected="0"/>
<displayList>
<loader id="n3_hp0b" name="icon" xy="-3,2" size="86,104" url="ui://v6yvqp7wlr5dg" autoSize="true">
<gearXY controller="button" pages="1" values="-3,-22" default="-3,2" tween="true"/>
<loader id="n3_hp0b" name="icon" xy="0,1" size="83,90" url="ui://v6yvqp7wlr5dg" fill="scale">
<gearXY controller="button" pages="0,1" values="0,1|-3,-22" tween="true"/>
</loader>
<graph id="n4_m25s" name="n4" xy="-3,1" size="87,104" type="rect" lineColor="#ff333333" fillColor="#c2333333" corner="5">
<gearDisplay controller="Kan" pages="1"/>

View File

@ -3,8 +3,20 @@
"WorkspaceRootPath": "D:\\UnityProject\\changhong\\wb_unity_pro\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|d:\\unityproject\\changhong\\wb_unity_pro\\assets\\modules\\tolua\\core\\tolua.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\modules\\tolua\\core\\tolua.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\modules\\tolua\\core\\tolua.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|d:\\unityproject\\changhong\\wb_unity_pro\\assets\\scripts\\gameapplication.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\gameapplication.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\scripts\\vercheck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\vercheck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\scripts\\core\\luanetclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\core\\luanetclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
@ -14,8 +26,45 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "GameApplication.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\GameApplication.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\GameApplication.cs",
"ToolTip": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\GameApplication.cs",
"RelativeToolTip": "Assets\\Scripts\\GameApplication.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvx4AAAAhAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-13T06:17:23.857Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "VerCheck.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\VerCheck.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\VerCheck.cs",
"ToolTip": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\VerCheck.cs",
"RelativeToolTip": "Assets\\Scripts\\VerCheck.cs",
"ViewState": "AgIAAAsAAAAAAAAAAAAxwB0AAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-11T06:46:35.599Z"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "LuaNetClient.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\Core\\LuaNetClient.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\Core\\LuaNetClient.cs",
"ToolTip": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\Core\\LuaNetClient.cs",
"RelativeToolTip": "Assets\\Scripts\\Core\\LuaNetClient.cs",
"ViewState": "AgIAAEAAAAAAAAAAAAAhwFgAAAANAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-11T06:46:03.786Z"
},
{
"$type": "Document",
"DocumentIndex": 0,
@ -24,7 +73,7 @@
"RelativeDocumentMoniker": "Assets\\Modules\\ToLua\\Core\\ToLua.cs",
"ToolTip": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Modules\\ToLua\\Core\\ToLua.cs",
"RelativeToolTip": "Assets\\Modules\\ToLua\\Core\\ToLua.cs",
"ViewState": "AgIAALMAAAAAAAAAAAAhwMwAAABKAAAAAAAAAA==",
"ViewState": "AgIAAJwAAAAAAAAAAAAYwMwAAABKAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-10T12:20:46.07Z",
"EditorCaption": ""

View File

@ -7,11 +7,15 @@
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\modules\\tolua\\core\\tolua.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|d:\\unityproject\\changhong\\wb_unity_pro\\assets\\scripts\\vercheck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\scripts\\gameapplication.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\gameapplication.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\scripts\\vercheck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\vercheck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|d:\\unityproject\\changhong\\wb_unity_pro\\assets\\scripts\\core\\luanetclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"AbsoluteMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|D:\\UnityProject\\changhong\\wb_unity_pro\\assets\\scripts\\core\\luanetclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{447B58C1-7AFB-29A7-57FF-8787F9E109CD}|Assembly-CSharp.csproj|solutionrelative:assets\\scripts\\core\\luanetclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
@ -22,11 +26,23 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 2,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "GameApplication.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\GameApplication.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\GameApplication.cs",
"ToolTip": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\GameApplication.cs",
"RelativeToolTip": "Assets\\Scripts\\GameApplication.cs",
"ViewState": "AgIAAAAAAAAAAAAAAADwvx4AAAAhAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-13T06:17:23.857Z"
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "VerCheck.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\VerCheck.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\VerCheck.cs",
@ -34,12 +50,11 @@
"RelativeToolTip": "Assets\\Scripts\\VerCheck.cs",
"ViewState": "AgIAAAsAAAAAAAAAAAAxwB0AAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-11T06:46:35.599Z",
"EditorCaption": ""
"WhenOpened": "2026-03-11T06:46:35.599Z"
},
{
"$type": "Document",
"DocumentIndex": 2,
"DocumentIndex": 3,
"Title": "LuaNetClient.cs",
"DocumentMoniker": "D:\\UnityProject\\changhong\\wb_unity_pro\\Assets\\Scripts\\Core\\LuaNetClient.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\Core\\LuaNetClient.cs",
@ -47,8 +62,7 @@
"RelativeToolTip": "Assets\\Scripts\\Core\\LuaNetClient.cs",
"ViewState": "AgIAAEAAAAAAAAAAAAAhwFgAAAANAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-03-11T06:46:03.786Z",
"EditorCaption": ""
"WhenOpened": "2026-03-11T06:46:03.786Z"
},
{
"$type": "Document",