回来时准备状态不对同步

master
罗家炜 2025-09-13 20:41:59 +08:00
parent 52e48d2217
commit 1d6fd325a6
82 changed files with 313 additions and 253 deletions

View File

@ -392,7 +392,7 @@ function M:NumberRecordDetailRender()
self._viewList_players:RemoveChildrenToPool() self._viewList_players:RemoveChildrenToPool()
for j = 1, #info.totalScore do for j = 1, #info.totalScore do
local obj = self._viewList_players:AddItemFromPool() local obj = self._viewList_players:AddItemFromPool()
self:RecordItemPlayersRender(json.decode(info.round_1), obj) self:RecordItemPlayersRender(info.totalScore[j], obj)
end end
self.ctr_numberRecord.selectedIndex = 3 self.ctr_numberRecord.selectedIndex = 3
end) end)
@ -500,7 +500,7 @@ function M:RecordItemDetailRender(round, allDate, rdata, obj)
end end
function M:RecordItemPlayersRender(data, obj) function M:RecordItemPlayersRender(data, obj)
obj:GetChild('n2').text = data.nick obj.text = data.nick
end end
function M:NumverRankRenderer(groupId) function M:NumverRankRenderer(groupId)

View File

@ -162,7 +162,7 @@ function M:RecordItemDetailRender(round, allDate, rdata, obj)
end end
function M:RecordItemPlayersRender(data, obj) function M:RecordItemPlayersRender(data, obj)
obj:GetChild('n2').text = data.nick obj.text = data.nick
end end
function M:RecordItemRenderer(data, obj) function M:RecordItemRenderer(data, obj)
@ -179,7 +179,7 @@ function M:RecordItemRenderer(data, obj)
self._viewList_players:RemoveChildrenToPool() self._viewList_players:RemoveChildrenToPool()
for j = 1, #data.totalScore do for j = 1, #data.totalScore do
local obj = self._viewList_players:AddItemFromPool() local obj = self._viewList_players:AddItemFromPool()
self:RecordItemPlayersRender(json.decode(data.round_1), obj) self:RecordItemPlayersRender(data.totalScore[j], obj)
end end
self._ctr_cWindow.selectedIndex = 1 self._ctr_cWindow.selectedIndex = 1
end) end)

View File

@ -6,10 +6,10 @@ local TableBG = import 'Game.Data.TableBG'
local SettingView = {} local SettingView = {}
local M = SettingView local M = SettingView
setmetatable(M, {__index = BaseWindow}) setmetatable(M, { __index = BaseWindow })
function SettingView.new(blur_view) function SettingView.new(blur_view)
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = 'SettingView' self.class = 'SettingView'
self._currenIndex = 0 self._currenIndex = 0
self._blur_view = blur_view self._blur_view = blur_view
@ -24,47 +24,46 @@ function SettingView.new(blur_view)
end end
function M:init(url) function M:init(url)
BaseWindow.init(self, url) BaseWindow.init(self, url)
local view = self._view local view = self._view
local slider_sound = view:GetChild('slider_sound') local slider_sound = view:GetChild('slider_sound')
local slider_music = view:GetChild('slider_music') local slider_music = view:GetChild('slider_music')
-- local btn_music = view:GetChild('btn_music') local btn_music = view:GetChild('btn_music')
-- local btn_sound = view:GetChild('btn_sound') local btn_sound = view:GetChild('btn_sound')
-- btn_music.selected = (GameApplication.Instance.MusicValue < 5 and false or true) btn_music.selected = (GameApplication.Instance.MusicValue < 5 and false or true)
slider_sound.value = GameApplication.Instance.SoundValue slider_sound.value = GameApplication.Instance.SoundValue
slider_music.value = GameApplication.Instance.MusicValue slider_music.value = GameApplication.Instance.MusicValue
-- btn_sound.selected = GameApplication.Instance.SoundValue < 5 and false or true btn_sound.selected = GameApplication.Instance.SoundValue < 5 and false or true
slider_music.onChanged:Add( slider_music.onChanged:Add(
function() function()
GameApplication.Instance.MusicValue = slider_music.value GameApplication.Instance.MusicValue = slider_music.value
-- btn_music.selected = GameApplication.Instance.MusicValue < 5 and false or true btn_music.selected = GameApplication.Instance.MusicValue < 5 and false or true
end end
) )
slider_sound.onChanged:Add( slider_sound.onChanged:Add(
function() function()
GameApplication.Instance.SoundValue = slider_sound.value GameApplication.Instance.SoundValue = slider_sound.value
-- btn_sound.selected = GameApplication.Instance.SoundValue < 5 and false or true btn_sound.selected = GameApplication.Instance.SoundValue < 5 and false or true
end end
) )
-- btn_sound.onChanged:Add( btn_sound.onChanged:Add(
-- function() function()
-- GameApplication.Instance.SoundValue = btn_sound.selected and 50 or 0 GameApplication.Instance.SoundValue = btn_sound.selected and 50 or 0
-- slider_sound.value = GameApplication.Instance.SoundValue slider_sound.value = GameApplication.Instance.SoundValue
-- end end
-- ) )
-- btn_music.onChanged:Add( btn_music.onChanged:Add(
-- function() function()
-- GameApplication.Instance.MusicValue = btn_music.selected and 50 or 0 GameApplication.Instance.MusicValue = btn_music.selected and 50 or 0
-- slider_music.value = GameApplication.Instance.MusicValue slider_music.value = GameApplication.Instance.MusicValue
-- end end
-- ) )
self._stateController = view:GetController('state') self._stateController = view:GetController('state')
self.cd_time_text = view:GetChild('n35') self.cd_time_text = view:GetChild('n35')
@ -111,22 +110,24 @@ function M:init(url)
end end
) )
end end
-- local btn_close = self._view:GetChild("btn_close") local btn_close = self._view:GetChild("btn_close")
-- if btn_close then if btn_close then
-- btn_close.onClick:Add(function( ... ) btn_close.onClick:Add(function(...)
-- end) end)
-- end end
end end
--赋值bg_config --赋值bg_config
function M:GetBGConfig() function M:GetBGConfig()
return TableBG.GetBGConfig() return TableBG.GetBGConfig()
end end
--获得背景 --获得背景
function M:GetBgByGameId(game_id) function M:GetBgByGameId(game_id)
return TableBG.GetTableBG(game_id) return TableBG.GetTableBG(game_id)
end end
--显示背景选项,并加载背景 --显示背景选项,并加载背景
function M:FillBgSection(cb, game_id, default_bg, bg_config) function M:FillBgSection(cb, game_id, default_bg, bg_config)
local view = self._view local view = self._view
@ -137,14 +138,14 @@ function M:FillBgSection(cb, game_id, default_bg, bg_config)
local config = bg_config[i] local config = bg_config[i]
local item = lst_bg:AddItemFromPool() local item = lst_bg:AddItemFromPool()
item.icon = config.thumb item.icon = config.thumb
--printlog("显示背景选项,并加载背景",item.icon) --printlog("显示背景选项,并加载背景",item.icon)
item.data = config item.data = config
if i > 6 then if i > 6 then
ctr_bg:AddPage(i - 1) ctr_bg:AddPage(i - 1)
end end
item.onClick:Add( item.onClick:Add(
function(index) function(index)
cb(config.url,i) cb(config.url, i)
end end
) )
end end
@ -167,20 +168,20 @@ function M:Show()
if self._stateController.selectedIndex == 2 and self.cd_time_text ~= nil then if self._stateController.selectedIndex == 2 and self.cd_time_text ~= nil then
self.cd_coroutine = self.cd_coroutine =
coroutine.start( coroutine.start(
function() function()
while (self.cd_time > 0) do while (self.cd_time > 0) do
self:SetCanDissroom(false) self:SetCanDissroom(false)
self.cd_time = self.cd_time - 1 self.cd_time = self.cd_time - 1
self.cd_time = math.max(0, self.cd_time) self.cd_time = math.max(0, self.cd_time)
self.cd_time_text.text = tostring(math.ceil(self.cd_time)) self.cd_time_text.text = tostring(math.ceil(self.cd_time))
if self.cd_time > 0 then if self.cd_time > 0 then
coroutine.wait(1) coroutine.wait(1)
end
end end
self:SetCanDissroom(self._btn_dismiss_room_enable)
self.cd_time_text.text = ''
end end
self:SetCanDissroom(self._btn_dismiss_room_enable) )
self.cd_time_text.text = ''
end
)
end end
end end

View File

@ -182,7 +182,6 @@ function M:LoadConfigToDetail(data, hpdata)
configData = json.decode(data) configData = json.decode(data)
end end
pt("lingemng", data)
local hpData = configData.hpData or hpdata local hpData = configData.hpData or hpdata
if type(hpData) == 'string' then if type(hpData) == 'string' then
hpData = json.decode(hpData) hpData = json.decode(hpData)

View File

@ -177,7 +177,7 @@ function M:LoadConfigToDetail(data, hpdata)
returnString = string.format("%s人数%s人", returnString, configData.maxPlayers) returnString = string.format("%s人数%s人", returnString, configData.maxPlayers)
returnString = string.format("%s,%s,%s,%s", returnString, returnString = string.format("%s,%s,%s,%s", returnString,
configData.zimo == 0 and "可点炮,可自摸" or "只能自摸", configData.zimo == 0 and "可点炮,可自摸" or "必须自摸",
configData.tuoguan == 0 and string.format("%d秒后自动托管", configData.tuoguan_active_time) or "不能托管", configData.tuoguan == 0 and string.format("%d秒后自动托管", configData.tuoguan_active_time) or "不能托管",
configData.jingbibo == 1 and "有精必博" or "有精可胡") configData.jingbibo == 1 and "有精必博" or "有精可胡")

View File

@ -162,7 +162,7 @@ function M:UpdatePlayerInfoView()
local _player_info = self._player_info local _player_info = self._player_info
local list = self._room.player_list local list = self._room.player_list
for i = 1, self._room.room_config.people_num do for i = 1, #list do
local seat = self:GetPos(list[i].seat) local seat = self:GetPos(list[i].seat)
local tem = self._view:GetChild(string.format("player_info%d_%d", seat, (self._state.selectedIndex % 2) + 1)) local tem = self._view:GetChild(string.format("player_info%d_%d", seat, (self._state.selectedIndex % 2) + 1))
_player_info[seat] = PlayerInfoView.new(tem, self) _player_info[seat] = PlayerInfoView.new(tem, self)
@ -771,56 +771,6 @@ function M:_ChiView(tiplist, callback)
self._pop_tip_choice = _pop_tip_choice self._pop_tip_choice = _pop_tip_choice
end end
function M:OnFangziAction(...)
self:__CloseTip()
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
-- local pNode = info._mask_liangpai
local effect = UIPackage.CreateObject("Extend_MJ_LiChuan", "FzEffect")
if fz.type == FZType.Peng then
self:PlaySound("LiChuan_MJ", player.self_user.sex, "peng")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
-- effect:GetChild("kuang").icon = UIPackage.GetItemURL("Main_Majiang", "碰框")
elseif fz.type == FZType.Chi then
self:PlaySound("LiChuan_MJ", player.self_user.sex, "chi")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
else
self:PlaySound("LiChuan_MJ", player.self_user.sex, "gang")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
-- effect:GetChild("kuang").icon = UIPackage.GetItemURL("Main_Majiang", "杠框")
end
effect.touchable = false
effect:GetTransition("t2"):Play()
-- pNode:AddChild(effect)
coroutine.start(function()
coroutine.wait(0.3)
self._popEvent = true
end)
coroutine.start(function()
coroutine.wait(2)
effect:Dispose()
end)
self:RemoveCursor()
if (player.seat ~= fz.from_seat) then
local fs_info = _player_card_info[self:GetPos(fz.from_seat)]
fs_info:UpdateOutCardList()
end
local seat = (self._room.room_config.people_num == 2 and fz.from_seat == 2) and 2 or fz.from_seat - 1
info:UpdateFzList(fz, index, true, seat)
local getcard = fz.type == FZType.Peng or fz.type == FZType.Chi
printlog(getcard)
info:UpdateHandCard(getcard)
self:__CloseTip()
end
function M:RunNiao(list, start_seat) function M:RunNiao(list, start_seat)
local _room = self._room local _room = self._room
--local _niao_View = self._niao_View --local _niao_View = self._niao_View
@ -938,6 +888,9 @@ function M:ReloadRoom(bskip)
if bskip == nil or bskip == false then if bskip == nil or bskip == false then
if p.ready and room.playing == false then if p.ready and room.playing == false then
self._player_info[self:GetPos(p.seat)]:Ready(true) self._player_info[self:GetPos(p.seat)]:Ready(true)
if room.self_player.seat == p.seat then
self._ctr_action.selectedIndex = 0
end
end end
end end
if p.piao_niao ~= nil and p.piao_niao > 0 then if p.piao_niao ~= nil and p.piao_niao > 0 then

View File

@ -191,8 +191,6 @@ function M:EventInit()
print("lingmeng witness FZTips") print("lingmeng witness FZTips")
end) end)
_gamectr:AddEventListener(TX_GameEvent.FangziAction, handler(self, self.OnFangziAction))
_gamectr:AddEventListener(TX_GameEvent.ZPHuCard, function(...) _gamectr:AddEventListener(TX_GameEvent.ZPHuCard, function(...)
self._popEvent = false self._popEvent = false
self._left_time = 0 self._left_time = 0
@ -326,7 +324,7 @@ function M:EventInit()
-- self:RemoveCursor() -- self:RemoveCursor()
if self._clearingView == nil then if self._clearingView == nil then
self._clearingView = EXClearingView.new(self._root_view) self._clearingView = EXClearingView.new(self._root_view)
self._clearingView._view:GetChild('btn_setting').onClick:Set(handler(self,self.ClickSetting)) self._clearingView._view:GetChild('btn_setting').onClick:Set(handler(self, self.ClickSetting))
coroutine.start(function() coroutine.start(function()
coroutine.wait(0.5) coroutine.wait(0.5)
self._clearingView:Show() self._clearingView:Show()
@ -357,7 +355,7 @@ function M:EventInit()
info._view:GetController("text_color").selectedIndex = 1 info._view:GetController("text_color").selectedIndex = 1
info._view:GetChild("text_jifen").text = num info._view:GetChild("text_jifen").text = num
end end
info._view:GetChild("mask_piao").title = "" info._view:GetChild("mask_piao").title = ""
info._view:GetController("piao_niao").selectedIndex = 0 info._view:GetController("piao_niao").selectedIndex = 0
p.fz_list = {} p.fz_list = {}
@ -403,17 +401,17 @@ function M:EventInit()
print("lingmeng witness EventResidueCard") print("lingmeng witness EventResidueCard")
end) end)
--替换mianview的事件 --替换mianview的事件
_gamectr:AddEventListener( _gamectr:AddEventListener(
GameEvent.PlayerState, GameEvent.PlayerState,
function(...) function(...)
printlog("lingmeng OnEventOnlineState") printlog("lingmeng OnEventOnlineState")
local arg = { ... } local arg = { ... }
local p = arg[1] local p = arg[1]
local info = self._player_info[self:GetPos(p.seat)] local info = self._player_info[self:GetPos(p.seat)]
info._ctr_offline.selectedIndex = p.line_state == 0 and 1 or 0 info._ctr_offline.selectedIndex = p.line_state == 0 and 1 or 0
end end
) )
end end
function M:InitPlayerInfoView() function M:InitPlayerInfoView()
@ -421,7 +419,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(string.format("player_info%d_2", i)) local tem = self._view:GetChild(string.format("player_info%d_2", i))
_player_info[i] = PlayerInfoView.new(tem, self,true) _player_info[i] = PlayerInfoView.new(tem, self, true)
tem.visible = false tem.visible = false
end end
end end
@ -449,67 +447,6 @@ function M:UpdateCardBox(seat)
self._ctr_cardbox.selectedIndex = index self._ctr_cardbox.selectedIndex = index
end end
function M:OnFangziAction(...)
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
-- local pNode = info._mask_liangpai
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
-- local pNode = info._mask_liangpai
local effect = UIPackage.CreateObject("Extend_MJ_LiChuan", "FzEffect")
if fz.type == FZType.Peng then
self:PlaySound("LiChuan_MJ", player.self_user.sex, "peng")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
-- effect:GetChild("kuang").icon = UIPackage.GetItemURL("Main_Majiang", "碰框")
elseif fz.type == FZType.Chi then
self:PlaySound("LiChuan_MJ", player.self_user.sex, "chi")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
else
self:PlaySound("LiChuan_MJ", player.self_user.sex, "gang")
effect:GetChild("word1").icon = UIPackage.GetItemURL("Main_Majiang", "")
effect:GetChild("word2").icon = UIPackage.GetItemURL("Main_Majiang", "")
-- effect:GetChild("kuang").icon = UIPackage.GetItemURL("Main_Majiang", "杠框")
end
effect.touchable = false
effect:GetTransition("t2"):Play()
-- pNode:AddChild(effect)
coroutine.start(function()
coroutine.wait(0.3)
self._popEvent = true
end)
coroutine.start(function()
coroutine.wait(2)
effect:Dispose()
end)
self:RemoveCursor()
if (player.seat ~= fz.from_seat) then
local fs_info = _player_card_info[self:GetPos(fz.from_seat)]
fs_info:UpdateOutCardList()
end
local seat = (self._room.room_config.people_num == 2 and fz.from_seat == 2) and 2 or fz.from_seat - 1
info:UpdateFzList(fz, index, true, seat)
--因为观战没有手牌,等预处理完扣牌数之后矫正一次(最粗暴的修正方式手牌数等于13-3*吃碰数)
info._player.hand_left_count = 14 - 3 * #info._player.fz_list
info:UpdateHandCardWitness(true)
-- self:__CloseTip()
end
local majiang_asset_path = "base/main_majiang/sound/" local majiang_asset_path = "base/main_majiang/sound/"
function M:PlayMJSound(path) function M:PlayMJSound(path)
ViewUtil.PlaySound(self.asset_group, majiang_asset_path .. path) ViewUtil.PlaySound(self.asset_group, majiang_asset_path .. path)

View File

@ -208,9 +208,9 @@ function M:LoadConfigToDetail(data, hpdata)
configData.jiangma and string.format("奖%d", configData.jiangma * 2) or "不奖", configData.jiangma and string.format("奖%d", configData.jiangma * 2) or "不奖",
configData.shaozhuang == 1 and ",有烧庄" or "", configData.shaozhuang == 1 and ",有烧庄" or "",
configData.zuoma == 0 and ",庄家坐马" or "", configData.zuoma == 0 and ",庄家坐马" or "",
configData.zimo == 0 and ",可点炮,可自摸" or ",只能自摸", configData.zimo == 0 and ",可点炮,可自摸" or ",必须自摸",
configData.tuoguan and string.format(",%d秒后自动托管", configData.tuoguan_active_time) or ",不能托管", configData.tuoguan and string.format(",%d秒后自动托管", configData.tuoguan_active_time) or ",不能托管",
configData.jiahu == 0 and ",可以假胡" or "", configData.fengding and ",封顶20炮" or "", configData.jiahu == 0 and ",可以假胡" or "", configData.fengding == 0 and ",封顶20炮" or "",
configData.zhuanwan == 0 and "大转弯" or "小转弯") configData.zhuanwan == 0 and "大转弯" or "小转弯")
if configData.GPSDetection then if configData.GPSDetection then

View File

@ -263,9 +263,9 @@ function M:EventInit()
info:UpdateHandCard() info:UpdateHandCard()
local outcard = UIPackage.CreateObjectFromURL(_gcm_outcard_url) local outcard = UIPackage.CreateObjectFromURL(_gcm_outcard_url)
info:UpdateOutCardList(outcard, card, self._cursor) info:UpdateOutCardList(outcard, card, self._cursor)
self:PlayMJSound("chupai.mp3") self:PlayMJSound("chupai.mp3")
self:PlaySound("NanCheng_MJ", p.self_user.sex, tostring(card)) self:PlaySound("NanCheng_MJ", p.self_user.sex, tostring(card))
if seat == _room.self_player.seat then if seat == _room.self_player.seat then
_room.curren_outcard_seat = -1 _room.curren_outcard_seat = -1
end end
@ -893,13 +893,13 @@ function M:ReloadRoom(bskip)
-- self._room._reload_flag = true -- self._room._reload_flag = true
-- end -- end
local flag_action = 0
if bskip == nil or bskip == false then if bskip == nil or bskip == false then
if not room.playing then if not room.playing then
self._state.selectedIndex = 2 self._state.selectedIndex = 2
self._ctr_action.selectedIndex = 1 self._ctr_action.selectedIndex = 1
else else
self._state.selectedIndex = 1 self._state.selectedIndex = 1
self._ctr_action.selectedIndex = 0
self._room._reload_flag = true self._room._reload_flag = true
end end
end end
@ -923,7 +923,6 @@ function M:ReloadRoom(bskip)
head_info._view:GetController('text_color').selectedIndex = 1 head_info._view:GetController('text_color').selectedIndex = 1
head_info._view:GetChild('text_jifen').text = num --d2ad(num) head_info._view:GetChild('text_jifen').text = num --d2ad(num)
end end
if p.seat == room.last_outcard_seat then if p.seat == room.last_outcard_seat then
local card = p.outcard_list[#p.outcard_list] local card = p.outcard_list[#p.outcard_list]
info:UpdateOutCardList(nil, card, self._cursor) info:UpdateOutCardList(nil, card, self._cursor)
@ -936,12 +935,16 @@ function M:ReloadRoom(bskip)
if p.seat == room.banker_seat then if p.seat == room.banker_seat then
head_info:MarkBank(true) head_info:MarkBank(true)
end end
-- if p.ready then -- if p.ready then
-- self._player_info[self:GetPos(p.seat)]:Ready(true) -- self._player_info[self:GetPos(p.seat)]:Ready(true)
-- end -- end
if bskip == nil or bskip == false then if bskip == nil or bskip == false then
if p.ready and room.playing == false then if p.ready and room.playing == false then
self._player_info[self:GetPos(p.seat)]:Ready(true) self._player_info[self:GetPos(p.seat)]:Ready(true)
if room.self_player.seat == p.seat then
self._ctr_action.selectedIndex = 0
end
end end
end end
if p.piao_niao ~= nil and p.piao_niao > 0 then if p.piao_niao ~= nil and p.piao_niao > 0 then

View File

@ -215,7 +215,7 @@ function M:InitView(url, use_custom_bg, custom_bg_config)
self:InitXiPai() self:InitXiPai()
self:InitXiPai1() self:InitXiPai1()
self.btn_setting.onClick:Set(handler(self,self.ClickSetting)) self.btn_setting.onClick:Set(handler(self, self.ClickSetting))
end end
function M:ClickSetting() function M:ClickSetting()
@ -723,7 +723,7 @@ function M:OnResult1(...)
-- end -- end
-- self:RemoveCursor() -- self:RemoveCursor()
self._clearingView = self.EXClearingViewClass.new(self._root_view) self._clearingView = self.EXClearingViewClass.new(self._root_view)
self._clearingView._view:GetChild('btn_setting').onClick:Set(handler(self,self.ClickSetting)) self._clearingView._view:GetChild('btn_setting').onClick:Set(handler(self, self.ClickSetting))
coroutine.start(function() coroutine.start(function()
coroutine.wait(0.5) coroutine.wait(0.5)
self._clearingView:Show() self._clearingView:Show()
@ -880,6 +880,52 @@ function M:OnHuCard(...)
end) end)
end end
function M:OnFangziAction(...)
self:__CloseTip()
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
local loader_HuEffect = info._viewClip_Peng_Gang
local effects = ""
if fz.type == FZType.Peng then
effects = "clip_peng"
elseif fz.type == FZType.Chi then
else
effects = "clip_gang"
end
local clip = UIPackage.CreateObjectFromURL(string.format("ui://Main_Majiang/%s", effects))
clip:SetSize(loader_HuEffect.width, loader_HuEffect.height)
loader_HuEffect:AddChild(clip)
clip:SetPlaySettings(0, -1, 1, -1)
clip.onPlayEnd:Add(function()
if clip.parent then
clip.parent:RemoveChild(clip)
end
clip:Dispose()
end)
clip.playing = true
coroutine.start(function()
coroutine.wait(0.3)
self._popEvent = true
end)
self:RemoveCursor()
if (player.seat ~= fz.from_seat) then
local fs_info = _player_card_info[self:GetPos(fz.from_seat)]
fs_info:UpdateOutCardList()
end
local seat = (self._room.room_config.people_num == 2 and fz.from_seat == 2) and 2 or fz.from_seat - 1
info:UpdateFzList(fz, index, true, seat)
local getcard = fz.type == FZType.Peng or fz.type == FZType.Chi
printlog(getcard)
info:UpdateHandCard(getcard)
self:__CloseTip()
end
function M:ShowJing() function M:ShowJing()
if self._room.jing then if self._room.jing then
self.jing.visible = true self.jing.visible = true

View File

@ -57,6 +57,7 @@ function M:init()
self._viewList_HuEffect = self._view:GetChild("list_HuEffect") self._viewList_HuEffect = self._view:GetChild("list_HuEffect")
self._viewLoader_selfHuCardEffect = self._view:GetChild("loader_selfHuCardEffect") self._viewLoader_selfHuCardEffect = self._view:GetChild("loader_selfHuCardEffect")
self._viewClip_effect_ZiMo = self._view:GetChild("effect_ZiMo") self._viewClip_effect_ZiMo = self._view:GetChild("effect_ZiMo")
self._viewClip_Peng_Gang = self._view:GetChild("area_clip_pg")
self._view_getCard = self._view:GetChild('Btn_HandCard') self._view_getCard = self._view:GetChild('Btn_HandCard')
self._ctr_getCard = self._view:GetController('getCard') self._ctr_getCard = self._view:GetController('getCard')
@ -503,7 +504,7 @@ function M:ShowHand(cards)
if self._viewText_cardInfo['show_columnGap'] and list.columnGap ~= tonumber(self._viewText_cardInfo['show_columnGap']) then if self._viewText_cardInfo['show_columnGap'] and list.columnGap ~= tonumber(self._viewText_cardInfo['show_columnGap']) then
list.columnGap = tonumber(self._viewText_cardInfo['show_columnGap']) list.columnGap = tonumber(self._viewText_cardInfo['show_columnGap'])
end end
list:RemoveChildren() list:RemoveChildren(0, -1, true)
--list:RemoveChildren() --list:RemoveChildren()
local passcard = false local passcard = false
for _, card in pairs(cards) do for _, card in pairs(cards) do

View File

@ -85,6 +85,7 @@ function M:UpdateHandCard(getcard, mp)
else else
btn_card = self._view_handCardList:AddItemFromPool() btn_card = self._view_handCardList:AddItemFromPool()
end end
-- btn_card.sound = "ui://Main_Majiang/click"
self:FillHandCard(i, btn_card, tem_card, true) self:FillHandCard(i, btn_card, tem_card, true)
-- btn_card.onClick:Set(handler(self, self.__OnClickHandCard)) -- btn_card.onClick:Set(handler(self, self.__OnClickHandCard))
end end
@ -145,7 +146,7 @@ function M:onTouchMove(context)
local cardWidth = button.width; local cardWidth = button.width;
local grap = self._view_handCardList.columnGap local grap = self._view_handCardList.columnGap
local chooseIndex = math.floor(touchPos.x / (cardWidth + grap)) local chooseIndex = math.floor(touchPos.x / (cardWidth + grap))
if self._last_chooseIndex ~= chooseIndex then if self._last_chooseIndex ~= chooseIndex and self._view_handCardList.selectedIndex ~= chooseIndex then
self._last_chooseIndex = chooseIndex self._last_chooseIndex = chooseIndex
self._mainView:PlayMJSound("clickCard.mp3") self._mainView:PlayMJSound("clickCard.mp3")
end end

View File

@ -131,10 +131,10 @@ function M:init(url)
self.btn_cancelRoom.onClick:Set(function() self.btn_cancelRoom.onClick:Set(function()
if self._mainView.dismiss_room_cd_time > 0 then -- if self._mainView.dismiss_room_cd_time > 0 then
ViewUtil.ErrorTip(nil, "您还处于解散冷却时间当中,请稍后重试!") -- ViewUtil.ErrorTip(nil, "您还处于解散冷却时间当中,请稍后重试!")
return -- return
end -- end
local _gamectr = ControllerManager.GetController(GameController) local _gamectr = ControllerManager.GetController(GameController)
_gamectr:AskDismissRoom() _gamectr:AskDismissRoom()

View File

@ -50,7 +50,7 @@ function M:InitView()
TableBG.LoadTableBG(default_bg, self._room.game_id, self._root_view, bg_config) TableBG.LoadTableBG(default_bg, self._room.game_id, self._root_view, bg_config)
self.btn_setting = self._view:GetChild("btn_setting") self.btn_setting = self._view:GetChild("btn_setting")
self.btn_setting.onClick:Set(handler(self,self.ClickSetting)) self.btn_setting.onClick:Set(handler(self, self.ClickSetting))
end end
function M:ClickSetting() function M:ClickSetting()
@ -83,21 +83,32 @@ function M:EventInit()
if self._clearingView then if self._clearingView then
self._clearingView:Destroy() self._clearingView:Destroy()
self._clearingView = nil self._clearingView = nil
local list = _room.player_list
for i = 1, #list do
local p = list[i]
local info = self._player_info[self:GetPos(p.seat)]
info:MarkBank(p.seat == _room.banker_seat)
info:Ready(false)
local card_info = self._player_card_info[self:GetPos(p.seat)]
card_info:Clear()
card_info:UpdateHandCardWitness()
end
else
local list = _room.player_list
for i = 1, #list do
local p = list[i]
local info = self._player_info[self:GetPos(p.seat)]
info:FillData(p)
info:MarkBank(p.seat == _room.banker_seat)
info:Ready(false)
local card_info = self._player_card_info[self:GetPos(p.seat)]
card_info:Clear()
card_info:UpdateHandCardWitness()
end
end end
self:UpdateRound() self:UpdateRound()
self:RemoveCursor() self:RemoveCursor()
self._state.selectedIndex = 4 self._state.selectedIndex = 4
local list = _room.player_list
for i = 1, #list do
local p = list[i]
local info = self._player_info[self:GetPos(p.seat)]
info:FillData(p)
info:MarkBank(p.seat == _room.banker_seat)
info:Ready(false)
local card_info = self._player_card_info[self:GetPos(p.seat)]
card_info:Clear()
card_info:UpdateHandCardWitness()
end
end) end)
_gamectr:AddEventListener(TX_GameEvent.EventTurn, function(...) _gamectr:AddEventListener(TX_GameEvent.EventTurn, function(...)
@ -130,6 +141,65 @@ function M:EventInit()
_room.curren_outcard_seat = -1 _room.curren_outcard_seat = -1
end end
end) end)
_gamectr:AddEventListener(TX_GameEvent.FangziAction, handler(self, self.OnFangziAction))
end
function M:OnFangziAction(...)
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
-- local pNode = info._mask_liangpai
local arg = { ... }
local _player_card_info = self._player_card_info
local fz = arg[1]
local player = arg[2]
local index = arg[3]
local info = _player_card_info[self:GetPos(player.seat)]
local loader_HuEffect = info._viewClip_Peng_Gang
local effects = ""
if fz.type == FZType.Peng then
effects = "clip_peng"
elseif fz.type == FZType.Chi then
else
effects = "clip_gang"
end
local clip = UIPackage.CreateObjectFromURL(string.format("ui://Main_Majiang/%s", effects))
clip:SetSize(loader_HuEffect.width, loader_HuEffect.height)
loader_HuEffect:AddChild(clip)
clip:SetPlaySettings(0, -1, 1, -1)
clip.onPlayEnd:Add(function()
if clip.parent then
clip.parent:RemoveChild(clip)
end
clip:Dispose()
end)
clip.playing = true
coroutine.start(function()
coroutine.wait(2)
effect:Dispose()
end)
self:RemoveCursor()
if (player.seat ~= fz.from_seat) then
local fs_info = _player_card_info[self:GetPos(fz.from_seat)]
fs_info:UpdateOutCardList()
end
local seat = (self._room.room_config.people_num == 2 and fz.from_seat == 2) and 2 or fz.from_seat - 1
info:UpdateFzList(fz, index, true, seat)
--因为观战没有手牌,等预处理完扣牌数之后矫正一次(最粗暴的修正方式手牌数等于13-3*吃碰数)
info._player.hand_left_count = 14 - 3 * #info._player.fz_list
info:UpdateHandCardWitness(true)
-- self:__CloseTip()
end end
return M return M

View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="800,78"> <component size="800,78" extention="Button">
<displayList> <displayList>
<image id="n3_ofwa" name="n3" src="ofwa7d6n" fileName="Main/Image/hall_club_BG_landifang.png" xy="0,0" size="800,78"> <image id="n3_ofwa" name="n3" src="ofwa7d6n" fileName="Main/Image/hall_club_BG_landifang.png" xy="0,0" size="800,78">
<relation target="" sidePair="width-width,height-height"/> <relation target="" sidePair="width-width,height-height"/>
</image> </image>
<text id="n2_slrk" name="n2" xy="258,10" size="283,65" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#ffffff" align="center" vAlign="middle" autoSize="none" text="用户用户用户用户"> <text id="n2_slrk" name="title" xy="258,10" size="283,65" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#ffffff" align="center" vAlign="middle" autoSize="none" text="用户用户用户用户">
<relation target="" sidePair="center-center,middle-middle"/> <relation target="" sidePair="center-center,middle-middle"/>
</text> </text>
</displayList> </displayList>
<Button/>
</component> </component>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" opaque="false" designImageLayer="1" bgColor="#000000"> <component size="2532,1170" opaque="false" designImageLayer="1" bgColor="#000000">
<controller name="over" pages="0,,1," selected="0"/> <controller name="over" pages="0,,1," selected="0"/>
<controller name="main" pages="0,,1," selected="0"/> <controller name="main" pages="0,,1," selected="1"/>
<controller name="playerNum" alias="玩家数量" pages="0,两人,1,三人,2,四人" selected="0"/> <controller name="playerNum" alias="玩家数量" pages="0,两人,1,三人,2,四人" selected="0"/>
<controller name="showType" pages="0,,1," selected="0"/> <controller name="showType" pages="0,,1," selected="0"/>
<displayList> <displayList>
@ -151,7 +151,7 @@
<gearDisplay controller="main" pages="1"/> <gearDisplay controller="main" pages="1"/>
</group> </group>
<component id="n156_l02z" name="btn_setting" src="t6zvw5" fileName="Main_new/Main/Component/btn_setting.xml" xy="2193,20" size="141,117"> <component id="n156_l02z" name="btn_setting" src="t6zvw5" fileName="Main_new/Main/Component/btn_setting.xml" xy="2193,20" size="141,117">
<Button controller="main" page="0"/> <gearDisplay controller="main" pages="0"/>
</component> </component>
</displayList> </displayList>
</component> </component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -108,5 +108,8 @@
<movieclip id="n69_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="2052,584" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false"> <movieclip id="n69_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="2052,584" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false">
<relation target="n68_jzul" sidePair="center-center,middle-middle"/> <relation target="n68_jzul" sidePair="center-center,middle-middle"/>
</movieclip> </movieclip>
<component id="n71_r8cy" name="area_clip_pg" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="1884,439" pivot="0.5,0.5" size="336,290" touchable="false">
<relation target="" sidePair="width-width%,height-height%"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -92,5 +92,8 @@
<movieclip id="n56_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,243" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false"> <movieclip id="n56_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,243" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false">
<relation target="n55_jzul" sidePair="center-center,middle-middle"/> <relation target="n55_jzul" sidePair="center-center,middle-middle"/>
</movieclip> </movieclip>
<component id="n57_r8cy" name="area_clip_pg" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="1098,98" pivot="0.5,0.5" size="336,290" touchable="false">
<relation target="" sidePair="width-width%,height-height%"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -87,12 +87,15 @@
<component id="n50_ogwn" name="area_handcard_list" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-3616,-1525" pivot="0.5,0.5" size="2124,249" aspect="true"> <component id="n50_ogwn" name="area_handcard_list" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-3616,-1525" pivot="0.5,0.5" size="2124,249" aspect="true">
<relation target="n51_ogwn" sidePair="leftext-right"/> <relation target="n51_ogwn" sidePair="leftext-right"/>
</component> </component>
<loader id="n59_jzul" name="loader_selfHuCardEffect" xy="1266,778" pivot="0.5,0.5" anchor="true" size="280,200" align="center" vAlign="middle" fill="scale"> <loader id="n59_jzul" name="loader_selfHuCardEffect" xy="1126,678" pivot="0.5,0.5" size="280,200" url="ui://v0j9abjyr8cy1jy" align="center" vAlign="middle" fill="scale" clearOnPublish="true">
<relation target="" sidePair="left-center,right-center,bottom-bottom"/> <relation target="" sidePair="left-center,right-center,bottom-bottom"/>
</loader> </loader>
<movieclip id="n60_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,778" pivot="0.5,0.5" anchor="true" size="530,383" aspect="true" visible="false" playing="false"> <movieclip id="n60_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,778" pivot="0.5,0.5" anchor="true" size="530,383" aspect="true" visible="false" playing="false">
<relation target="n59_jzul" sidePair="center-center,middle-middle"/> <relation target="n59_jzul" sidePair="center-center,middle-middle"/>
</movieclip> </movieclip>
<component id="n61_r8cy" name="area_clip_pg" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="1098,617" pivot="0.5,0.5" size="336,290" touchable="false">
<relation target="" sidePair="width-width%,height-height%"/>
</component>
<list id="n58_jzul" name="list_HuEffect" xy="0,568" size="2532,420" layout="row" overflow="scroll" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="false" align="center" vAlign="middle" autoClearItems="true"> <list id="n58_jzul" name="list_HuEffect" xy="0,568" size="2532,420" layout="row" overflow="scroll" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="false" align="center" vAlign="middle" autoClearItems="true">
<relation target="" sidePair="width-width,height-height,bottom-bottom"/> <relation target="" sidePair="width-width,height-height,bottom-bottom"/>
<item/> <item/>

View File

@ -49,14 +49,14 @@
<item/> <item/>
<item/> <item/>
</list> </list>
<list id="n55_j6yy" name="Btn_HandCard" xy="292,833" size="67,116" touchable="false" overflow="scroll" defaultItem="ui://v0j9abjygi9910w" autoClearItems="true"> <list id="n55_j6yy" name="Btn_HandCard" xy="277,833" size="67,116" touchable="false" overflow="scroll" defaultItem="ui://v0j9abjygi9910w" autoClearItems="true">
<gearDisplay controller="getCard" pages="1"/> <gearDisplay controller="getCard" pages="1"/>
<item/> <item/>
</list> </list>
<list id="n57_j6yy" name="Btn_HandCard2" xy="290,886" size="98,77" touchable="false" selectionMode="none" defaultItem="ui://v0j9abjylj2n19d" autoItemSize="false" align="center" vAlign="middle" autoClearItems="true" scrollItemToViewOnClick="false"> <list id="n57_j6yy" name="Btn_HandCard2" xy="290,886" size="98,77" touchable="false" selectionMode="none" defaultItem="ui://v0j9abjylj2n19d" autoItemSize="false" align="center" vAlign="middle" autoClearItems="true" scrollItemToViewOnClick="false">
<item/> <item/>
</list> </list>
<list id="n56_j6yy" name="List_HandCard2" xy="289,118" size="101,761" touchable="false" selectionMode="none" lineGap="-26" defaultItem="ui://v0j9abjylj2n19d" autoItemSize="false" align="center" vAlign="bottom" autoClearItems="true"> <list id="n56_j6yy" name="List_HandCard2" xy="289,118" size="101,761" touchable="false" selectionMode="none" lineGap="-26" defaultItem="ui://v0j9abjylj2n19d" autoItemSize="false" align="center" vAlign="bottom" renderOrder="descent" autoClearItems="true">
<item/> <item/>
<item/> <item/>
<item/> <item/>
@ -88,8 +88,11 @@
<item/> <item/>
</list> </list>
<loader id="n67_jzul" name="loader_selfHuCardEffect" xy="511,584" pivot="0.5,0.5" anchor="true" size="280,220" align="center" vAlign="middle"/> <loader id="n67_jzul" name="loader_selfHuCardEffect" xy="511,584" pivot="0.5,0.5" anchor="true" size="280,220" align="center" vAlign="middle"/>
<movieclip id="n68_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="511,584" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false"> <movieclip id="n68_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="511,583" pivot="0.5,0.5" anchor="true" size="530,353" aspect="true" visible="false" playing="false">
<relation target="n67_jzul" sidePair="center-center,middle-middle"/> <relation target="n67_jzul" sidePair="center-center,middle-middle"/>
</movieclip> </movieclip>
<component id="n69_r8cy" name="area_clip_pg" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="343,439" pivot="0.5,0.5" size="336,290" touchable="false">
<relation target="" sidePair="width-width%,height-height%"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -33,5 +33,5 @@
<relation target="n3_hp0b" sidePair="top-top"/> <relation target="n3_hp0b" sidePair="top-top"/>
</image> </image>
</displayList> </displayList>
<Button mode="Check"/> <Button mode="Check" sound="ui://v0j9abjyr8cy1k6" volume="0"/>
</component> </component>

View File

@ -2,7 +2,7 @@
<component size="100,83"> <component size="100,83">
<controller name="jing" pages="0,,1," selected="0"/> <controller name="jing" pages="0,,1," selected="0"/>
<displayList> <displayList>
<loader id="n0_gi99" name="icon" xy="0,0" pivot="0.5,0.5" size="100,83" skew="0,180" url="ui://v0j9abjylj2n18d" fill="scaleFree"> <loader id="n0_gi99" name="icon" xy="0,0" pivot="0.5,0.5" size="100,83" skew="180,180" url="ui://v0j9abjylj2n18d" fill="scaleFree">
<relation target="" sidePair="width-width,height-height"/> <relation target="" sidePair="width-width,height-height"/>
</loader> </loader>
<image id="n1_l02z" name="jing" src="ofwa1gm" fileName="Main_new/Main/Image/jing.png" xy="52,-2" size="43,63" aspect="true" flip="vt"> <image id="n1_l02z" name="jing" src="ofwa1gm" fileName="Main_new/Main/Image/jing.png" xy="52,-2" size="43,63" aspect="true" flip="vt">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" designImage="ui://v0j9abjyj6yy1fw" designImageAlpha="0"> <component size="2532,1170" designImage="ui://v0j9abjyj6yy1fw" designImageAlpha="0">
<controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,5,观战状态" selected="0"/> <controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,5,观战状态" selected="4"/>
<controller name="sdk" pages="0,,1," selected="0"/> <controller name="sdk" pages="0,,1," selected="0"/>
<controller name="action" pages="2,空,0,准备,1,开始" selected="0"/> <controller name="action" pages="2,空,0,准备,1,开始" selected="0"/>
<controller name="3d" pages="0,,1," selected="0"/> <controller name="3d" pages="0,,1," selected="0"/>
@ -245,12 +245,12 @@
<group id="n348_ogwn" name="showNext" xy="-125,-102" size="2832,1436" advanced="true"> <group id="n348_ogwn" name="showNext" xy="-125,-102" size="2832,1436" advanced="true">
<gearDisplay controller="showNext" pages="1"/> <gearDisplay controller="showNext" pages="1"/>
</group> </group>
<graph id="n378_l9ll" name="n378" xy="884,1030" size="760,92" type="rect" lineSize="0" fillColor="#4c000000"> <graph id="n378_l9ll" name="n378" xy="885,1030" size="760,92" type="rect" lineSize="0" fillColor="#4c000000">
<gearDisplay controller="state" pages="4"/> <gearDisplay controller="state" pages="5"/>
<relation target="" sidePair="center-center,bottom-bottom"/> <relation target="" sidePair="center-center,bottom-bottom"/>
</graph> </graph>
<text id="n379_l9ll" name="n379" xy="1101,1035" size="326,82" font="FZCuYuan-M03" fontSize="62" color="#ffffff" letterSpacing="3" text="正在旁观中"> <text id="n379_l9ll" name="n379" xy="1101,1035" size="326,82" font="FZCuYuan-M03" fontSize="62" color="#ffffff" letterSpacing="3" text="正在旁观中">
<gearDisplay controller="state" pages="4"/> <gearDisplay controller="state" pages="5"/>
<relation target="" sidePair="center-center,bottom-bottom"/> <relation target="" sidePair="center-center,bottom-bottom"/>
</text> </text>
<component id="n351_ogwn" name="n351" src="sx7x14f" fileName="Main_new/Main/Component/btn_bg.xml" xy="0,0" size="2532,1170"> <component id="n351_ogwn" name="n351" src="sx7x14f" fileName="Main_new/Main/Component/btn_bg.xml" xy="0,0" size="2532,1170">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1137,7 +1137,7 @@
<image id="whhc1fl" name="tile_cs_baguiyi.png" path="/Main_new/Image/HuCardEffect/" exported="true"/> <image id="whhc1fl" name="tile_cs_baguiyi.png" path="/Main_new/Image/HuCardEffect/" exported="true"/>
<image id="whhc1fm" name="tile_cs_qidui_haohua.png" path="/Main_new/Image/HuCardEffect/" exported="true"/> <image id="whhc1fm" name="tile_cs_qidui_haohua.png" path="/Main_new/Image/HuCardEffect/" exported="true"/>
<image id="whhc1fn" name="tile_zimo.png" path="/Main_new/Image/HuCardEffect/" exported="true"/> <image id="whhc1fn" name="tile_zimo.png" path="/Main_new/Image/HuCardEffect/" exported="true"/>
<movieclip id="whhc1fo" name="Effect_ZiMo.jta" path="/Main_new/Main/" atlas="alone"/> <movieclip id="whhc1fo" name="Effect_ZiMo.jta" path="/Main_new/Main/" exported="true" atlas="alone"/>
<image id="j6yy1fr" name="e64501792ed1d68d0c12c5668437a69 1.png" path="/Main_new/Image/"/> <image id="j6yy1fr" name="e64501792ed1d68d0c12c5668437a69 1.png" path="/Main_new/Image/"/>
<image id="j6yy1fs" name="Screenshot_20250412-160003.png" path="/Main_new/Image/"/> <image id="j6yy1fs" name="Screenshot_20250412-160003.png" path="/Main_new/Image/"/>
<image id="j6yy1ft" name="de87786dd190bbd4d4c7dbfff2484d89_720 1.png" path="/Main_new/Image/"/> <image id="j6yy1ft" name="de87786dd190bbd4d4c7dbfff2484d89_720 1.png" path="/Main_new/Image/"/>
@ -1269,6 +1269,19 @@
<image id="66fw1jo" name="图层 1.png" path="/Main_new/Main/Image/hudong/voice/"/> <image id="66fw1jo" name="图层 1.png" path="/Main_new/Main/Image/hudong/voice/"/>
<image id="66fw1jp" name="图层 2.png" path="/Main_new/Main/Image/hudong/voice/"/> <image id="66fw1jp" name="图层 2.png" path="/Main_new/Main/Image/hudong/voice/"/>
<image id="66fw1jq" name="图层 3.png" path="/Main_new/Main/Image/hudong/voice/"/> <image id="66fw1jq" name="图层 3.png" path="/Main_new/Main/Image/hudong/voice/"/>
<image id="r8cy1jr" name="peng_ani_01.png" path="/Main_new/Main/Image/peng/"/>
<image id="r8cy1js" name="peng_ani_02.png" path="/Main_new/Main/Image/peng/"/>
<image id="r8cy1jt" name="peng_ani_03.png" path="/Main_new/Main/Image/peng/"/>
<image id="r8cy1ju" name="peng_ani_04.png" path="/Main_new/Main/Image/peng/"/>
<image id="r8cy1jv" name="peng_ani_05.png" path="/Main_new/Main/Image/peng/"/>
<movieclip id="r8cy1jy" name="clip_peng.jta" path="/Main_new/Main/Image/peng/" exported="true" atlas="1"/>
<image id="r8cy1jz" name="chi_ani_00.png" path="/Main_new/Main/Image/gang/"/>
<image id="r8cy1k0" name="chi_ani_01.png" path="/Main_new/Main/Image/gang/"/>
<image id="r8cy1k1" name="chi_ani_02.png" path="/Main_new/Main/Image/gang/"/>
<image id="r8cy1k2" name="chi_ani_04.png" path="/Main_new/Main/Image/gang/"/>
<image id="r8cy1k3" name="chi_ani_05.png" path="/Main_new/Main/Image/gang/"/>
<movieclip id="r8cy1k5" name="clip_gang.jta" path="/Main_new/Main/Image/gang/" exported="true" atlas="1"/>
<sound id="r8cy1k6" name="click.mp3" path="/Main_new/Image/" exported="true"/>
</resources> </resources>
<publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/> <publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/>
</packageDescription> </packageDescription>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 357 KiB

View File

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: baf4390005ea1484faee99cb1d3f3d98
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -24,6 +24,7 @@ public class VerCheck : MonoBehaviour
// Use this for initialization // Use this for initialization
void Start() void Start()
{ {
GameApplication.Instance.isAndroid64bit = IsAndroid64bit(); GameApplication.Instance.isAndroid64bit = IsAndroid64bit();
CreateVersionView(); CreateVersionView();
StartCoroutine(CheckNet()); StartCoroutine(CheckNet());

View File

@ -8,34 +8,34 @@
"bundle": "extend/poker/runfast" "bundle": "extend/poker/runfast"
}, },
{ {
"ver": "1.0.41", "ver": "1.0.42",
"name": "南城麻将", "name": "南城麻将",
"check": true, "check": true,
"version": "1.0.41", "version": "1.0.42",
"game_id": "86", "game_id": "86",
"bundle": "extend/majiang/nancheng" "bundle": "extend/majiang/nancheng"
}, },
{ {
"ver": "1.0.44", "ver": "1.0.45",
"name": "黎川麻将", "name": "黎川麻将",
"check": true, "check": true,
"version": "1.0.44", "version": "1.0.45",
"game_id": "87", "game_id": "87",
"bundle": "extend/majiang/lichuan" "bundle": "extend/majiang/lichuan"
}, },
{ {
"ver": "1.0.28", "ver": "1.0.29",
"name": "金溪麻将", "name": "金溪麻将",
"check": true, "check": true,
"version": "1.0.28", "version": "1.0.29",
"game_id": "88", "game_id": "88",
"bundle": "extend/majiang/jinxi" "bundle": "extend/majiang/jinxi"
}, },
{ {
"ver": "1.0.27", "ver": "1.0.28",
"name": "抚州麻将", "name": "抚州麻将",
"check": true, "check": true,
"version": "1.0.27", "version": "1.0.28",
"game_id": "89", "game_id": "89",
"bundle": "extend/majiang/fuzhou" "bundle": "extend/majiang/fuzhou"
} }

View File

@ -1,109 +1,109 @@
[ [
{ {
"lua_path": "/tolua_project,/base_project,/main_project", "lua_path": "/tolua_project,/base_project,/main_project",
"ver": "1.0.8", "ver": "1.0.7",
"name": "base_script", "name": "base_script",
"check": true, "check": true,
"bundle": "base/base_script", "bundle": "base/base_script",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "common", "name": "common",
"check": true, "check": true,
"bundle": "base/common", "bundle": "base/common",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "login", "name": "login",
"check": true, "check": true,
"bundle": "base/login", "bundle": "base/login",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "lobby", "name": "lobby",
"check": true, "check": true,
"bundle": "base/lobby", "bundle": "base/lobby",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "Family", "name": "Family",
"check": true, "check": true,
"bundle": "base/Family", "bundle": "base/Family",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "chat", "name": "chat",
"check": true, "check": true,
"bundle": "base/chat", "bundle": "base/chat",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "newgroup", "name": "newgroup",
"check": true, "check": true,
"bundle": "base/newgroup", "bundle": "base/newgroup",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "rank", "name": "rank",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/rank" "bundle": "base/rank"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "main_majiang", "name": "main_majiang",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/main_majiang" "bundle": "base/main_majiang"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "main_poker", "name": "main_poker",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/main_poker" "bundle": "base/main_poker"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "main_zipai", "name": "main_zipai",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/main_zipai" "bundle": "base/main_zipai"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "static", "name": "static",
"check": true, "check": true,
"bundle": "base/static", "bundle": "base/static",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"is_res": true, "is_res": true,
"name": "embed", "name": "embed",
"check": true, "check": true,
"bundle": "base/embed", "bundle": "base/embed",
"version": "1.0.8" "version": "1.0.7"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "main_pokemajiang", "name": "main_pokemajiang",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/main_pokemajiang" "bundle": "base/main_pokemajiang"
}, },
{ {
"ver": "1.0.8", "ver": "1.0.7",
"name": "main_zipaimajiang", "name": "main_zipaimajiang",
"check": true, "check": true,
"version": "1.0.8", "version": "1.0.7",
"bundle": "base/main_zipaimajiang" "bundle": "base/main_zipaimajiang"
} }
] ]