0919基本完成,调通大厅创建房间

master
罗家炜 2025-09-19 16:34:16 +08:00
parent 823b757ea0
commit 269d1bd01d
113 changed files with 818 additions and 663 deletions

View File

@ -530,7 +530,12 @@ end
function M:PopEvent() function M:PopEvent()
local _cacheEvent = self._cacheEvent local _cacheEvent = self._cacheEvent
if (_cacheEvent:Count() > 0) then if (_cacheEvent:Count() > 0) then
return _cacheEvent:Dequeue() local rawFunc = _cacheEvent:Dequeue()
return function(...)
return xpcall(rawFunc, function(e)
return debug.traceback("Lua Error: " .. tostring(e), 2)
end, ...)
end
end end
end end

View File

@ -72,16 +72,29 @@ function M:SetDefault()
end end
function M:LoadConfigToDetail(data) function M:LoadConfigToDetail(configData, hpData)
local returnString = ""
local returnString = '' if configData.GPSDetection then
returnString = string.format("%s%s", returnString,
local configData = data configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
if type(data) == 'string' then end
configData = json.decode(data) if configData.tuoguan_active_time then
returnString = string.format("%s%s", returnString,
configData.tuoguan_active_time == 0 and ",不自动托管" or string.format(",%s秒托管", configData.tuoguan_active_time))
end
if hpData then
if hpData.JieShan then
returnString = string.format("%s%s", returnString,
hpData.JieShan == 1 and ",托管结束后不解散" or
string.format(",托管%s结束后强制解散", hpData.JieShan == 2 and "当局" or string.format("%s局", hpData.JieShan - 1)))
end
if hpData.BanChat then
returnString = string.format("%s%s", returnString, hpData.BanChat == 1 and ",不允许快捷聊天" or "")
end
if hpData.BanMissile then
returnString = string.format("%s%s", returnString, hpData.BanMissile == 1 and ",关闭互动表情" or "")
end
end end
pt(configData)
return returnString return returnString
end end

View File

@ -75,7 +75,6 @@ end
function M:_evtDelPlay(...) function M:_evtDelPlay(...)
local arg = { ... } local arg = { ... }
print("family event _evtDelPlay")
local view = ViewManager.GetCurrenView() local view = ViewManager.GetCurrenView()
if view.class ~= "FamilyMainView" then if view.class ~= "FamilyMainView" then

View File

@ -12,25 +12,25 @@ local function charge(num, self)
local _curren_msg = local _curren_msg =
MsgWindow.new( MsgWindow.new(
self._root_view, self._root_view,
'确定要将房卡重置在改亲友圈?', string.format('确定要向该亲友圈里充值%d房卡', num),
MsgWindow.MsgMode.OkAndCancel MsgWindow.MsgMode.OkAndCancel
) )
_curren_msg.onOk:Add( _curren_msg.onOk:Add(
function() function()
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
fgCtr:FG_Recharge_Diamo(self.groupId, num, function(res) fgCtr:FG_Recharge_Diamo(self.groupId, num, function(res)
print("收到充值房卡回调")
pt(res)
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode, "操作失败") ViewUtil.ErrorTip(res.ReturnCode, "重置房卡操作失败")
return return
end end
ViewUtil.ErrorTip(-1, "房卡充值成功")
local groupDiamo = res.Data.groupDiamo local groupDiamo = res.Data.groupDiamo
local playerDiamo = res.Data.userDiamo local playerDiamo = res.Data.userDiamo
self.tex_curCard.text = "当前帐号房卡:" .. playerDiamo self.tex_curCard.text = "当前帐号房卡:" .. playerDiamo
self.tex_famliyCard.text = "亲友圈房卡:" .. groupDiamo self.tex_famliyCard.text = "亲友圈房卡:" .. groupDiamo
self.group.groupDiamo = groupDiamo self.group.groupDiamo = groupDiamo
DataManager.SelfUser.diamo = playerDiamo DataManager.SelfUser.diamo = playerDiamo
self:Destroy()
end) end)
end end
) )
@ -67,7 +67,27 @@ function FamilyRoomCard.New()
obj:GetController("cColor").selectedIndex = data[_idx].colorIndex obj:GetController("cColor").selectedIndex = data[_idx].colorIndex
obj.onClick:Set(function() obj.onClick:Set(function()
if Instance.group and Instance.group ~= 1 then
local _curren_msg =
MsgWindow.new(
Instance._root_view,
"只有管理员可以充值",
MsgWindow.MsgMode.OnlyOk
)
_curren_msg:Show()
return
end
if DataManager.SelfUser.diamo < num then
local _curren_msg =
MsgWindow.new(
Instance._root_view,
"您的房卡不足",
MsgWindow.MsgMode.OnlyOk
)
_curren_msg:Show()
else
charge(num, Instance) charge(num, Instance)
end
end) end)
end end

View File

@ -61,21 +61,20 @@ function PlayEditView:Init()
group:addPlay(play) group:addPlay(play)
-- self:FillView() -- self:FillView()
UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId) UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId)
self:Refalsh(self.groupId) -- self:Refalsh(self.groupId)
printlog("刷新玩法===>>>>") printlog("刷新玩法===>>>>")
group.update_play = true group.update_play = true
end) end)
tem:Show() tem:Show()
end) end)
return else
end
obj:GetChild('text_title').text = playList[index].game_name obj:GetChild('text_title').text = playList[index].game_name
local mode = ExtendManager.GetExtendConfig(playList[index].gameId):GetGameInfo() local mode = ExtendManager.GetExtendConfig(playList[index].gameId):GetGameInfo()
local pId = playList[index].id local pId = playList[index].id
-- times倍数 -- times倍数
local times = json.decode(playList[index].hpData).times local times = json.decode(playList[index].hpData).times
obj:GetChild('Label_details'):GetChild('title').text = times / 1000 .. obj:GetChild('Label_details'):GetChild('title').text = mode:LoadConfigToDetail(playList[index].config,
"倍," .. mode:LoadConfigToDetail(playList[index].config, playList[index].hpData) playList[index].hpData)
obj:GetChild('text_playName').emojies = EmojiDitc.EmojiesDitc obj:GetChild('text_playName').emojies = EmojiDitc.EmojiesDitc
obj:GetChild('text_playName').text = Utils.TextOmit(playList[index].name, 6, "...") obj:GetChild('text_playName').text = Utils.TextOmit(playList[index].name, 6, "...")
obj:GetController('type').selectedIndex = 1 obj:GetController('type').selectedIndex = 1
@ -84,14 +83,12 @@ function PlayEditView:Init()
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
fgCtr:FG_DelPlay(self.groupId, playList[index].id, function(res) fgCtr:FG_DelPlay(self.groupId, playList[index].id, function(res)
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
local msg = Table_Error_code_Map[res.ReturnCode] or {} ViewUtil.ErrorTip(res.ReturnCode, "删除玩法操作失败")
msg = msg.note or "操作失败"
ViewUtil.ShowBannerOnScreenCenter(msg)
return return
end end
UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId) UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId)
self:Refalsh(self.groupId) -- self:Refalsh(self.groupId)
end) end)
end) end)
end) end)
@ -102,7 +99,7 @@ function PlayEditView:Init()
group:addPlay(play) group:addPlay(play)
-- self:FillView() -- self:FillView()
UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId) UpdateFamilyRoom(self) --self:UpdateFamilyRoom(fgCtr, self.groupId)
self:Refalsh(self.groupId) -- self:Refalsh(self.groupId)
printlog("刷新玩法===>>>>") printlog("刷新玩法===>>>>")
group.update_play = true group.update_play = true
end) end)
@ -110,5 +107,10 @@ function PlayEditView:Init()
end) end)
end end
end end
end
function PlayEditView:Destroy()
BaseWindow.Destroy(self)
end
return PlayEditView return PlayEditView

View File

@ -315,8 +315,6 @@ function M:SetIsOpenChatRoom()
if self._group.isOpenChatRoom == 1 then if self._group.isOpenChatRoom == 1 then
mgr_ctr:FG_CLOSE_ISOPEN_CHATROOM(self._group.id, function(res) mgr_ctr:FG_CLOSE_ISOPEN_CHATROOM(self._group.id, function(res)
print("不允许成员可以查看聊天室")
pt(res)
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode) ViewUtil.ErrorTip(res.ReturnCode)
return return
@ -326,8 +324,6 @@ function M:SetIsOpenChatRoom()
end) end)
elseif self._group.isOpenChatRoom == 0 then elseif self._group.isOpenChatRoom == 0 then
mgr_ctr:FG_OPEN_ISOPEN_CHATROOM(self._group.id, function(res) mgr_ctr:FG_OPEN_ISOPEN_CHATROOM(self._group.id, function(res)
print("允许成员可以查看聊天室")
pt(res)
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode) ViewUtil.ErrorTip(res.ReturnCode)
return return
@ -390,10 +386,8 @@ function M:JoinFamily(frist)
end end
function M:PlayEdit() function M:PlayEdit()
--self.familyType.selectedIndex = 2 self._view_PlayEditView = PlayEditView.New()
--self.lastType = 1 self._view_PlayEditView:Show(self._group.id)
local view = PlayEditView.New()
view:Show(self._group.id)
end end
function M:OpenMyFamily(groupId) function M:OpenMyFamily(groupId)
@ -539,7 +533,13 @@ end
function M:EnterGroup(fgCtr, id) function M:EnterGroup(fgCtr, id)
fgCtr:FG_EnterGroup(id, function(res) fgCtr:FG_EnterGroup(id, function(res)
ViewUtil:CloseModalWait() ViewUtil:CloseModalWait()
ViewUtil:CloseModalWait2()
if res.ReturnCode ~= 0 then if res.ReturnCode ~= 0 then
if res.ReturnCode == 101 then
ViewUtil:ShowModalWait2(0.01)
self:EnterGroup(fgCtr, id)
return
end
ViewUtil.ErrorTip(res.ReturnCode, "获取房间列表列表失败") ViewUtil.ErrorTip(res.ReturnCode, "获取房间列表列表失败")
else else
self:OnEnterGroupCallBack() self:OnEnterGroupCallBack()
@ -590,8 +590,6 @@ end
function M:UpdateFamilyRoom(fgCtr, id) function M:UpdateFamilyRoom(fgCtr, id)
local list_room = self._view:GetChild('list_room') local list_room = self._view:GetChild('list_room')
list_room:SetVirtual() list_room:SetVirtual()
--local list_gamePlay = self._view:GetChild('list_gamePlay')
--list_gamePlay:SetVirtual()
local playList = self._group.playList local playList = self._group.playList
local roomList = self._group.rooms local roomList = self._group.rooms
self._view:GetChild('n364').text = string.format("已开启%s桌游戏", #roomList) self._view:GetChild('n364').text = string.format("已开启%s桌游戏", #roomList)
@ -728,6 +726,10 @@ function M:UpdateFamilyRoom(fgCtr, id)
else else
list_room.numItems = all_num list_room.numItems = all_num
end end
--如果在编辑玩法页面则此处调用刷新
if self._view_PlayEditView then
self._view_PlayEditView:Refalsh(self._group.id)
end
end end
--房间渲染 --房间渲染

View File

@ -25,9 +25,9 @@ end
function M:init(url) function M:init(url)
BaseWindow.init(self, url) BaseWindow.init(self, url)
self.gl_view = GameListView.new(self._view, self.selectedIndex, nil, function(mode_data) self.gl_view = GameListView.new(self._view, 1, 1, nil, function(mode_data)
self:OnCreateRoom(mode_data) self:OnCreateRoom(mode_data)
end, true) end, true, { _lobby_create = true })
--self.gl_view.IsHallGame=true --self.gl_view.IsHallGame=true
end end

View File

@ -4,9 +4,8 @@ local GameListView = {}
local M = GameListView local M = GameListView
function GameListView.new(view, index, page, room_config, callback, isHall) function GameListView.new(view, index, page, room_config, callback, isHall, data)
local self = {} local self = {}
pt("lingmeng GameListView", view, index, page, room_config, callback, isHall)
setmetatable(self, { __index = M }) setmetatable(self, { __index = M })
self._view = view self._view = view
self._modeMap = {} self._modeMap = {}
@ -15,6 +14,10 @@ function GameListView.new(view, index, page, room_config, callback, isHall)
self.room_config = room_config self.room_config = room_config
self.IsHallGame = isHall or false self.IsHallGame = isHall or false
self._callback = callback self._callback = callback
if data then
self._data = data
self._lobby_create = data._lobby_create
end
self:init() self:init()
return self return self
end end
@ -30,6 +33,12 @@ function M:init()
end end
end) end)
if self._lobby_create then
self._view:GetChild("Lobby_create").visible = true
else
self._view:GetChild("Lobby_create").visible = false
end
self.tempGame = { {}, {}, {} } self.tempGame = { {}, {}, {} }
local games = DataManager.SelfUser.games local games = DataManager.SelfUser.games
for k, v in ipairs(games) do for k, v in ipairs(games) do

View File

@ -7,25 +7,25 @@ local gamePlayDetail = {
--麻将 --麻将
{ {
{ {
icon0 = "lichuan0", icon0 = "fuzhou0",
icon1 = "lichuan1", icon1 = "fuzhou1",
detail = "lichuanDetail" detail = "fuzhouDetail"
}, },
{ {
icon0 = "jinxi0", icon0 = "jinxi0",
icon1 = "jinxi1", icon1 = "jinxi1",
detail = "jinxiDetail" detail = "jinxiDetail"
}, },
{
icon0 = "fuzhou0",
icon1 = "fuzhou1",
detail = "fuzhouDetail"
},
{ {
icon0 = "nancheng0", icon0 = "nancheng0",
icon1 = "nancheng1", icon1 = "nancheng1",
detail = "nanchengDetail" detail = "nanchengDetail"
}, },
{
icon0 = "lichuan0",
icon1 = "lichuan1",
detail = "lichuanDetail"
},
}, },
--扑克 --扑克
{ {

View File

@ -28,15 +28,27 @@ function M:init(url)
btn_music.selected = GameApplication.Instance.MusicMute btn_music.selected = GameApplication.Instance.MusicMute
slider_music.onChanged:Add(function() slider_music.onChanged:Add(function()
GameApplication.Instance.MusicValue = slider_music.value local value = math.floor(slider_music.value)
if value > 0 then
btn_music.selected = false btn_music.selected = false
GameApplication.Instance.MusicMute = false; GameApplication.Instance.MusicMute = false;
else
btn_music.selected = true
GameApplication.Instance.MusicMute = true;
end
GameApplication.Instance.MusicValue = value
end) end)
slider_sound.onChanged:Add(function() slider_sound.onChanged:Add(function()
GameApplication.Instance.SoundValue = slider_sound.value local value = math.floor(slider_sound.value)
if value > 0 then
btn_sound.selected = false btn_sound.selected = false
GameApplication.Instance.SoundMute = false; GameApplication.Instance.SoundMute = false;
else
btn_sound.selected = true
GameApplication.Instance.SoundMute = true;
end
GameApplication.Instance.SoundValue = value
end) end)
btn_sound.onClick:Add(function() btn_sound.onClick:Add(function()

View File

@ -103,6 +103,7 @@ function M:InitView(url)
-- clickTime = clickTime + 1 -- clickTime = clickTime + 1
-- return -- return
-- end -- end
local user = DataManager.SelfUser local user = DataManager.SelfUser
if user.group_id ~= 0 then if user.group_id ~= 0 then
self:ReconnectRoom(user.group_id) self:ReconnectRoom(user.group_id)
@ -148,9 +149,9 @@ function M:InitView(url)
end) end)
local btn_diamo = self._view:GetChild("btn_diamo") local btn_diamo = self._view:GetChild("btn_diamo")
btn_diamo.onClick:Add(function() -- btn_diamo.onClick:Add(function()
ViewUtil.ErrorTip(self._view, string.format("当前房卡一共%s张", DataManager.SelfUser.diamo)) -- ViewUtil.ErrorTip(self._view, string.format("当前房卡一共%s张", DataManager.SelfUser.diamo))
end) -- end)
local btn_customerService = self._view:GetChild("btn_customerService") local btn_customerService = self._view:GetChild("btn_customerService")
btn_customerService.onClick:Add(function() btn_customerService.onClick:Add(function()
@ -510,18 +511,8 @@ function M:GetPlayerInfoData()
self:ShowPlayerInfo(data.raffle, data.diamo, data.newMail) self:ShowPlayerInfo(data.raffle, data.diamo, data.newMail)
if data.group_id ~= 0 then if data.group_id ~= 0 then
-- 重连,确保头像加载成功才能重连 -- 重连,确保头像加载成功才能重连
-- ViewUtil.ShowModalWait2(self._root_view)
-- coroutine.start(function()
-- local waitTimes = 0
-- while not self._flag_loadImageSucces do
-- if waitTimes > 10 then
-- break
-- end
-- coroutine.wait(0.2)
-- end
-- ViewUtil.CloseModalWait()
self:ReconnectRoom(data.groupId) self:ReconnectRoom(data.groupId)
-- end)
end end
end end
end) end)

View File

@ -162,11 +162,31 @@ local function __login_response(self, response)
ViewUtil.ShowModalWait(self._root_view, "正在加入房间...") ViewUtil.ShowModalWait(self._root_view, "正在加入房间...")
__join_room(roomid, response) __join_room(roomid, response)
return return
else
self:ReconnectRoom(user.group_id)
return
end end
end end
__goto_lobby(response) __goto_lobby(response)
end end
--把拿取跑马灯信息放在这里
local lobbyCtr1 = ControllerManager.GetController(LoddyController)
lobbyCtr1:UpdateNotice(DataManager.SelfUser.account_id, function(result, data)
if result then
if not data or not data.notice_list then
self._mesList = ""
else
local mesl = {}
for i = 1, #data.notice_list do
mesl[i] = data.notice_list[i] --.informContent
end
self._mesList = mesl
DataManager.GameNotice = mesl
end
end
end)
if user.update ~= 0 then if user.update ~= 0 then
ExtendHotupdate.UpdateGameList(user.games, f_enterLobby) ExtendHotupdate.UpdateGameList(user.games, f_enterLobby)
else else
@ -270,6 +290,49 @@ function M:LoginCallBack(result, data)
end) end)
end end
--在进入前重连房间,如果有
function M:ReconnectRoom(groupId)
local roomId = DataManager.SelfUser.room_id
print("===============================ReconnectRoom", roomId, 1)
if roomId and #roomId > 0 then
local roomCtr = ControllerManager.GetController(RoomController)
roomCtr:PublicJoinRoom(
Protocol.WEB_FG_JOIN_ROOM,
roomId,
false,
function(response)
if (response.ReturnCode == -1) then
ViewUtil.ErrorMsg(self._root_view, response.ReturnCode, 'response.ReturnCode == -1')
RestartGame()
return
end
if response.ReturnCode ~= 0 then
ViewUtil.ErrorMsg(self._root_view, response.ReturnCode, '进入房间失败')
FamilyView.lastId = groupId
ViewManager.ChangeView(ViewManager.View_Family)
return
else
UIPackage.AddPackage("base/lobby/ui/Lobby")
FamilyView.lastId = groupId
DataManager.SelfUser.room_id = ""
local fgCtr = ControllerManager.GetController(NewGroupController)
fgCtr:FG_GroupList(function(res)
print("获取所有圈信息")
pt(res)
if res.ReturnCode ~= 0 then
ViewUtil.ErrorTip(res.ReturnCode, "重连获取亲友圈信息失败")
end
end)
ViewManager.ChangeView(ViewManager.View_Main, DataManager.CurrenRoom.game_id)
end
end,
groupId
)
end
end
function M:Destroy() function M:Destroy()
BaseView.Destroy(self) BaseView.Destroy(self)
-- UIPackage.RemovePackage("base/embed/ui/Hotupdate") -- UIPackage.RemovePackage("base/embed/ui/Hotupdate")

View File

@ -334,6 +334,7 @@ function M:InitView(url, isHideIpAdds)
self._chat_Talk.onTouchEnd:Set(self.__RecordTouchEnd, self) self._chat_Talk.onTouchEnd:Set(self.__RecordTouchEnd, self)
self._chat_Talk.onTouchMove:Set(handler(self, self.__RecordTouchMove)) self._chat_Talk.onTouchMove:Set(handler(self, self.__RecordTouchMove))
Voice.BeginRecord() Voice.BeginRecord()
self._record_view_ctr.selectedIndex = 0
self._ctr_voice.selectedIndex = 1 self._ctr_voice.selectedIndex = 1
-- self.__runwait_record = nil -- self.__runwait_record = nil
-- self.__runwait_record = coroutine.start(self.__WaitRecord, self) -- self.__runwait_record = coroutine.start(self.__WaitRecord, self)
@ -702,7 +703,7 @@ function M:NewSettingView()
end end
function M:__RecordTouchMove(context) function M:__RecordTouchMove(context)
if Mathf.Abs(context.inputEvent.x - self._record_pos.x) >= 50 or Mathf.Abs(context.inputEvent.y - self._record_pos.y) >= 50 then if Mathf.Abs(context.inputEvent.x - self._record_pos.x) >= 67 or Mathf.Abs(context.inputEvent.y - self._record_pos.y) >= 67 then
self._record_view_ctr.selectedIndex = 1 self._record_view_ctr.selectedIndex = 1
else else
self._record_view_ctr.selectedIndex = 0 self._record_view_ctr.selectedIndex = 0
@ -1198,39 +1199,39 @@ function M:MarkSelfTuoguan()
local _msg_view = nil local _msg_view = nil
com_tuoguan:GetChild('n0').onClick:Set( com_tuoguan:GetChild('n0').onClick:Set(
function() function()
if _msg_view then -- if _msg_view then
_msg_view:Dispose() -- _msg_view:Dispose()
end -- end
local _curren_msg = UIPackage.CreateObjectFromURL('ui://Common/MessageBox') -- local _curren_msg = UIPackage.CreateObjectFromURL('ui://Common/MessageBox')
_msg_view = _curren_msg -- _msg_view = _curren_msg
_msg_view:GetChild('btn_ok').onClick:Set( -- _msg_view:GetChild('btn_ok').onClick:Set(
function() -- function()
_msg_view:Dispose() -- _msg_view:Dispose()
_msg_view = nil -- _msg_view = nil
self._gamectr:Entrust(false) self._gamectr:Entrust(false)
end -- end
) -- )
_msg_view:GetChild('btn_close').onClick:Set( -- _msg_view:GetChild('btn_close').onClick:Set(
function() -- function()
_msg_view:Dispose() -- _msg_view:Dispose()
_msg_view = nil -- _msg_view = nil
end -- end
) -- )
_msg_view:GetChild('btn_close1').onClick:Set( -- _msg_view:GetChild('btn_close1').onClick:Set(
function() -- function()
_msg_view:Dispose() -- _msg_view:Dispose()
_msg_view = nil -- _msg_view = nil
end -- end
) -- )
local roate = GRoot.inst.width / GRoot.inst.height -- local roate = GRoot.inst.width / GRoot.inst.height
local num = 100 -- local num = 100
if roate < 1.9 then -- if roate < 1.9 then
num = 250 -- num = 250
end -- end
com_tuoguan:AddChild(_msg_view) -- com_tuoguan:AddChild(_msg_view)
_msg_view:Center() -- _msg_view:Center()
_msg_view:GetChild('tex_message').text = '确定要取消托管吗?' -- _msg_view:GetChild('tex_message').text = '确定要取消托管吗?'
-- _msg_view.x = (com_tuoguan.width - _msg_view.width) * 0.5 - num -- _msg_view.x = (com_tuoguan.width - _msg_view.width) * 0.5 - num
-- _msg_view.y = (com_tuoguan.height - com_tuoguan.y - _msg_view.height) * 0.5 -- _msg_view.y = (com_tuoguan.height - com_tuoguan.y - _msg_view.height) * 0.5
end end
@ -1334,7 +1335,7 @@ function M:OnUpdate()
if result then if result then
else else
error(resultInfo) print("error", resultInfo)
self._gamectr = ControllerManager.GetController(GameController) self._gamectr = ControllerManager.GetController(GameController)
if self._gamectr then if self._gamectr then
self._gamectr:ResetConnect() self._gamectr:ResetConnect()
@ -1513,6 +1514,7 @@ function M:Destroy()
self:UnmarkSelfTuoguan() self:UnmarkSelfTuoguan()
self:DestroyPlayerInfo() self:DestroyPlayerInfo()
DSTweenManager.ClearTween() DSTweenManager.ClearTween()
MissileSender.Clear()
NetResetConnectWindow.CloseNetReset() NetResetConnectWindow.CloseNetReset()
Voice.CrealRecord() Voice.CrealRecord()

View File

@ -90,4 +90,11 @@ function MissileSender.Animation(target, animUrl, view)
e.xy = target.xy e.xy = target.xy
end end
function MissileSender.Clear()
MissileSender = {}
pool = {}
curView = {}
MovieClipPool = {}
end
return MissileSender return MissileSender

View File

@ -55,7 +55,7 @@ function ViewUtil.CloseModalWait()
ModalWaitingWindow.CloseModal() ModalWaitingWindow.CloseModal()
end end
function ViewUtil.ShowModalWait2(blur_view, title, time) function ViewUtil.ShowModalWait2(blur_view, time)
ViewUtil.CloseModalWait2() ViewUtil.CloseModalWait2()
ViewUtil.continue = coroutine.start( ViewUtil.continue = coroutine.start(
function() function()

View File

@ -25,6 +25,15 @@ end
-- 语音是否禁止 -- 语音是否禁止
local record_baned = 0 local record_baned = 0
local function GetPlayer(self, playerId)
for _, p in pairs(self._room.player_list) do
if playerId == p.self_user.account_id then
return p
end
end
return nil
end
function M:InitView(url) function M:InitView(url)
local room = self._room local room = self._room
BaseView.InitView(self, url) BaseView.InitView(self, url)
@ -432,6 +441,7 @@ function M:Destroy()
self:UnmarkSelfTuoguan() self:UnmarkSelfTuoguan()
self:DestroyPlayerInfo() self:DestroyPlayerInfo()
DSTweenManager.ClearTween() DSTweenManager.ClearTween()
MissileSender.Clear()
NetResetConnectWindow.CloseNetReset() NetResetConnectWindow.CloseNetReset()
Voice.CrealRecord() Voice.CrealRecord()

View File

@ -19,7 +19,7 @@ Table_Error_code_Map = {
[4] = { id = 4, note = "" }, [4] = { id = 4, note = "" },
[5] = { id = 5, note = "玩法不可用" }, [5] = { id = 5, note = "玩法不可用" },
[6] = { id = 6, note = "游戏已停用" }, [6] = { id = 6, note = "游戏已停用" },
[7] = { id = 7, note = "房卡不足" }, [7] = { id = 7, note = "该亲友圈房卡不足,请联系亲友圈管理员!" },
[8] = { id = 8, note = "已经在亲友圈中" }, [8] = { id = 8, note = "已经在亲友圈中" },
[9] = { id = 9, note = "邀请码无效" }, [9] = { id = 9, note = "邀请码无效" },
[10] = { id = 10, note = "房间已满" }, [10] = { id = 10, note = "房间已满" },
@ -36,7 +36,7 @@ Table_Error_code_Map = {
[26] = { id = 26, note = "创建房间数达到上限" }, [26] = { id = 26, note = "创建房间数达到上限" },
[27] = { id = 27, note = "正在游戏中,删除房间失败" }, [27] = { id = 27, note = "正在游戏中,删除房间失败" },
[28] = { id = 28, note = "多次登录失败,禁止登录,请过段时间再次尝试" }, [28] = { id = 28, note = "多次登录失败,禁止登录,请过段时间再次尝试" },
[101] = { id = 101, note = "请检查您的网络设置" }, -- [101] = { id = 101, note = "请检查您的网络设置" }, --请检查您的网络设置,暂时注释
[102] = { id = 102, note = "网络连接超时" }, [102] = { id = 102, note = "网络连接超时" },
[500] = { id = 500, note = "" }, [500] = { id = 500, note = "" },
[999] = { id = 999, note = "未知错误" }, [999] = { id = 999, note = "未知错误" },

View File

@ -86,14 +86,17 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
self:DestroyWithCallback() self:DestroyWithCallback()
else else
if over == 0 then
local _gamectr = ControllerManager.GetController(GameController) local _gamectr = ControllerManager.GetController(GameController)
_gamectr:PlayerReady() _gamectr:PlayerReady()
self:DestroyWithCallback() self:DestroyWithCallback()
else
mainCtr.selectedIndex = 1
_overCtr.selectedIndex = 1
end
end end
end) end)
endRound.onClick:Set(function() endRound.onClick:Set(function()
ViewManager.ChangeView(ViewManager.View_Family) ViewManager.ChangeView(ViewManager.View_Family)
end) end)
@ -115,15 +118,15 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
end) end)
elseif over == 1 then elseif over == 1 then
mainCtr.selectedIndex = 1
showBtnTypeCtr.selectedIndex = 1
self:fillResult1(room, peopleNum, total_result) self:fillResult1(room, peopleNum, total_result)
if result then if result then
_overCtr.selectedIndex = 0
self:fillResult0(room, peopleNum, result) self:fillResult0(room, peopleNum, result)
nextRoundBtn2.onClick:Set(function() nextRoundBtn2.onClick:Set(function()
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end) end)
else else
showBtnTypeCtr.selectedIndex = 1
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end end
else --解散房间如果没有开局直接退出不显示结算界面over=2 else --解散房间如果没有开局直接退出不显示结算界面over=2

View File

@ -176,7 +176,7 @@ function M:LoadConfigData(data)
self._config:GetChild("n93").text = string.format("奖%s马", data.jiangma * 2) self._config:GetChild("n93").text = string.format("奖%s马", data.jiangma * 2)
end end
function M:LoadConfigToDetail(data, hpdata) function M:LoadConfigToDetailOnlyPlay(data, hpdata)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
configData = json.decode(data) configData = json.decode(data)
@ -184,8 +184,12 @@ function M:LoadConfigToDetail(data, hpdata)
local hpData = configData.hpData or hpdata local hpData = configData.hpData or hpdata
if type(hpData) == 'string' then if type(hpData) == 'string' then
if hpData == "null" then
hpData = nil
else
hpData = json.decode(hpData) hpData = json.decode(hpData)
end end
end
local returnString = "" local returnString = ""
if hpData then if hpData then
@ -193,54 +197,57 @@ function M:LoadConfigToDetail(data, hpdata)
end end
returnString = string.format("%s人数%s人", returnString, configData.maxPlayers) returnString = string.format("%s人数%s人", returnString, configData.maxPlayers)
if configData.jiangma then
returnString = string.format("%s,%s马", returnString,
configData.jiangma == 0 and "不奖" or string.format("奖%s", configData.jiangma * 2))
end
if configData.zimo then if configData.zimo then
returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸") returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸")
end end
if configData.shaozhuang then if configData.shaozhuang then
returnString = string.format("%s%s", returnString, configData.shaozhuang == 0 and "" or ",烧庄") returnString = string.format("%s%s", returnString, configData.shaozhuang == 0 and ",不烧庄" or ",烧庄")
end end
if configData.fengding then if configData.fengding then
local matString = "%s%s" local matString = "%s%s"
if configData.fengding == 0 then if configData.fengding == 0 then
returnString = string.format(matString, returnString, ",封顶20炮") returnString = string.format(matString, returnString, ",封顶20炮")
else
returnString = string.format(matString, returnString, ",不封顶")
end end
end end
if configData.TianDiHu then if configData.TianDiHu then
returnString = string.format("%s%s", returnString, configData.TianDiHu == 0 and ",有天地胡" or "") returnString = string.format("%s%s", returnString, configData.TianDiHu == 0 and ",天地胡玩法" or ",没有天地胡")
end
if configData.jiangma then
returnString = string.format("%s,%s马", returnString,
configData.jiangma == 0 and "不奖" or string.format("奖%s", configData.jiangma * 2))
end end
if configData.zikechengshun then if configData.zikechengshun then
returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",有字可成顺" or "") returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",字可成顺" or ",字不可成顺")
end end
if configData.zuangfenfanbei then if configData.zhuangfenfanbei then
returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",庄家积分翻倍" or "") returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",庄家积分翻倍" or ",庄家积分不翻倍")
end end
if configData.GPSDetection then
returnString = string.format("%s%s", returnString, return returnString
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end end
if configData.tuoguan_active_time then
returnString = string.format("%s%s", returnString, function M:LoadConfigToDetail(data, hpdata)
configData.tuoguan_active_time == 0 and ",不自动托管" or string.format(",%s秒托管", configData.tuoguan_active_time)) local configData = data
if type(data) == 'string' then
configData = json.decode(data)
end end
if hpData then
if hpData.JieShan then local hpData = configData.hpData or hpdata
returnString = string.format("%s%s", returnString, if type(hpData) == 'string' then
hpData.JieShan == 1 and ",托管结束后不解散" or if hpData == "null" then
string.format(",托管%s结束后强制解散", hpData.JieShan == 2 and "当局" or string.format("%s局", hpData.JieShan - 1))) hpData = nil
end else
if hpData.BanChat then hpData = json.decode(hpData)
returnString = string.format("%s%s", returnString, hpData.BanChat == 1 and ",不允许快捷聊天" or "")
end
if hpData.BanMissile then
returnString = string.format("%s%s", returnString, hpData.BanMissile == 1 and ",关闭互动表情" or "")
end end
end end
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpdata) local returnString = ""
returnString = returnString .. self:LoadConfigToDetailOnlyPlay(data, hpdata)
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, configData, hpData)
return returnString return returnString
end end

View File

@ -57,11 +57,6 @@ function M:InitView(url)
--[[ --[[
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num) MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
--]] --]]
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config),
json.encode(room.room_config.config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')

View File

@ -27,10 +27,6 @@ function M:InitView(url)
self._tex_round = self._view:GetChild("tex_round") self._tex_round = self._view:GetChild("tex_round")
self._tex_LeftCard = self._view:GetChild("remaining_card") self._tex_LeftCard = self._view:GetChild("remaining_card")
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self._eventmap = {} self._eventmap = {}
self._cmdmap = {} self._cmdmap = {}

View File

@ -46,13 +46,9 @@ function M:InitView()
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('text_time').text = os.date("%H:%M", os.time()) self._view:GetChild('text_time').text = os.date("%H:%M", os.time())
self._view:GetChild('text_roomId').text = room.room_id self._view:GetChild('text_roomId').text = room.room_id
self._view:GetChild('wanfa_text').text = gamePlay
self._state = self._view:GetController("state") self._state = self._view:GetController("state")
self._text_remined = self._view:GetChild('remaining_card') self._text_remined = self._view:GetChild('remaining_card')

View File

@ -86,9 +86,14 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
self:DestroyWithCallback() self:DestroyWithCallback()
else else
if over == 0 then
local _gamectr = ControllerManager.GetController(GameController) local _gamectr = ControllerManager.GetController(GameController)
_gamectr:PlayerReady() _gamectr:PlayerReady()
self:DestroyWithCallback() self:DestroyWithCallback()
else
mainCtr.selectedIndex = 1
_overCtr.selectedIndex = 1
end
end end
end) end)
@ -115,15 +120,15 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
end) end)
elseif over == 1 then elseif over == 1 then
mainCtr.selectedIndex = 1
showBtnTypeCtr.selectedIndex = 1
self:fillResult1(room, peopleNum, total_result) self:fillResult1(room, peopleNum, total_result)
if result then if result then
_overCtr.selectedIndex = 0
self:fillResult0(room, peopleNum, result) self:fillResult0(room, peopleNum, result)
nextRoundBtn2.onClick:Set(function() nextRoundBtn2.onClick:Set(function()
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end) end)
else else
showBtnTypeCtr.selectedIndex = 1
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end end
else --解散房间如果没有开局直接退出不显示结算界面over=2 else --解散房间如果没有开局直接退出不显示结算界面over=2

View File

@ -172,17 +172,20 @@ function M:LoadConfigData(data)
self._config:GetChild("n93").text = string.format("奖%s马", data.jiangma * 2) self._config:GetChild("n93").text = string.format("奖%s马", data.jiangma * 2)
end end
function M:LoadConfigToDetail(data, hpdata) function M:LoadConfigToDetailOnlyPlay(data, hpdata)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
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
if hpData == "null" then
hpData = nil
else
hpData = json.decode(hpData) hpData = json.decode(hpData)
end end
end
local returnString = "" local returnString = ""
if hpData then if hpData then
@ -190,58 +193,56 @@ function M:LoadConfigToDetail(data, hpdata)
end end
returnString = string.format("%s人数%s人", returnString, configData.maxPlayers) returnString = string.format("%s人数%s人", returnString, configData.maxPlayers)
if configData.jiangma then
returnString = string.format("%s,%s马", returnString,
configData.jiangma == 0 and "不奖" or string.format("奖%s", configData.jiangma * 2))
end
if configData.zimo then if configData.zimo then
returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸") returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸")
end end
if configData.shaozhuang then
returnString = string.format("%s%s", returnString, configData.shaozhuang == 0 and "" or ",有烧庄")
end
if configData.fengding then if configData.fengding then
local matString = "%s,%s" local matString = "%s,%s"
if configData.fengding == 0 then if configData.fengding == 0 then
returnString = string.format(matString, returnString, "封顶20炮") returnString = string.format(matString, returnString, "封顶20炮")
elseif configData.fengding == 1 then elseif configData.fengding == 1 then
returnString = string.format(matString, returnString, "封顶10炮") returnString = string.format(matString, returnString, "封顶10炮")
else
returnString = string.format(matString, returnString, "不封顶")
end end
end end
if configData.TianDiHu then if configData.jiangma then
returnString = string.format("%s%s", returnString, configData.TianDiHu == 0 and ",有天地胡" or "") returnString = string.format("%s,%s马", returnString,
end configData.jiangma == 0 and "不奖" or string.format("奖%s", configData.jiangma * 2))
if configData.zikechengshun then
returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",有字可成顺" or "")
end end
if configData.gangjiangma then if configData.gangjiangma then
returnString = string.format("%s%s", returnString, configData.gangjiangma == 0 and ",杠算奖马" or "") returnString = string.format("%s%s", returnString, configData.gangjiangma == 0 and ",杠算奖马" or ",杠不算奖马")
end end
if configData.sanjingjiangma then if configData.sanjingjiangma then
returnString = string.format("%s%s", returnString, configData.sanjingjiangma == 0 and ",三精算奖马" or "") returnString = string.format("%s%s", returnString, configData.sanjingjiangma == 0 and ",三精算奖马" or ",三精不算奖马")
end end
if configData.GPSDetection then if configData.zikechengshun then
returnString = string.format("%s%s", returnString, returnString = string.format("%s%s", returnString, configData.zikechengshun == 0 and ",字可成顺" or ",字不可成顺")
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end end
if configData.tuoguan_active_time then
returnString = string.format("%s%s", returnString, return returnString
configData.tuoguan_active_time == 0 and ",不自动托管" or string.format(",%s秒托管", configData.tuoguan_active_time))
end end
if hpData then
if hpData.JieShan then function M:LoadConfigToDetail(data, hpdata)
returnString = string.format("%s%s", returnString, local configData = data
hpData.JieShan == 1 and ",托管结束后不解散" or if type(data) == 'string' then
string.format(",托管%s结束后强制解散", hpData.JieShan == 2 and "当局" or string.format("%s局", hpData.JieShan - 1))) configData = json.decode(data)
end end
if hpData.BanChat then
returnString = string.format("%s%s", returnString, hpData.BanChat == 1 and ",不允许快捷聊天" or "") local hpData = configData.hpData or hpdata
end if type(hpData) == 'string' then
if hpData.BanMissile then if hpData == "null" then
returnString = string.format("%s%s", returnString, hpData.BanMissile == 1 and ",关闭互动表情" or "") hpData = nil
else
hpData = json.decode(hpData)
end end
end end
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData)
local returnString = ""
returnString = returnString .. self:LoadConfigToDetailOnlyPlay(data, hpdata)
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, configData, hpData)
return returnString return returnString
end end

View File

@ -57,10 +57,6 @@ function M:InitView(url)
--[[ --[[
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num) MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
--]] --]]
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')
self._state.onChanged:Add(function() self._state.onChanged:Add(function()

View File

@ -27,10 +27,6 @@ function M:InitView(url)
self._tex_round = self._view:GetChild("tex_round") self._tex_round = self._view:GetChild("tex_round")
self._tex_LeftCard = self._view:GetChild("remaining_card") self._tex_LeftCard = self._view:GetChild("remaining_card")
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self._eventmap = {} self._eventmap = {}
self._cmdmap = {} self._cmdmap = {}

View File

@ -46,13 +46,9 @@ function M:InitView(url)
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('text_time').text = os.date("%H:%M", os.time()) self._view:GetChild('text_time').text = os.date("%H:%M", os.time())
self._view:GetChild('text_roomId').text = room.room_id self._view:GetChild('text_roomId').text = room.room_id
self._view:GetChild('wanfa_text').text = gamePlay
self._state = self._view:GetController("state") self._state = self._view:GetController("state")
self._text_remined = self._view:GetChild('remaining_card') self._text_remined = self._view:GetChild('remaining_card')

View File

@ -87,9 +87,14 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
self:DestroyWithCallback() self:DestroyWithCallback()
else else
if over == 0 then
local _gamectr = ControllerManager.GetController(GameController) local _gamectr = ControllerManager.GetController(GameController)
_gamectr:PlayerReady() _gamectr:PlayerReady()
self:DestroyWithCallback() self:DestroyWithCallback()
else
mainCtr.selectedIndex = 1
_overCtr.selectedIndex = 1
end
end end
end) end)
@ -114,15 +119,15 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
end) end)
elseif over == 1 then elseif over == 1 then
mainCtr.selectedIndex = 1
showBtnTypeCtr.selectedIndex = 1
self:fillResult1(room, peopleNum, total_result) self:fillResult1(room, peopleNum, total_result)
if result then if result then
_overCtr.selectedIndex = 0
self:fillResult0(room, peopleNum, result) self:fillResult0(room, peopleNum, result)
nextRoundBtn2.onClick:Set(function() nextRoundBtn2.onClick:Set(function()
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end) end)
else else
showBtnTypeCtr.selectedIndex = 1
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end end
else --解散房间如果没有开局直接退出不显示结算界面over=2 else --解散房间如果没有开局直接退出不显示结算界面over=2

View File

@ -307,7 +307,7 @@ function M:OnEventFzAction(evt_data)
end end
p.hand_left_count = p.hand_left_count - remove_num p.hand_left_count = p.hand_left_count - remove_num
if from_seat ~= p.seat then if from_seat ~= p.seat and ftype ~= FZType.Gang_Peng then
-- if (fz.Type == FZType.Chi) then card = actice_card end -- if (fz.Type == FZType.Chi) then card = actice_card end
local fp = _room:GetPlayerBySeat(from_seat) local fp = _room:GetPlayerBySeat(from_seat)
table.remove(fp.outcard_list, #fp.outcard_list) table.remove(fp.outcard_list, #fp.outcard_list)

View File

@ -157,17 +157,20 @@ function M:LoadConfigData(data)
_config:GetController("jingbibo").selectedIndex = 1 - data.jingbibo _config:GetController("jingbibo").selectedIndex = 1 - data.jingbibo
end end
function M:LoadConfigToDetail(data, hpdata) function M:LoadConfigToDetailOnlyPlay(data, hpdata)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
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
if hpData == "null" then
hpData = nil
else
hpData = json.decode(hpData) hpData = json.decode(hpData)
end end
end
local returnString = "" local returnString = ""
if hpData then if hpData then
@ -176,33 +179,36 @@ 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, if configData.zimo then
configData.zimo == 0 and "可点炮,可自摸" or "必须自摸", returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸")
configData.tuoguan == 0 and string.format("%d秒后自动托管", configData.tuoguan_active_time) or "不能托管", end
configData.jingbibo == 1 and "有精必博" or "有精可胡") if configData.jingbibo then
returnString = string.format("%s,%s", returnString, configData.jingbibo == 1 and "有精必博" or "有精可胡")
end
if configData.GPSDetection then return returnString
returnString = string.format("%s%s", returnString,
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end end
if configData.tuoguan_active_time then
returnString = string.format("%s%s", returnString, function M:LoadConfigToDetail(data, hpdata)
configData.tuoguan_active_time == 0 and ",不自动托管" or string.format(",%s秒托管", configData.tuoguan_active_time)) local configData = data
if type(data) == 'string' then
configData = json.decode(data)
end end
if hpData then
if hpData.JieShan then local hpData = configData.hpData or hpdata
returnString = string.format("%s%s", returnString, if type(hpData) == 'string' then
hpData.JieShan == 1 and ",托管结束后不解散" or if hpData == "null" then
string.format(",托管%s结束后强制解散", hpData.JieShan == 2 and "当局" or string.format("%s局", hpData.JieShan - 1))) hpData = nil
end else
if hpData.BanChat then hpData = json.decode(hpData)
returnString = string.format("%s%s", returnString, hpData.BanChat == 1 and ",不允许快捷聊天" or "")
end
if hpData.BanMissile then
returnString = string.format("%s%s", returnString, hpData.BanMissile == 1 and ",关闭互动表情" or "")
end end
end end
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData)
local returnString = ""
returnString = returnString .. self:LoadConfigToDetailOnlyPlay(data, hpdata)
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, configData, hpData)
return returnString return returnString
end end

View File

@ -57,10 +57,6 @@ function M:InitView(url)
--[[ --[[
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num) MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
--]] --]]
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')
@ -481,9 +477,6 @@ function M:EventInit()
local total_result = arg[2] local total_result = arg[2]
local result = arg[1] local result = arg[1]
local over = arg[3] local over = arg[3]
-- if over < 2 or _room.curren_round > 0 then
-- self:PlayMJSound("end_music.mp3")
-- end
self._clearingView = EXClearingView.new() self._clearingView = EXClearingView.new()
coroutine.start(function() coroutine.start(function()
coroutine.wait(0.5) coroutine.wait(0.5)

View File

@ -27,10 +27,6 @@ function M:InitView(url)
self._tex_round = self._view:GetChild("tex_round") self._tex_round = self._view:GetChild("tex_round")
self._tex_LeftCard = self._view:GetChild("remaining_card") self._tex_LeftCard = self._view:GetChild("remaining_card")
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self._eventmap = {} self._eventmap = {}
self._cmdmap = {} self._cmdmap = {}

View File

@ -47,13 +47,9 @@ function M:InitView()
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('text_time').text = os.date("%H:%M", os.time()) self._view:GetChild('text_time').text = os.date("%H:%M", os.time())
self._view:GetChild('text_roomId').text = room.room_id self._view:GetChild('text_roomId').text = room.room_id
self._view:GetChild('wanfa_text').text = gamePlay
self._state = self._view:GetController("state") self._state = self._view:GetController("state")
self._text_remined = self._view:GetChild('remaining_card') self._text_remined = self._view:GetChild('remaining_card')

View File

@ -86,9 +86,14 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
self:DestroyWithCallback() self:DestroyWithCallback()
else else
if over == 0 then
local _gamectr = ControllerManager.GetController(GameController) local _gamectr = ControllerManager.GetController(GameController)
_gamectr:PlayerReady() _gamectr:PlayerReady()
self:DestroyWithCallback() self:DestroyWithCallback()
else
mainCtr.selectedIndex = 1
_overCtr.selectedIndex = 1
end
end end
end) end)
@ -113,15 +118,15 @@ function M:InitData(over, room, result, total_result, callback, isWitness, witne
end end
end) end)
elseif over == 1 then elseif over == 1 then
mainCtr.selectedIndex = 1
showBtnTypeCtr.selectedIndex = 1
self:fillResult1(room, peopleNum, total_result) self:fillResult1(room, peopleNum, total_result)
if result then if result then
_overCtr.selectedIndex = 0
self:fillResult0(room, peopleNum, result) self:fillResult0(room, peopleNum, result)
nextRoundBtn2.onClick:Set(function() nextRoundBtn2.onClick:Set(function()
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end) end)
else else
showBtnTypeCtr.selectedIndex = 1
_overCtr.selectedIndex = 1 _overCtr.selectedIndex = 1
end end
else --解散房间如果没有开局直接退出不显示结算界面over=2 else --解散房间如果没有开局直接退出不显示结算界面over=2

View File

@ -185,17 +185,20 @@ function M:LoadConfigData(data)
-- end -- end
end end
function M:LoadConfigToDetail(data, hpdata) function M:LoadConfigToDetailOnlyPlay(data, hpdata)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
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
if hpData == "null" then
hpData = nil
else
hpData = json.decode(hpData) hpData = json.decode(hpData)
end end
end
local returnString = "" local returnString = ""
if hpData then if hpData then
@ -204,37 +207,55 @@ 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%s%s%s%s,%s", returnString, if configData.zimo then
configData.jiangma and string.format("奖%d", configData.jiangma * 2) or "不奖", returnString = string.format("%s,%s", returnString, configData.zimo == 0 and "可点炮,可自摸" or "必须自摸")
configData.shaozhuang == 1 and ",有烧庄" or "", end
configData.zuoma == 0 and ",庄家坐马" or "", if configData.shaozhuang then
configData.zimo == 0 and ",可点炮,可自摸" or ",必须自摸", returnString = string.format("%s,%s", returnString, configData.shaozhuang == 0 and "不烧庄" or "烧庄")
configData.tuoguan and string.format(",%d秒后自动托管", configData.tuoguan_active_time) or ",不能托管", end
configData.jiahu == 0 and ",可以假胡" or "", configData.fengding == 0 and ",封顶20炮" or "", if configData.fengding then
configData.zhuanwan == 0 and "大转弯" or "小转弯") local matString = "%s,%s"
if configData.fengding == 0 then
returnString = string.format(matString, returnString, "封顶20炮")
else
returnString = string.format(matString, returnString, "不封顶")
end
end
if configData.jiangma then
returnString = string.format("%s,%s马", returnString,
configData.jiangma == 0 and "不奖" or string.format("奖%s", configData.jiangma * 2))
end
if configData.zuoma then
returnString = string.format("%s,%s", returnString, configData.zuoma == 0 and "庄家坐马" or "庄家不坐马")
end
if configData.tuoguan then
returnString = string.format("%s,%s", returnString, configData.zhuanwan == 0 and "大转弯" or "小转弯")
end
if configData.jiahu then
returnString = string.format("%s,%s", returnString, configData.jiahu == 0 and "算假胡" or "不算假胡")
end
return returnString
end
if configData.GPSDetection then function M:LoadConfigToDetail(data, hpdata)
returnString = string.format("%s%s", returnString, local configData = data
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection)) if type(data) == 'string' then
configData = json.decode(data)
end end
if configData.tuoguan_active_time then
returnString = string.format("%s%s", returnString, local hpData = configData.hpData or hpdata
configData.tuoguan_active_time == 0 and ",不自动托管" or string.format(",%s秒托管", configData.tuoguan_active_time)) if type(hpData) == 'string' then
end if hpData == "null" then
if hpData then hpData = nil
if hpData.JieShan then else
returnString = string.format("%s%s", returnString, hpData = json.decode(hpData)
hpData.JieShan == 1 and ",托管结束后不解散" or
string.format(",托管%s结束后强制解散", hpData.JieShan == 2 and "当局" or string.format("%s局", hpData.JieShan - 1)))
end
if hpData.BanChat then
returnString = string.format("%s%s", returnString, hpData.BanChat == 1 and ",不允许快捷聊天" or "")
end
if hpData.BanMissile then
returnString = string.format("%s%s", returnString, hpData.BanMissile == 1 and ",关闭互动表情" or "")
end end
end end
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData) local returnString = ""
returnString = returnString .. self:LoadConfigToDetailOnlyPlay(data, hpdata)
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, configData, hpData)
return returnString return returnString
end end

View File

@ -56,10 +56,6 @@ function M:InitView(url)
--[[ --[[
MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num) MJMainView.InitView(self, "ui://Main_Majiang/Main_new_" .. room.room_config.people_num)
--]] --]]
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')
self._state.onChanged:Add(function() self._state.onChanged:Add(function()

View File

@ -27,11 +27,6 @@ function M:InitView(url)
self._tex_round = self._view:GetChild("tex_round") self._tex_round = self._view:GetChild("tex_round")
self._tex_LeftCard = self._view:GetChild("remaining_card") self._tex_LeftCard = self._view:GetChild("remaining_card")
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
self._eventmap = {} self._eventmap = {}
self._cmdmap = {} self._cmdmap = {}

View File

@ -46,13 +46,9 @@ function M:InitView()
self._anchor = self._view:GetChild("mask_tips") self._anchor = self._view:GetChild("mask_tips")
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('text_time').text = os.date("%H:%M", os.time()) self._view:GetChild('text_time').text = os.date("%H:%M", os.time())
self._view:GetChild('text_roomId').text = room.room_id self._view:GetChild('text_roomId').text = room.room_id
self._view:GetChild('wanfa_text').text = gamePlay
self._state = self._view:GetController("state") self._state = self._view:GetController("state")
self._text_remined = self._view:GetChild('remaining_card') self._text_remined = self._view:GetChild('remaining_card')

View File

@ -218,6 +218,12 @@ function M:InitView(url, use_custom_bg, custom_bg_config)
self:InitXiPai1() self:InitXiPai1()
self.btn_setting.onClick:Set(handler(self, self.ClickSetting)) self.btn_setting.onClick:Set(handler(self, self.ClickSetting))
local config = ExtendManager.GetExtendConfig(_room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetailOnlyPlay(json.encode(_room.room_config.config),
json.encode(_room.room_config.config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
end end
function M:ClickSetting() function M:ClickSetting()
@ -831,7 +837,7 @@ function M:OnHuCard(...)
end) end)
coroutine.start(function() coroutine.start(function()
coroutine.wait(0.5) coroutine.wait(0.3)
loader_HuEffect.visible = false loader_HuEffect.visible = false
local Effects = {} local Effects = {}
@ -874,6 +880,13 @@ function M:OnHuCard(...)
end end
end end
--小于四个字段时动态调整胡特效
if info._viewText_cardInfo["huEffet_columnGap"] and #Effects < 4 then
list_HuCardEffect.columnGap = tonumber(info._viewText_cardInfo["huEffet_columnGap"])
else
list_HuCardEffect.columnGap = 0
end
-- ↓↓↓播放动画 -- ↓↓↓播放动画
for _, imgObj in pairs(Effects) do for _, imgObj in pairs(Effects) do
imgObj.visible = true imgObj.visible = true
@ -893,13 +906,15 @@ function M:OnHuCard(...)
coroutine.wait(0.5) coroutine.wait(0.5)
end end
--根据字段动态调整间距
-- 扣分动画 -- 扣分动画
for _, pScore in pairs(scoreData) do for _, pScore in pairs(scoreData) do
local infoView = self._player_info[self:GetPos(pScore.seat)] local infoView = self._player_info[self:GetPos(pScore.seat)]
infoView:UpdateScore(pScore.total_score, true) infoView:UpdateScore(pScore.total_score, true)
end end
coroutine.wait(0.5) coroutine.wait(0.3)
self._popEvent = true self._popEvent = true
list_HuCardEffect:RemoveChildrenToPool() list_HuCardEffect:RemoveChildrenToPool()
@ -942,8 +957,8 @@ function M:OnFangziAction(...)
self._popEvent = true self._popEvent = true
end) end)
if (player.seat ~= fz.from_seat and fz.type ~= FZType.Gang_Peng) then
self:RemoveCursor() self:RemoveCursor()
if (player.seat ~= fz.from_seat) then
local fs_info = _player_card_info[self:GetPos(fz.from_seat)] local fs_info = _player_card_info[self:GetPos(fz.from_seat)]
fs_info:UpdateOutCardList() fs_info:UpdateOutCardList()
end end
@ -970,7 +985,7 @@ function M:Show()
local win = GameInfoWindow.New() local win = GameInfoWindow.New()
win:Show(self._room) win:Show(self._room)
end end
self:PlayMJSound("game_backmusic.mp3") self:PlayMJMusic("game_backmusic.mp3")
self:DoNoticeAnimation() self:DoNoticeAnimation()
end end

View File

@ -51,7 +51,8 @@ function M:FillRoomData()
local config = ExtendManager.GetExtendConfig(_room.game_id) local config = ExtendManager.GetExtendConfig(_room.game_id)
local mode = config:GetGameInfo() local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(json.encode(_room.room_config.config), json.encode(_room.room_config.hpData)) local gamePlay = mode:LoadConfigToDetailOnlyPlay(json.encode(_room.room_config.config),
json.encode(_room.room_config.config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay self._view:GetChild('wanfa_text').text = gamePlay
end end

View File

@ -49,6 +49,7 @@ end
function M:init() function M:init()
local CardInfo = self._view:GetChild('Text_CardInfo') local CardInfo = self._view:GetChild('Text_CardInfo')
printlog("lingmeng json text", CardInfo.text)
self._viewText_cardInfo = json.decode(CardInfo.text) self._viewText_cardInfo = json.decode(CardInfo.text)
self._view_handCardList = self._view:GetChild('List_HandCard') self._view_handCardList = self._view:GetChild('List_HandCard')
@ -509,6 +510,13 @@ function M:ShowHand(cards)
list:RemoveChildren(0, -1, true) list:RemoveChildren(0, -1, true)
--list:RemoveChildren() --list:RemoveChildren()
local passcard = false local passcard = false
if self._mainView:GetPos(self._player.seat) == 2 or self._mainView:GetPos(self._player.seat) == 3 then
local tem = {}
for i = #cards, 1, -1 do
table.insert(tem, cards[i])
end
cards = tem
end
for _, card in pairs(cards) do for _, card in pairs(cards) do
if self.winCard == cards and passcard == false then if self.winCard == cards and passcard == false then
passcard = true passcard = true

View File

@ -107,25 +107,42 @@ function M:init(url)
end end
end) end)
self.slider_sound.value = GameApplication.Instance.SoundValue
self.slider_music.value = GameApplication.Instance.MusicValue
self.btn_sound.selected = GameApplication.Instance.SoundMute
self.btn_music.selected = GameApplication.Instance.MusicMute
self.slider_music.onChanged:Add(function() self.slider_music.onChanged:Add(function()
GameApplication.Instance.MusicValue = self.slider_music.value local value = math.floor(self.slider_music.value)
if value > 0 then
self.btn_music.selected = false self.btn_music.selected = false
GameApplication.Instance.MusicMute = false; GameApplication.Instance.MusicMute = false;
else
self.btn_music.selected = true
GameApplication.Instance.MusicMute = true;
end
GameApplication.Instance.MusicValue = value
end) end)
self.slider_sound.onChanged:Add(function() self.slider_sound.onChanged:Add(function()
GameApplication.Instance.SoundValue = self.slider_sound.value local value = math.floor(self.slider_sound.value)
if value > 0 then
self.btn_sound.selected = false self.btn_sound.selected = false
GameApplication.Instance.SoundMute = false; GameApplication.Instance.SoundMute = false;
else
self.btn_sound.selected = true
GameApplication.Instance.SoundMute = true;
end
GameApplication.Instance.SoundValue = value
end) end)
self.btn_sound.onClick:Add(function() self.btn_sound.onClick:Add(function()
self.slider_sound.value = 0
GameApplication.Instance.SoundMute = self.btn_sound.selected; GameApplication.Instance.SoundMute = self.btn_sound.selected;
self.slider_sound.value = 0
GameApplication.Instance.SoundValue = 0
end) end)
self.btn_music.onClick:Add(function() self.btn_music.onClick:Add(function()
self.slider_music.value = 0
GameApplication.Instance.MusicMute = self.btn_music.selected; GameApplication.Instance.MusicMute = self.btn_music.selected;
end) end)

View File

@ -12,7 +12,6 @@ local bg_config = {
{ id = 3, url = "base/main_majiang/bg/bg4", thumb = "ui://Main_Majiang/b04" } { id = 3, url = "base/main_majiang/bg/bg4", thumb = "ui://Main_Majiang/b04" }
} }
local M = {} local M = {}
setmetatable(M, { __index = WitnessView }) setmetatable(M, { __index = WitnessView })
M.HuCardImg = HuCardImg M.HuCardImg = HuCardImg
@ -52,6 +51,12 @@ function M:InitView()
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))
self._view_clearingFather = self._view:GetChild('clearing_show') self._view_clearingFather = self._view:GetChild('clearing_show')
local config = ExtendManager.GetExtendConfig(room.game_id)
local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetailOnlyPlay(json.encode(room.room_config.config),
json.encode(room.room_config.config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay
end end
function M:ClickSetting() function M:ClickSetting()
@ -61,7 +66,7 @@ end
function M:Show() function M:Show()
getmetatable(M).__index.Show(self) getmetatable(M).__index.Show(self)
self:PlayMJSound("game_backmusic.mp3") self:PlayMJMusic("game_backmusic.mp3")
end end
local majiang_asset_path = "base/main_majiang/sound/" local majiang_asset_path = "base/main_majiang/sound/"
@ -79,6 +84,14 @@ function M:PlaySound(group, sex, path)
ViewUtil.PlaySound(group, path1) ViewUtil.PlaySound(group, path1)
end end
function M:GetPlayerInfo(playId)
for _, info in pairs(self._player_info) do
if info._player.self_user.account_id == playId then
return info
end
end
end
function M:EventInit() function M:EventInit()
getmetatable(M).__index.EventInit(self) getmetatable(M).__index.EventInit(self)
local _gamectr = self._gamectr local _gamectr = self._gamectr

View File

@ -5,7 +5,7 @@
<image id="n17_nuxq" name="bg" src="xblm7jbk" fileName="images/bg.png" xy="0,0" size="1182,552"> <image id="n17_nuxq" name="bg" src="xblm7jbk" fileName="images/bg.png" xy="0,0" size="1182,552">
<relation target="" sidePair="width-width,height-height"/> <relation target="" sidePair="width-width,height-height"/>
</image> </image>
<richtext id="n18_xblm" name="tex_message" xy="88,157" size="1005,193" font="Alimama FangYuanTi VF" fontSize="45" color="#614103" align="center" vAlign="middle" ubb="true" autoSize="none" bold="true" text="空间和空间空间和空间空间和空间&#xA;空间和空间空间和空间空间和空间空间和空间空间和空间空间和空间&#xA;空间和空间空间和空间空间和空间"/> <richtext id="n18_xblm" name="tex_message" xy="87,157" size="1005,193" font="Arial" fontSize="45" color="#614103" align="center" vAlign="middle" ubb="true" autoSize="none" text="空间和空间空间和空间空间和空间&#xA;空间和空间空间和空间空间和空间空间和空间空间和空间空间和空间&#xA;空间和空间空间和空间空间和空间"/>
<component id="n4_m0vo" name="btn_ok" src="eeqmcgp" fileName="buttons/Btn_Common.xml" xy="436,374" size="309,114"> <component id="n4_m0vo" name="btn_ok" src="eeqmcgp" fileName="buttons/Btn_Common.xml" xy="436,374" size="309,114">
<Button title=" " icon="ui://27vd145bxblm7jbl"/> <Button title=" " icon="ui://27vd145bxblm7jbl"/>
</component> </component>

View File

@ -13,7 +13,6 @@
<relation target="n16_id5t" sidePair="bottom-top"/> <relation target="n16_id5t" sidePair="bottom-top"/>
<item/> <item/>
<item url="ui://2d9xdj6zp8hp7cz4"/> <item url="ui://2d9xdj6zp8hp7cz4"/>
<item url="ui://2d9xdj6zp8hp7cz8"/>
</list> </list>
<image id="n3_pzuc" name="n3" src="86ct7cwu" fileName="component/CreatePlay/Image/Rectangle 91.png" xy="564,157" size="1914,975"/> <image id="n3_pzuc" name="n3" src="86ct7cwu" fileName="component/CreatePlay/Image/Rectangle 91.png" xy="564,157" size="1914,975"/>
<image id="n18_p8hp" name="n18" src="p8hp7cz5" fileName="component/CreatePlay/Image/Rectangle 292.png" xy="563,945"/> <image id="n18_p8hp" name="n18" src="p8hp7cz5" fileName="component/CreatePlay/Image/Rectangle 292.png" xy="563,945"/>
@ -23,11 +22,14 @@
<list id="n6_pzuc" name="list_playName" xy="60,156" size="472,976" overflow="scroll" lineGap="24" defaultItem="ui://2d9xdj6z86ct7cwy" align="center" selectionController="playName" autoClearItems="true"> <list id="n6_pzuc" name="list_playName" xy="60,156" size="472,976" overflow="scroll" lineGap="24" defaultItem="ui://2d9xdj6z86ct7cwy" align="center" selectionController="playName" autoClearItems="true">
<item/> <item/>
</list> </list>
<text id="n13_pzuc" name="input_multiple" xy="1539,996" size="120,71" visible="false" font="ui://27vd145bh35o7ill" fontSize="42" color="#ffffff" align="center" vAlign="middle" autoSize="none" singleLine="true" text="1" input="true"/> <image id="n22_n9qr" name="n22" src="l2997iht" fileName="font/images/win/shurukuang5.png" pkg="27vd145b" xy="1667,1002" size="174,78" group="n15_pzuc"/>
<component id="n10_pzuc" name="btn_create" src="pzuc7cx5" fileName="component/CreatePlay/Component/btn_Create.xml" xy="1980,568" group="n15_pzuc"/> <component id="n19_n9qr" name="btn_create" src="eeqmcgp" fileName="buttons/Btn_Common.xml" pkg="27vd145b" xy="2034,968" size="426,144" group="n15_pzuc">
<text id="n11_pzuc" name="n11" xy="1658,606" size="110,72" group="n15_pzuc" font="ui://27vd145bh35o7ill" fontSize="54" color="#450f05" text="倍数"/> <Button title=" " titleColor="#167547" titleFontSize="24" icon="ui://2d9xdj6zp8hp7cz6"/>
<graph id="n12_pzuc" name="n12" xy="1533,607" size="120,69" group="n15_pzuc" visible="false" type="rect" lineSize="0" fillColor="#ffb8997d"/> </component>
<group id="n15_pzuc" name="buttom" xy="1533,568" size="849,147" visible="false" advanced="true"/> <component id="n20_n9qr" name="btn_changeTimes" src="n9qr7d9b" fileName="component/CreatePlay/Component/Btn_noImage.xml" xy="1667,1002" size="174,78" group="n15_pzuc"/>
<text id="n23_n9qr" name="tex_times" xy="1667,1002" size="174,78" group="n15_pzuc" font="ui://27vd145bh35o7ilb" fontSize="48" color="#222222" align="center" vAlign="middle" autoSize="shrink" text="1" input="true"/>
<text id="n21_n9qr" name="n21" xy="1506,999" size="169,86" group="n15_pzuc" font="ui://27vd145bh35o7im7" fontSize="66" color="#450f05" vAlign="middle" autoSize="none" text="倍数:"/>
<group id="n15_pzuc" name="Lobby_create" xy="1506,968" size="954,144" visible="false" advanced="true"/>
<list id="n16_id5t" name="list_playPanel" xy="564,158" size="1906,787" overflow="scroll"/> <list id="n16_id5t" name="list_playPanel" xy="564,158" size="1906,787" overflow="scroll"/>
</displayList> </displayList>
</component> </component>

View File

@ -1,9 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="1750,800" overflow="scroll" extention="Label"> <component size="1750,800" overflow="scroll" extention="Label">
<displayList> <displayList>
<image id="n9_xx1c" name="n9" src="xx1c7d8o" fileName="GamePlay/image/jinxiDetaill1.png" xy="0,0"/> <image id="n13_n9qr" name="n13" src="n9qr7d99" fileName="GamePlay/image/jinxiDetaill.png" xy="0,0" scale="1,0.85"/>
<image id="n10_xx1c" name="n10" src="xx1c7d8p" fileName="GamePlay/image/jinxiDetaill2.png" xy="0,673"/>
<image id="n11_xx1c" name="n11" src="xx1c7d8q" fileName="GamePlay/image/jinxiDetaill3.png" xy="0,1340"/>
<image id="n12_xx1c" name="n12" src="xx1c7d8n" fileName="GamePlay/image/jinxiDetaill4.png" xy="0,2080"/>
</displayList> </displayList>
</component> </component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="100,20" extention="Button">
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
<displayList>
<graph id="n0_icoc" name="n0" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="0"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
<graph id="n1_icoc" name="n1" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="2"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
<graph id="n2_icoc" name="n2" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="1,3"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
</displayList>
<Button/>
</component>

View File

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="78,60" pivot="0.5,0.5" extention="Button"> <component size="78,60" pivot="0.5,0.5" extention="Button">
<controller name="button" pages="0,up,1,down,3,over,4,selectedOver" selected="3"/> <controller name="button" pages="0,up,1,down,3,over,4,selectedOver" selected="0"/>
<displayList> <displayList>
<image id="n5_h35o" name="n5" src="h35o7crs" fileName="component/Setting/Image/Vector@3x.png" xy="0,0"> <image id="n5_h35o" name="n5" src="h35o7crs" fileName="component/Setting/Image/Vector@3x.png" xy="0,0" size="78,60">
<gearDisplay controller="button" pages="0,3"/> <gearDisplay controller="button" pages="0,3"/>
<gearSize controller="button" pages="3" values="78,60,1.2,1.2" default="78,60,1,1"/> <gearSize controller="button" pages="0,3" values="78,60,1,1|78,60,1.2,1.2" default="78,60,1,1"/>
</image> </image>
<image id="n6_h35o" name="n6" src="h35o7crm" fileName="component/Setting/Image/Group 82@3x.png" xy="0,-2" scale="1.2,1.2"> <image id="n6_h35o" name="n6" src="h35o7crm" fileName="component/Setting/Image/Group 82@3x.png" xy="0,-2" size="78,60">
<gearDisplay controller="button" pages="1,4"/> <gearDisplay controller="button" pages="1,4"/>
<gearSize controller="button" pages="4" values="80,62,1.2,1.2" default="80,62,1,1"/> <gearSize controller="button" pages="0,4" values="78,60,1,1|80,62,1.2,1.2" default="80,62,1,1"/>
</image> </image>
</displayList> </displayList>
<Button mode="Check"/> <Button mode="Check"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="100,20" extention="Button">
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
<displayList>
<graph id="n0_icoc" name="n0" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="0"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
<graph id="n1_icoc" name="n1" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="2"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
<graph id="n2_icoc" name="n2" xy="0,0" size="100,20" alpha="0" touchable="false" type="rect" lineSize="0" lineColor="#ffffffff">
<gearDisplay controller="button" pages="1,3"/>
<relation target="" sidePair="width-width,height-height"/>
</graph>
</displayList>
<Button/>
</component>

View File

@ -690,6 +690,9 @@
<image id="xx1c7d96" name="paodekuaiDetail1.png" path="/GamePlay/image/"/> <image id="xx1c7d96" name="paodekuaiDetail1.png" path="/GamePlay/image/"/>
<image id="xx1c7d97" name="paodekuaiDetail2.png" path="/GamePlay/image/"/> <image id="xx1c7d97" name="paodekuaiDetail2.png" path="/GamePlay/image/"/>
<component id="xx1c7d98" name="paodekuaiDetail.xml" path="/GamePlay/component/" exported="true"/> <component id="xx1c7d98" name="paodekuaiDetail.xml" path="/GamePlay/component/" exported="true"/>
<image id="n9qr7d99" name="jinxiDetaill.png" path="/GamePlay/image/" atlas="alone"/>
<component id="n9qr7d9a" name="Btn_noImage.xml" path="/mgr/"/>
<component id="n9qr7d9b" name="Btn_noImage.xml" path="/component/CreatePlay/Component/"/>
</resources> </resources>
<publish name="Lobby" path="..\wb_unity_pro\Assets\ART\base\lobby\ui" packageCount="2"> <publish name="Lobby" path="..\wb_unity_pro\Assets\ART\base\lobby\ui" packageCount="2">
<atlas name="默认" index="0"/> <atlas name="默认" index="0"/>

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="360,129" extention="Button"> <component size="360,129" pivot="0.5,0.5" extention="Button">
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/> <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
<displayList> <displayList>
<image id="n3_pkx5" name="n3" src="xblm1a9" fileName="Main_new/Main/Image/Setting_6.png" xy="0,0" size="360,129"> <image id="n3_pkx5" name="n3" src="xblm1a9" fileName="Main_new/Main/Image/Setting_6.png" xy="0,0" size="360,129">
<relation target="" sidePair="width-width,height-height"/> <relation target="" sidePair="width-width,height-height"/>
</image> </image>
</displayList> </displayList>
<Button downEffect="dark" downEffectValue="0.8"/> <Button downEffect="scale" downEffectValue="1.2"/>
</component> </component>

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="960,372" pivot="0.5,0.5" opaque="false"> <component size="960,372" pivot="0.5,0.5" opaque="false">
<displayList> <displayList>
<loader id="n1_m21r" name="loader_img" xy="144,111" pivot="0.5,0.5" size="671,146" aspect="true" url="ui://v0j9abjywhhc1f7" align="center" vAlign="middle" fill="scale"> <loader id="n1_m21r" name="loader_img" xy="204,124" pivot="0.5,0.5" size="551,120" aspect="true" url="ui://v0j9abjywhhc1f5" align="center" vAlign="middle" fill="scale">
<relation target="" sidePair="width-width,center-center,middle-middle"/> <relation target="" sidePair="center-center,middle-middle"/>
</loader> </loader>
<movieclip id="n2_m21r" name="effect_xingxing" src="xqxr1er" fileName="Main_new/Main/Component/xingxing.jta" xy="240,6" size="480,360" aspect="true"> <movieclip id="n2_m21r" name="effect_xingxing" src="xqxr1er" fileName="Main_new/Main/Component/xingxing.jta" xy="240,4" size="480,360" aspect="true">
<relation target="n1_m21r" sidePair="center-center,middle-middle"/> <relation target="n1_m21r" sidePair="center-center,middle-middle"/>
</movieclip> </movieclip>
</displayList> </displayList>

View File

@ -100,12 +100,15 @@
<gearXY controller="3d" pages="0" values="-1945,-1060" default="616,100"/> <gearXY controller="3d" pages="0" values="-1945,-1060" default="616,100"/>
</image> </image>
<text id="n66_ogwn" name="Text_CardInfo" xy="-2053,594" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b203_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:28,&#xA;&quot;Order&quot;:&quot;desc&quot;,&#xA;&quot;IS_SIDE&quot;:&quot;true&quot;&#xA;}"/> <text id="n66_ogwn" name="Text_CardInfo" xy="-2053,594" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b203_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:28,&#xA;&quot;Order&quot;:&quot;desc&quot;,&#xA;&quot;IS_SIDE&quot;:&quot;true&quot;&#xA;}"/>
<list id="n67_jzul" name="list_HuEffect" xy="1572,6" size="960,1170" layout="flow_vt" selectionMode="none" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" align="center" vAlign="middle" autoClearItems="true"> <list id="n67_jzul" name="list_HuEffect" xy="1572,6" size="960,1170" layout="flow_vt" selectionMode="none" margin="60,0,0,0" lineGap="-171" colGap="-13" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" align="center" autoClearItems="true">
<item/>
<item/>
<item/>
<item/> <item/>
<item/> <item/>
</list> </list>
<loader id="n68_jzul" name="loader_selfHuCardEffect" xy="2052,514" pivot="0.5,0.5" anchor="true" size="280,200" align="center" vAlign="middle"/> <loader id="n68_jzul" name="loader_selfHuCardEffect" xy="2052,513" pivot="0.5,0.5" anchor="true" size="280,200" align="center" vAlign="middle"/>
<movieclip id="n69_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="2052,514" 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,513" 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"> <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">

View File

@ -4,7 +4,7 @@
<controller name="ting" pages="0,,1," selected="0"/> <controller name="ting" pages="0,,1," selected="0"/>
<controller name="site" pages="0,2-1,1,2-2" selected="0"/> <controller name="site" pages="0,2-1,1,2-2" selected="0"/>
<controller name="getCard" pages="0,,1," selected="0"/> <controller name="getCard" pages="0,,1," selected="0"/>
<controller name="cStie" exported="true" pages="0,,1,,2," selected="2"> <controller name="cStie" exported="true" pages="0,,1,,2," selected="0">
<remark page="0" value="2人"/> <remark page="0" value="2人"/>
<remark page="1" value="3人"/> <remark page="1" value="3人"/>
<remark page="2" value="4人"/> <remark page="2" value="4人"/>
@ -24,7 +24,6 @@
<item/> <item/>
<item/> <item/>
<item/> <item/>
<item/>
</list> </list>
<list id="n38_gi99" name="List_FZ" xy="478,18" size="1329,103" touchable="false" layout="row" selectionMode="none" colGap="7" defaultItem="ui://v0j9abjygi9910r" autoItemSize="false" align="right" vAlign="bottom" autoClearItems="true"> <list id="n38_gi99" name="List_FZ" xy="478,18" size="1329,103" touchable="false" layout="row" selectionMode="none" colGap="7" defaultItem="ui://v0j9abjygi9910r" autoItemSize="false" align="right" vAlign="bottom" autoClearItems="true">
<relation target="" sidePair="width-width%,height-height%,top-top"/> <relation target="" sidePair="width-width%,height-height%,top-top"/>
@ -33,7 +32,7 @@
<item/> <item/>
<item/> <item/>
</list> </list>
<list id="n41_gi99" name="List_OutCard" xy="833,160" size="887,502" touchable="false" pageController="ting" layout="flow_hz" selectionMode="none" margin="40,0,0,0" lineGap="-20" colGap="-7" defaultItem="ui://v0j9abjywcy51g8" autoItemSize="true" align="right" autoClearItems="true"> <list id="n41_gi99" name="List_OutCard" xy="265,165" size="2097,502" touchable="false" pageController="ting" layout="flow_hz" selectionMode="none" margin="40,0,0,0" lineGap="-20" colGap="-7" defaultItem="ui://v0j9abjywcy51g8" autoItemSize="true" align="right" autoClearItems="true">
<gearXY controller="cStie" pages="0,1,2" values="265,165|324,103|833,160"/> <gearXY controller="cStie" pages="0,1,2" values="265,165|324,103|833,160"/>
<gearSize controller="cStie" pages="1,2" values="1217,502,1,1|887,502,1,1" default="2097,502,1,1"/> <gearSize controller="cStie" pages="1,2" values="1217,502,1,1|887,502,1,1" default="2097,502,1,1"/>
<relation target="" sidePair="width-width%,height-height%,top-top"/> <relation target="" sidePair="width-width%,height-height%,top-top"/>
@ -81,8 +80,8 @@
<gearDisplay controller="ting" pages="1"/> <gearDisplay controller="ting" pages="1"/>
<gearXY controller="3d" pages="0" values="-1732,-1096" default="616,100"/> <gearXY controller="3d" pages="0" values="-1732,-1096" default="616,100"/>
</image> </image>
<text id="n53_ogwn" name="Text_CardInfo" xy="-1881,281" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-6 &quot;&#xA;}"> <text id="n53_ogwn" name="Text_CardInfo" xy="-1881,281" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-3&quot;,&#xA;&quot;huEffet_columnGap&quot;:&quot;-666&quot;&#xA;}">
<gearText controller="cStie" pages="0,1,2" values="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-3&quot;&#xA;}|{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-3&quot;&#xA;}|{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-6 &quot;&#xA;}"/> <gearText controller="cStie" pages="0,1,2" values="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-3&quot;,&#xA;&quot;huEffet_columnGap&quot;:&quot;-666&quot;&#xA;}|{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-3&quot;&#xA;}|{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Get_Card&quot;:&quot;100&quot;,&#xA;&quot;Pos_Y&quot;:-28,&#xA;&quot;Order&quot;:&quot;asc&quot;,&#xA;&quot;back_columnGap&quot;:&quot;-9&quot;,&#xA;&quot;show_columnGap&quot;:&quot;-6 &quot;&#xA;}"/>
</text> </text>
<list id="n54_jzul" name="list_HuEffect" xy="-1,32" size="2532,420" touchable="false" layout="flow_hz" selectionMode="none" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" align="center" vAlign="middle" autoClearItems="true"> <list id="n54_jzul" name="list_HuEffect" xy="-1,32" size="2532,420" touchable="false" layout="flow_hz" selectionMode="none" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" align="center" vAlign="middle" autoClearItems="true">
<item/> <item/>

View File

@ -96,9 +96,10 @@
<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"> <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%"/> <relation target="" sidePair="width-width%,height-height%"/>
</component> </component>
<list id="n58_jzul" name="list_HuEffect" xy="0,568" size="2532,420" touchable="false" layout="flow_hz" selectionMode="none" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" align="center" vAlign="middle" autoClearItems="true"> <list id="n58_jzul" name="list_HuEffect" xy="0,568" size="2532,420" touchable="false" layout="flow_hz" selectionMode="none" lineGap="7" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" 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/>
<item/>
</list> </list>
<component id="n51_ogwn" name="area_fz_list" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-2533,-1563" size="11,249"/> <component id="n51_ogwn" name="area_fz_list" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-2533,-1563" size="11,249"/>
<component id="n53_ogwn" name="mask_liangpai" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-2143,-1300" size="1,1"/> <component id="n53_ogwn" name="mask_liangpai" src="gq7m8i" fileName="Main_style_2/Component1.xml" xy="-2143,-1300" size="1,1"/>
@ -107,7 +108,7 @@
<gearDisplay controller="ting" pages="1"/> <gearDisplay controller="ting" pages="1"/>
<gearXY controller="3d" pages="0" values="-2193,-1423" default="616,100"/> <gearXY controller="3d" pages="0" values="-2193,-1423" default="616,100"/>
</image> </image>
<text id="n57_ogwn" name="Text_CardInfo" xy="-2587,110" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b201_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b201_&quot;,&#xA;&quot;Order&quot;:&quot;desc&quot;,&#xA;&quot;Pos_X&quot;:57&#xA;}"/> <text id="n57_ogwn" name="Text_CardInfo" xy="-2587,106" size="813,973" visible="false" fontSize="30" autoSize="none" text="{&#xA;&quot;FZ_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Out_Card&quot;:&quot;b202_&quot;,&#xA;&quot;Hand_Card&quot;:&quot;b201_&quot;,&#xA;&quot;Get_Card&quot;:&quot;b201_&quot;,&#xA;&quot;Order&quot;:&quot;desc&quot;,&#xA;&quot;Pos_X&quot;:57,&#xA;&quot;huEffet_columnGap&quot;:&quot;-666&quot;&#xA;}"/>
<component id="n39_nee3" name="Comp_FZTips" src="nee311b" fileName="Main_new/FZTips/Comp_FZTips.xml" xy="184,657"> <component id="n39_nee3" name="Comp_FZTips" src="nee311b" fileName="Main_new/FZTips/Comp_FZTips.xml" xy="184,657">
<gearDisplay controller="tip" pages="1"/> <gearDisplay controller="tip" pages="1"/>
<relation target="" sidePair="bottom-bottom"/> <relation target="" sidePair="bottom-bottom"/>

View File

@ -87,7 +87,9 @@
<movieclip id="n68_66fw" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="511,503" 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,503" 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>
<list id="n66_jzul" name="list_HuEffect" xy="31,-2" size="960,1170" layout="flow_vt" selectionMode="none" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" autoItemSize="true" align="center" vAlign="middle" autoClearItems="true"> <list id="n66_jzul" name="list_HuEffect" xy="31,-2" size="960,1170" layout="flow_vt" selectionMode="none" margin="60,0,0,0" lineGap="-171" lineItemCount="4" defaultItem="ui://v0j9abjyxqxr1eq" align="center" autoClearItems="true">
<item/>
<item/>
<item/> <item/>
<item/> <item/>
</list> </list>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="100,83"> <component size="100,83">
<controller name="jing" pages="0,,1," selected="0"/> <controller name="jing" pages="0,,1," selected="1"/>
<displayList> <displayList>
<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"> <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,25" size="43,63" aspect="true" flip="vt">
<gearDisplay controller="jing" pages="1"/> <gearDisplay controller="jing" pages="1"/>
<relation target="" sidePair="width-width,height-height"/> <relation target="" sidePair="width-width,height-height"/>
</image> </image>

View File

@ -32,7 +32,7 @@
</component> </component>
<component id="n31_xblm" name="btn_vedio_music" src="xblm1ak" fileName="component/Setting/Component/btn_vedio.xml" xy="1198,544" group="n32_xblm"/> <component id="n31_xblm" name="btn_vedio_music" src="xblm1ak" fileName="component/Setting/Component/btn_vedio.xml" xy="1198,544" group="n32_xblm"/>
<group id="n32_xblm" name="music" xy="205,531" size="1071,94"/> <group id="n32_xblm" name="music" xy="205,531" size="1071,94"/>
<component id="n16_qt01" name="btn_closeRoom" src="pkx5sv" fileName="Main_new/Main/Component/btn_closeRoom.xml" xy="514,674" size="409,160"> <component id="n16_qt01" name="btn_closeRoom" src="pkx5sv" fileName="Main_new/Main/Component/btn_closeRoom.xml" xy="514,673" size="409,160">
<gearDisplay controller="cBtn" pages="0"/> <gearDisplay controller="cBtn" pages="0"/>
<relation target="" sidePair="center-center"/> <relation target="" sidePair="center-center"/>
</component> </component>

View File

@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="78,60" extention="Button"> <component size="78,60" extention="Button">
<controller name="button" pages="0,up,1,down" selected="0"/> <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="3"/>
<displayList> <displayList>
<image id="n5_h35o" name="n5" src="xblm1al" fileName="component/Setting/Image/Vector@3x.png" xy="0,0"/> <image id="n5_h35o" name="n5" src="xblm1al" fileName="component/Setting/Image/Vector@3x.png" xy="0,0" pivot="0.5,0.5" size="78,60">
<image id="n6_h35o" name="n6" src="xblm1am" fileName="component/Setting/Image/Group 82@3x.png" xy="0,-2"> <gearDisplay controller="button" pages="0,2"/>
<gearDisplay controller="button" pages="1"/> <gearSize controller="button" pages="2" values="78,60,1.2,1.2" default="78,60,1,1"/>
</image>
<image id="n6_h35o" name="n6" src="xblm1am" fileName="component/Setting/Image/Group 82@3x.png" xy="0,-2" pivot="0.5,0.5" size="78,60" scale="1.2,1.2">
<gearDisplay controller="button" pages="1,3"/>
<gearSize controller="button" pages="3" values="78,60,1.2,1.2" default="78,60,1,1"/>
</image> </image>
</displayList> </displayList>
<Button mode="Check"/> <Button mode="Check"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 813 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -1,92 +0,0 @@
fileFormatVersion: 2
guid: 8a71b2d845e5a5a4ab9165c3f6d80211
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName: base/lobby/4a425335ab0e1c246f741e6da62b244f
assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 928 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 728 KiB

After

Width:  |  Height:  |  Size: 729 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 8adbc7c19a2a16849944471527497794 guid: b9f3988153af3d342a1f641c66b8cc05
TextureImporter: TextureImporter:
internalIDToNameTable: [] internalIDToNameTable: []
externalObjects: {} externalObjects: {}
@ -88,5 +88,5 @@ TextureImporter:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0 pSDShowRemoveMatteOption: 0
userData: userData:
assetBundleName: base/lobby/4a425335ab0e1c246f741e6da62b244f assetBundleName:
assetBundleVariant: assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 155 KiB

View File

@ -614,9 +614,17 @@ namespace LuaInterface
} }
public int LuaUpdate(float delta, float unscaled) public int LuaUpdate(float delta, float unscaled)
{
try
{ {
return LuaDLL.tolua_update(L, delta, unscaled); return LuaDLL.tolua_update(L, delta, unscaled);
} }
catch (Exception e)
{
Debug.LogError($"[Lua C# Exception] {e}\n{e.StackTrace}");
throw; //(可选,让 Lua pcall 接到错误)
}
}
public int LuaLateUpdate() public int LuaLateUpdate()
{ {

View File

@ -8,34 +8,34 @@
"bundle": "extend/poker/runfast" "bundle": "extend/poker/runfast"
}, },
{ {
"ver": "1.0.46", "ver": "1.0.47",
"name": "南城麻将", "name": "南城麻将",
"check": true, "check": true,
"version": "1.0.46", "version": "1.0.47",
"game_id": "86", "game_id": "86",
"bundle": "extend/majiang/nancheng" "bundle": "extend/majiang/nancheng"
}, },
{ {
"ver": "1.0.49", "ver": "1.0.50",
"name": "黎川麻将", "name": "黎川麻将",
"check": true, "check": true,
"version": "1.0.49", "version": "1.0.50",
"game_id": "87", "game_id": "87",
"bundle": "extend/majiang/lichuan" "bundle": "extend/majiang/lichuan"
}, },
{ {
"ver": "1.0.33", "ver": "1.0.34",
"name": "金溪麻将", "name": "金溪麻将",
"check": true, "check": true,
"version": "1.0.33", "version": "1.0.34",
"game_id": "88", "game_id": "88",
"bundle": "extend/majiang/jinxi" "bundle": "extend/majiang/jinxi"
}, },
{ {
"ver": "1.0.32", "ver": "1.0.33",
"name": "抚州麻将", "name": "抚州麻将",
"check": true, "check": true,
"version": "1.0.32", "version": "1.0.33",
"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.6", "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.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "common", "name": "common",
"check": true, "check": true,
"bundle": "base/common", "bundle": "base/common",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "login", "name": "login",
"check": true, "check": true,
"bundle": "base/login", "bundle": "base/login",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "lobby", "name": "lobby",
"check": true, "check": true,
"bundle": "base/lobby", "bundle": "base/lobby",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "Family", "name": "Family",
"check": true, "check": true,
"bundle": "base/Family", "bundle": "base/Family",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "chat", "name": "chat",
"check": true, "check": true,
"bundle": "base/chat", "bundle": "base/chat",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "newgroup", "name": "newgroup",
"check": true, "check": true,
"bundle": "base/newgroup", "bundle": "base/newgroup",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "rank", "name": "rank",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/rank" "bundle": "base/rank"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "main_majiang", "name": "main_majiang",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/main_majiang" "bundle": "base/main_majiang"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "main_poker", "name": "main_poker",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/main_poker" "bundle": "base/main_poker"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "main_zipai", "name": "main_zipai",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/main_zipai" "bundle": "base/main_zipai"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "static", "name": "static",
"check": true, "check": true,
"bundle": "base/static", "bundle": "base/static",
"version": "1.0.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "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.6" "version": "1.0.7"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "main_pokemajiang", "name": "main_pokemajiang",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/main_pokemajiang" "bundle": "base/main_pokemajiang"
}, },
{ {
"ver": "1.0.6", "ver": "1.0.7",
"name": "main_zipaimajiang", "name": "main_zipaimajiang",
"check": true, "check": true,
"version": "1.0.6", "version": "1.0.7",
"bundle": "base/main_zipaimajiang" "bundle": "base/main_zipaimajiang"
} }
] ]

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