8.23提交

master
罗家炜 2025-08-23 22:23:17 +08:00
parent 94b7b5e517
commit 1813727234
71 changed files with 835 additions and 773 deletions

View File

@ -1,6 +1,5 @@
ModalWaitingWindow = { ModalWaitingWindow = {
} }
local M = ModalWaitingWindow local M = ModalWaitingWindow
@ -8,7 +7,7 @@ local M = ModalWaitingWindow
local modal_wait_win_url = "ui://Common/GlobalModalWaiting" local modal_wait_win_url = "ui://Common/GlobalModalWaiting"
local modal_panel = nil local modal_panel = nil
function ModalWaitingWindow.new() function ModalWaitingWindow.new()
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = "ModalWaitingWindow" self.class = "ModalWaitingWindow"
self._view = UIPackage.CreateObjectFromURL(modal_wait_win_url) self._view = UIPackage.CreateObjectFromURL(modal_wait_win_url)
self.txt_title = self._view:GetChild("title") self.txt_title = self._view:GetChild("title")
@ -22,7 +21,7 @@ function ModalWaitingWindow.new()
self._view:Center() self._view:Center()
GRoot.inst:AddChild(modal_panel) GRoot.inst:AddChild(modal_panel)
return self return self
end end
function M:Show() function M:Show()
modal_panel.visible = true modal_panel.visible = true
@ -47,7 +46,7 @@ function ModalWaitingWindow.ShowModal(title)
end end
function ModalWaitingWindow.CloseModal() function ModalWaitingWindow.CloseModal()
if(_inst) then if (_inst) then
_inst:Close() _inst:Close()
end end
end end

View File

@ -194,7 +194,7 @@ function M:_evtInviteResponse(...)
return return
else else
UpdateBeat:Remove(self.OnUpdate, self) UpdateBeat:Remove(self.OnUpdate, self)
ViewManager.ChangeView(ViewManager.View_Main, gameId) ViewManager.ChangeView(ViewManager.View_Main, gameId, { _flag_showTip = true })
end end
end, end,
groupid, groupid,

View File

@ -72,8 +72,8 @@ function M:FillData()
local config = ExtendManager.GetExtendConfig(play.gameId) local config = ExtendManager.GetExtendConfig(play.gameId)
local mode = config:GetGameInfo() local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(play.config) local gamePlay = mode:LoadConfigToDetail(play.config, play.hpData)
self._viewText_playConfig.text = play.hp_times/1000 .. "倍," .. gamePlay self._viewText_playConfig.text = play.hp_times / 1000 .. "倍," .. gamePlay
end end
function M:Destroy() function M:Destroy()

View File

@ -140,7 +140,6 @@ function FamilyMyFamily:Close()
end end
function FamilyMyFamily:Refalsh() function FamilyMyFamily:Refalsh()
self.family = DataManager.groups.groupMap[self.groupId] self.family = DataManager.groups.groupMap[self.groupId]
self.tex_fName.text = Utils.TextOmit(self.family.name, 6, "...") self.tex_fName.text = Utils.TextOmit(self.family.name, 6, "...")
@ -220,9 +219,11 @@ function FamilyMyFamily:Init()
if curView.class == "FamilyMainView" then if curView.class == "FamilyMainView" then
curView:PlayEdit() curView:PlayEdit()
else else
local view = ViewManager.ChangeView(ViewManager.View_Family, function() local view = ViewManager.ChangeView(ViewManager.View_Family, {
view:PlayEdit() _s_callback = function()
end) view:PlayEdit()
end
})
end end
end) end)
@ -236,9 +237,11 @@ function FamilyMyFamily:Init()
if curView.class == "FamilyMainView" then if curView.class == "FamilyMainView" then
curView:ShowShop() curView:ShowShop()
else else
local view = ViewManager.ChangeView(ViewManager.View_Family, function() local view = ViewManager.ChangeView(ViewManager.View_Family, {
view:ShowShop() _s_callback = function()
end) view:ShowShop()
end
})
end end
end) end)

View File

@ -74,7 +74,8 @@ function PlayEditView:Init()
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 .. "倍," .. mode:LoadConfigToDetail(playList[index].config) obj:GetChild('Label_details'):GetChild('title').text = times / 1000 ..
"倍," .. mode:LoadConfigToDetail(playList[index].config, 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

View File

@ -256,10 +256,11 @@ function M:Reflash()
--self:ConnetFamily(1, groups) --self:ConnetFamily(1, groups)
self.list_family.numItems = #DataManager.groups.groupList self.list_family.numItems = #DataManager.groups.groupList
local chooseIndex = 1 local chooseIndex = 1
if FamilyView.lastId then local lastID = Utils.LoadLocalFile("Family_lastID" .. DataManager.SelfUser.account_id)
if lastID then
lastID = tonumber(lastID)
for i = 1, #DataManager.groups.groupList do for i = 1, #DataManager.groups.groupList do
if FamilyView.lastId == DataManager.groups.groupList[i].id then if lastID == DataManager.groups.groupList[i].id then
FamilyView.lastId = nil
chooseIndex = i chooseIndex = i
end end
end end
@ -605,7 +606,8 @@ function M:UpdateFamilyRoom(fgCtr, id)
local gameId = playGameInfoTable[roomList[newIndex].pid].gameId local gameId = playGameInfoTable[roomList[newIndex].pid].gameId
local config = ExtendManager.GetExtendConfig(gameId) local config = ExtendManager.GetExtendConfig(gameId)
local mode = config:GetGameInfo() local mode = config:GetGameInfo()
local gamePlay = mode:LoadConfigToDetail(playGameInfoTable[roomList[newIndex].pid].config) local gamePlay = mode:LoadConfigToDetail(playGameInfoTable[roomList[newIndex].pid].config,
playGameInfoTable[roomList[newIndex].pid].hpData)
local play = self._group:getPlay(roomList[newIndex].pid) local play = self._group:getPlay(roomList[newIndex].pid)
local times = json.decode(play.hpData).times local times = json.decode(play.hpData).times
gamePlay = times / 1000 .. "倍," .. gamePlay gamePlay = times / 1000 .. "倍," .. gamePlay
@ -648,7 +650,7 @@ function M:UpdateFamilyRoom(fgCtr, id)
else else
UpdateBeat:Remove(self.OnUpdate, self) UpdateBeat:Remove(self.OnUpdate, self)
FamilyView.lastId = self._group.id FamilyView.lastId = self._group.id
ViewManager.ChangeView(ViewManager.View_Main, gameId) ViewManager.ChangeView(ViewManager.View_Main, gameId, { _flag_showTip = true })
end end
end, end,
id, id,
@ -690,7 +692,7 @@ function M:UpdateFamilyRoom(fgCtr, id)
-- times倍数 -- times倍数
local times = json.decode(playList[newIndex].hpData).times local times = json.decode(playList[newIndex].hpData).times
local gamePlay = times / 1000 .. "倍," local gamePlay = times / 1000 .. "倍,"
gamePlay = gamePlay .. mode:LoadConfigToDetail(playList[newIndex].config) gamePlay = gamePlay .. mode:LoadConfigToDetail(playList[newIndex].config, playList[newIndex].hpData)
obj:GetChild('Label_gameRule').title = gamePlay obj:GetChild('Label_gameRule').title = gamePlay
local roomName = Utils.TextOmit(playList[newIndex].name, 6, "") local roomName = Utils.TextOmit(playList[newIndex].name, 6, "")
roomName = string.format("%s%s", playList[newIndex].game_name, roomName) roomName = string.format("%s%s", playList[newIndex].game_name, roomName)
@ -724,7 +726,8 @@ function M:UpdateFamilyRoom(fgCtr, id)
else else
UpdateBeat:Remove(self.OnUpdate, self) UpdateBeat:Remove(self.OnUpdate, self)
FamilyView.lastId = self._group.id FamilyView.lastId = self._group.id
ViewManager.ChangeView(ViewManager.View_Main, playList[newIndex].gameId) ViewManager.ChangeView(ViewManager.View_Main, playList[newIndex].gameId,
{ _flag_showTip = true })
end end
end, end,
id, id,
@ -821,6 +824,7 @@ function M:ConnetFamily(index, groups)
local fgCtr = ControllerManager.GetController(NewGroupController) local fgCtr = ControllerManager.GetController(NewGroupController)
ViewUtil.ShowModalWait(self._root_view, "正在进入亲友圈......") ViewUtil.ShowModalWait(self._root_view, "正在进入亲友圈......")
Utils.SaveLocalFile("Family_lastID" .. DataManager.SelfUser.account_id, self._group.id)
self:EnterGroup(fgCtr, self._group.id) self:EnterGroup(fgCtr, self._group.id)
--[[ --[[

View File

@ -59,7 +59,7 @@ function M:init(url)
local btn_quit = view:GetChild('btn_exitAccount') local btn_quit = view:GetChild('btn_exitAccount')
btn_quit.onClick:Set( btn_quit.onClick:Set(
function() function()
-- GameApplication.Instance:QuitGameOnUnity(); Application.Quit()
end end
) )
--[[ --[[

View File

@ -497,7 +497,7 @@ 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
-- 重连 -- 重连
self:ReconnectRoom(data.groupId) -- self:ReconnectRoom(data.groupId)
end end
end end
end) end)

View File

@ -274,8 +274,6 @@ function M:InitView(url, isHideIpAdds)
self._btn_record.onTouchEnd:Set(self.__RecordTouchEnd, self) self._btn_record.onTouchEnd:Set(self.__RecordTouchEnd, self)
Voice.BeginRecord() Voice.BeginRecord()
self._ctr_voice.selectedIndex = 1 self._ctr_voice.selectedIndex = 1
self.__runwait_record = nil
self.__runwait_record = coroutine.start(self.__WaitRecord, self)
end end
end) end)
end end
@ -317,8 +315,7 @@ function M:InitView(url, isHideIpAdds)
if self._chat_Talk then if self._chat_Talk then
self._ctr_voice = _view:GetController('voice') self._ctr_voice = _view:GetController('voice')
self._chat_Talk.onTouchBegin:Set(function() self._chat_Talk.onTouchBegin:Set(function(context)
if self._room.room_config.config.hpData.BanChat == 1 then if self._room.room_config.config.hpData.BanChat == 1 then
ViewUtil.ShowBannerOnScreenCenter("本房间禁止快捷聊天") ViewUtil.ShowBannerOnScreenCenter("本房间禁止快捷聊天")
return return
@ -328,12 +325,16 @@ function M:InitView(url, isHideIpAdds)
self:__SetRecordEnable() self:__SetRecordEnable()
else else
self._record_time = 0 self._record_time = 0
self._record_pos = Vector2.New(context.inputEvent.x, context.inputEvent.y)
self._record_view = _view:GetChild('comp_voice')
self._record_view_ctr = self._record_view:GetController('ctr_cancel')
GameApplication.Instance.StopMusic = GameApplication.Instance.StopMusic + 1 GameApplication.Instance.StopMusic = GameApplication.Instance.StopMusic + 1
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))
Voice.BeginRecord() Voice.BeginRecord()
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)
end end
end) end)
end end
@ -696,6 +697,14 @@ function M:NewSettingView()
return settingView return settingView
end end
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
self._record_view_ctr.selectedIndex = 1
else
self._record_view_ctr.selectedIndex = 0
end
end
function M:__RecordTouchEnd() function M:__RecordTouchEnd()
if (self.__runwait_record ~= nil) then if (self.__runwait_record ~= nil) then
coroutine.stop(self.__runwait_record) coroutine.stop(self.__runwait_record)
@ -1323,8 +1332,14 @@ function M:OnUpdate()
end end
if self._view:GetChild('gcm_chat') then if self._view:GetChild('gcm_chat') then
self._record_time = self._record_time + deltaTime self._record_time = self._record_time + deltaTime
if self._record_view then
self._record_view.title = math.floor(self._record_time) .. "\""
end
elseif self._record_time then elseif self._record_time then
self._record_time = self._record_time + deltaTime self._record_time = self._record_time + deltaTime
if self._record_view then
self._record_view.title = math.floor(self._record_time) .. "\""
end
end end
local _left_time = self._left_time local _left_time = self._left_time

View File

@ -24,7 +24,7 @@ end
function M:FillRoomConfig(roominfo_panel, _room) function M:FillRoomConfig(roominfo_panel, _room)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(_room.room_config.config), json.encode(_room.room_config.hpData))
local tex_gametype = roominfo_panel:GetChild("tex_gametype") local tex_gametype = roominfo_panel:GetChild("tex_gametype")
tex_gametype.text = _room.room_config:GetGameName() tex_gametype.text = _room.room_config:GetGameName()

View File

@ -37,12 +37,21 @@ end
local modal_wait_win = nil local modal_wait_win = nil
-- local modal_wait_win_url = "ui://Common/GlobalModalWaiting" -- local modal_wait_win_url = "ui://Common/GlobalModalWaiting"
function ViewUtil.ShowModalWait(blur_view, title) function ViewUtil.ShowModalWait(blur_view, title, time)
ViewUtil.CloseModalWait() ViewUtil.CloseModalWait()
ModalWaitingWindow.ShowModal(title) ViewUtil.continue = coroutine.start(
function()
coroutine.wait(time or 1)
ModalWaitingWindow.ShowModal(title)
end
)
end end
function ViewUtil.CloseModalWait() function ViewUtil.CloseModalWait()
if ViewUtil.continue then
coroutine.stop(ViewUtil.continue)
ViewUtil.continue = nil
end
ModalWaitingWindow.CloseModal() ModalWaitingWindow.CloseModal()
end end

View File

@ -99,7 +99,7 @@ function ViewManager.GetCurrenView()
return _currenView return _currenView
end end
function ViewManager.ChangeViewByClass(dview_class, callback) function ViewManager.ChangeViewByClass(dview_class, data)
if (_currenView ~= nil) then if (_currenView ~= nil) then
if _currenView._close_destroy then if _currenView._close_destroy then
_currenView:Destroy() _currenView:Destroy()
@ -116,7 +116,12 @@ function ViewManager.ChangeViewByClass(dview_class, callback)
if not tem then if not tem then
tem = dview_class.new() tem = dview_class.new()
tem._s_callback = callback if data and data._s_callback then
tem._s_callback = data._s_callback
end
if data then
tem._flag_showTip = data._flag_showTip
end
_viewMap[dview_class] = tem _viewMap[dview_class] = tem
end end
@ -128,7 +133,7 @@ function ViewManager.ChangeViewByClass(dview_class, callback)
end end
local last_game_id = 0 local last_game_id = 0
function ViewManager.ChangeView(id, game_id, callback) function ViewManager.ChangeView(id, game_id, data)
-- if id==2 then -- if id==2 then
-- printlog("cccccccccccccccccccccccccccccccc") -- printlog("cccccccccccccccccccccccccccccccc")
-- printlog(debug.traceback()) -- printlog(debug.traceback())
@ -148,7 +153,7 @@ function ViewManager.ChangeView(id, game_id, callback)
if not dview_class then if not dview_class then
return return
end end
return ViewManager.ChangeViewByClass(dview_class, callback) return ViewManager.ChangeViewByClass(dview_class, data)
end end
function ViewManager.OnApplicationPause() function ViewManager.OnApplicationPause()

View File

@ -132,7 +132,7 @@ end
function M:fillResult0(room, peopleNum, result) function M:fillResult0(room, peopleNum, result)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round,
room.room_config.round, gamePlay) room.room_config.round, gamePlay)
self.list_lastCard.numItems = #result.cardList self.list_lastCard.numItems = #result.cardList

View File

@ -173,13 +173,17 @@ 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) function M:LoadConfigToDetail(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
local hpData = hpdata
if type(hpdata) == 'string' then
hpData = json.decode(hpdata)
end
local returnString = string.format("人数%s人", configData.maxPlayers) local returnString = string.format("人数%s人", configData.maxPlayers)
if configData.jiangma then if configData.jiangma then
returnString = string.format("%s,%s马", returnString, returnString = string.format("%s,%s马", returnString,
@ -206,8 +210,29 @@ function M:LoadConfigToDetail(data)
if configData.zuangfenfanbei then if configData.zuangfenfanbei 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,
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end
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
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data) returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpdata)
return returnString return returnString
end end

View File

@ -59,7 +59,7 @@ function M:InitView(url)
--]] --]]
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')

View File

@ -58,7 +58,7 @@ function M:InitView(url)
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
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)) 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
@ -366,7 +366,6 @@ function M:UpdateCardBox(seat)
end end
function M:OnFangziAction(...) function M:OnFangziAction(...)
local arg = { ... } local arg = { ... }
local _player_card_info = self._player_card_info local _player_card_info = self._player_card_info
local fz = arg[1] local fz = arg[1]

View File

@ -130,7 +130,7 @@ end
function M:fillResult0(room, peopleNum, result) function M:fillResult0(room, peopleNum, result)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round,
room.room_config.round, gamePlay) room.room_config.round, gamePlay)
self.list_lastCard.numItems = #result.cardList self.list_lastCard.numItems = #result.cardList

View File

@ -169,8 +169,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) function M:LoadConfigToDetail(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)
@ -208,8 +207,28 @@ function M:LoadConfigToDetail(data)
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
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data) returnString = string.format("%s%s", returnString,
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end
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
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData)
return returnString return returnString
end end

View File

@ -59,7 +59,7 @@ function M:InitView(url)
--]] --]]
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')

View File

@ -57,7 +57,7 @@ function M:InitView(url)
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
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)) 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

View File

@ -1,6 +1,6 @@
local HuCardImg = {} local HuCardImg = {}
HuCardImg[14] = { "tile_cs_deguo", "tile_cs_shisanlan" } HuCardImg[14] = { "tile_cs_shisanlan", "tile_cs_deguo" }
HuCardImg[15] = { "tile_cs_qxshisanlan", "tile_cs_deguo" } HuCardImg[15] = { "tile_cs_qxshisanlan", "tile_cs_deguo" }
HuCardImg[16] = { "tile_cs_dihu" } HuCardImg[16] = { "tile_cs_dihu" }
HuCardImg[17] = { "tile_cs_pinghu" } HuCardImg[17] = { "tile_cs_pinghu" }

View File

@ -128,7 +128,7 @@ end
function M:fillResult0(room, peopleNum, result) function M:fillResult0(room, peopleNum, result)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round,
room.room_config.round, gamePlay) room.room_config.round, gamePlay)
self.list_lastCard.numItems = #result.cardList self.list_lastCard.numItems = #result.cardList

View File

@ -246,6 +246,10 @@ function M:OnEventFzTips(evt_data)
-- end -- end
tiplist:AddTip(tip) tiplist:AddTip(tip)
end end
--排序规则,胡杠碰
tiplist:SortList(function(a, b)
return a.type < b.type
end)
DispatchEvent(self._dispatcher, TX_GameEvent.FZTips, tiplist, weight) DispatchEvent(self._dispatcher, TX_GameEvent.FZTips, tiplist, weight)
end) end)
end end

View File

@ -152,7 +152,6 @@ function M:LoadConfigData(data)
end end
function M:LoadConfigToDetail(data) function M:LoadConfigToDetail(data)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
configData = json.decode(data) configData = json.decode(data)
@ -164,7 +163,28 @@ function M:LoadConfigToDetail(data)
configData.tuoguan == 0 and string.format("%d秒后自动托管", configData.tuoguan_active_time) or "不能托管", configData.tuoguan == 0 and string.format("%d秒后自动托管", configData.tuoguan_active_time) or "不能托管",
configData.jingbibo == 1 and "有精必博" or "有精可胡") configData.jingbibo == 1 and "有精必博" or "有精可胡")
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data) if configData.GPSDetection then
returnString = string.format("%s%s", returnString,
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end
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
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData)
return returnString return returnString
end end

View File

@ -59,7 +59,7 @@ function M:InitView(url)
--]] --]]
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')
@ -637,7 +637,7 @@ function M:__FangziTip(tip, weight)
local _lit_fanzi = _chipeng_tip:GetChild("list") local _lit_fanzi = _chipeng_tip:GetChild("list")
--_lit_fanzi:SetVirtual() --_lit_fanzi:SetVirtual()
local _tlist = tip.tip_map_id local _tlist = tip.tip_sortList
_lit_fanzi.itemRenderer = function(index, obj) _lit_fanzi.itemRenderer = function(index, obj)
local type = obj:GetController('type') local type = obj:GetController('type')
if index == tip.tip_num then if index == tip.tip_num then

View File

@ -59,7 +59,7 @@ function M:InitView(url)
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
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)) 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

View File

@ -98,6 +98,7 @@ function M:FillRoomData(s2croom)
room.curren_outcard_seat = _reloadInfo["curren_outcard_seat"] room.curren_outcard_seat = _reloadInfo["curren_outcard_seat"]
room.last_outcard_seat = last_outcard_seat room.last_outcard_seat = last_outcard_seat
room.playing = playing room.playing = playing
room.reload = reload
if jing then if jing then
room.jing = jing room.jing = jing
end end

View File

@ -8,7 +8,7 @@ HuCardImg[10] = { "tile_cs_deguo" }
HuCardImg[11] = { "tile_cs_qiangganghu" } HuCardImg[11] = { "tile_cs_qiangganghu" }
HuCardImg[12] = { "tile_cs_gangshanghua" } HuCardImg[12] = { "tile_cs_gangshanghua" }
HuCardImg[13] = { "tile_cs_quanqiuren" } HuCardImg[13] = { "tile_cs_quanqiuren" }
HuCardImg[14] = { "tile_cs_deguo", "tile_cs_shisanlan" } HuCardImg[14] = { "tile_cs_shisanlan", "tile_cs_deguo" }
HuCardImg[15] = { "tile_cs_qxshisanlan", "tile_cs_deguo" } HuCardImg[15] = { "tile_cs_qxshisanlan", "tile_cs_deguo" }

View File

@ -128,7 +128,7 @@ end
function M:fillResult0(room, peopleNum, result) function M:fillResult0(room, peopleNum, result)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round,
room.room_config.round, gamePlay) room.room_config.round, gamePlay)
self.list_lastCard.numItems = #result.cardList self.list_lastCard.numItems = #result.cardList

View File

@ -179,7 +179,6 @@ function M:LoadConfigData(data)
end end
function M:LoadConfigToDetail(data) function M:LoadConfigToDetail(data)
local configData = data local configData = data
if type(data) == 'string' then if type(data) == 'string' then
configData = json.decode(data) configData = json.decode(data)
@ -195,7 +194,28 @@ function M:LoadConfigToDetail(data)
configData.jiahu and ",可以假胡" or "", configData.fengding and ",封顶20炮" or "", configData.jiahu and ",可以假胡" or "", configData.fengding and ",封顶20炮" or "",
configData.zhuanwan and "大转弯" or "小转弯") configData.zhuanwan and "大转弯" or "小转弯")
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data) if configData.GPSDetection then
returnString = string.format("%s%s", returnString,
configData.GPSDetection == 0 and ",距离不限制" or string.format(",距离限制%s米", configData.GPSDetection))
end
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
returnString = returnString .. IGameInfo.LoadConfigToDetail(self, data, hpData)
return returnString return returnString
end end

View File

@ -58,7 +58,7 @@ function M:InitView(url)
--]] --]]
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild('wanfa_text').text = gamePlay self._view:GetChild('wanfa_text').text = gamePlay
self.jing = self._view:GetChild('jing') self.jing = self._view:GetChild('jing')

View File

@ -57,7 +57,7 @@ function M:InitView(url)
------------------渲染桌面信息-------------------------- ------------------渲染桌面信息--------------------------
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)) 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

View File

@ -11,8 +11,8 @@ local ExtendConfig = {}
local M = ExtendConfig local M = ExtendConfig
function ExtendConfig.new() function ExtendConfig.new()
setmetatable(M, {__index = IExtendConfig}) setmetatable(M, { __index = IExtendConfig })
local self = setmetatable({}, {__index = M}) local self = setmetatable({}, { __index = M })
self.class = 'ExtendConfig' self.class = 'ExtendConfig'
self.extend_id = 13 self.extend_id = 13
self._viewMap = {} self._viewMap = {}
@ -54,8 +54,8 @@ function M:FillRoomConfig(room, _config)
end end
function M:FillRoomData(s2croom) function M:FillRoomData(s2croom)
printlog("初始化数据===>>>") printlog("初始化数据===>>>")
pt(s2croom) pt(s2croom)
local room = DataManager.CurrenRoom local room = DataManager.CurrenRoom
local reload = s2croom['reload'] local reload = s2croom['reload']
local _tableInfo = s2croom['tableInfo'] local _tableInfo = s2croom['tableInfo']
@ -73,7 +73,7 @@ function M:FillRoomData(s2croom)
local online = _jp['online'] local online = _jp['online']
p.line_state = online p.line_state = online
p.ready = _jp['ready'] == 1 and true or false p.ready = _jp['ready'] == 1 and true or false
--p.piao=_jp['piao'] --p.piao=_jp['piao']
local pid = _jp['aid'] local pid = _jp['aid']
if (DataManager.SelfUser.account_id == pid) then if (DataManager.SelfUser.account_id == pid) then
room.self_player = p room.self_player = p
@ -103,11 +103,12 @@ function M:FillRoomData(s2croom)
if (reload) then if (reload) then
local _reloadInfo = s2croom['reloadInfo'] local _reloadInfo = s2croom['reloadInfo']
room.self_player.currentNotPutCardList=_reloadInfo['notput'] room.self_player.currentNotPutCardList = _reloadInfo['notput']
local _hand_card = _reloadInfo['hand_card'] local _hand_card = _reloadInfo['hand_card']
local _card_list = _reloadInfo['card_list'] local _card_list = _reloadInfo['card_list']
local _discard = _reloadInfo['discard'] local _discard = _reloadInfo['discard']
room.discard = _discard room.discard = _discard
room.reload = reload
-- local _index = _reloadInfo["typeface"] -- local _index = _reloadInfo["typeface"]
-- if _index ==1 then -- if _index ==1 then
-- room.change_card_display = "2_" -- room.change_card_display = "2_"
@ -154,7 +155,7 @@ function M:FillRoomData(s2croom)
p.total_hp = tem.hp_info.total_hp p.total_hp = tem.hp_info.total_hp
end end
p.entrust = tem['entrust'] p.entrust = tem['entrust']
p.piao=tem['piao'] p.piao = tem['piao']
local opcard = tem['opcard'] local opcard = tem['opcard']
for k = 1, #opcard do for k = 1, #opcard do
local op = opcard[k] local op = opcard[k]
@ -176,7 +177,7 @@ function M:FillRoomData(s2croom)
end end
end end
end end
pt(p) pt(p)
if not playing and room.curren_round > 0 then if not playing and room.curren_round > 0 then
self.GetGameController():PlayerReady() self.GetGameController():PlayerReady()
end end

View File

@ -55,6 +55,7 @@ function M.new()
setmetatable(self, { __index = FZTipList }) setmetatable(self, { __index = FZTipList })
self.tip_map_id = {} self.tip_map_id = {}
self.tip_map_type = {} self.tip_map_type = {}
self.tip_sortList = {}
self.tip_num = 0 self.tip_num = 0
self.is_hu = false self.is_hu = false
return self return self
@ -71,7 +72,12 @@ function M:AddTip(tip)
self.tip_map_type[tip.weight] = tiplist self.tip_map_type[tip.weight] = tiplist
end end
tiplist[#tiplist + 1] = tip tiplist[#tiplist + 1] = tip
table.insert(self.tip_sortList, tip)
self.tip_num = self.tip_num + 1 self.tip_num = self.tip_num + 1
end end
function M:SortList(fct)
table.sort(self.tip_sortList, fct)
end
return M return M

View File

@ -8,14 +8,13 @@ function GameInfoWindow.New()
end end
function GameInfoWindow:Reflash() function GameInfoWindow:Reflash()
local config = self.room.room_config.config local config = self.room.room_config.config
local times = self.room.room_config.config.hpData.times local times = self.room.room_config.config.times
local game_id = self.room.game_id local game_id = self.room.game_id
local Info = ExtendManager.GetExtendConfig(game_id):GetGameInfo() local Info = ExtendManager.GetExtendConfig(game_id):GetGameInfo()
local text = Info:LoadConfigToDetail(config) local text = Info:LoadConfigToDetail(config)
self.tex_tex.text = times / 1000 .. "倍," .. text self.tex_tex.text = times / 1000 .. "倍," .. text
end end
function GameInfoWindow:Show(room) function GameInfoWindow:Show(room)

View File

@ -29,10 +29,9 @@ function M:init(url)
self.coroutine = coroutine.start(function(...) self.coroutine = coroutine.start(function(...)
self.valueTemp = 0 self.valueTemp = 0
while self.valueTemp < 100 do while self.valueTemp < 100 do
-- 让他在72的时候卡顿一下 -- 让他在72的时候卡顿一下
if self.valueTemp > 72 and self.valueTemp < 80 then if self.valueTemp > 72 and self.valueTemp < 80 then
end end
self.valueTemp = self.valueTemp + math.random(4) self.valueTemp = self.valueTemp + math.random(4)
@ -41,7 +40,7 @@ function M:init(url)
end end
showText.text = "检测完毕,环境安全" showText.text = "检测完毕,环境安全"
coroutine.wait(2) coroutine.wait(2)
self:Destroy() -- self:Destroy()
end) end)
end end

View File

@ -130,7 +130,7 @@ end
function M:fillResult0(room, peopleNum, result) function M:fillResult0(room, peopleNum, result)
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)) local gamePlay = mode:LoadConfigToDetail(json.encode(room.room_config.config), json.encode(room.room_config.hpData))
self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round, self._view:GetChild("Label_GamePlay").title = string.format("第%s/%s局,%s", room.curren_round,
room.room_config.round, gamePlay) room.room_config.round, gamePlay)
self.list_lastCard.numItems = #result.cardList self.list_lastCard.numItems = #result.cardList

View File

@ -786,7 +786,7 @@ function M:OnHuCard(...)
end) end)
coroutine.start(function() coroutine.start(function()
coroutine.wait(1) coroutine.wait(0.7)
loader_HuEffect.visible = false loader_HuEffect.visible = false
local Effects = {} local Effects = {}
@ -847,7 +847,7 @@ end
function M:Show() function M:Show()
MainView.Show(self) MainView.Show(self)
if self._room and self._room.curren_round == 0 then if self._room and self._room.curren_round == 0 and self._flag_showTip then
local win = GameInfoWindow.New() local win = GameInfoWindow.New()
win:Show(self._room) win:Show(self._room)
end end

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" extention="Button">
<controller name="ctr_cancel" pages="0,,1," selected="1"/>
<displayList>
<graph id="n0_dlc4" name="n0" xy="0,0" size="2532,1170" type="rect" lineSize="0" fillColor="#73000000">
<relation target="" sidePair="width-width,height-height"/>
</graph>
<image id="n1_dlc4" name="n1" src="dlc41g9" fileName="Main_new/Chat/Image/GameCommon54.png" xy="1175,469" size="181,172">
<relation target="n2_dlc4" sidePair="center-center,bottom-top"/>
</image>
<text id="n2_dlc4" name="n2" xy="1018,667" size="496,79" font="ui://27vd145bh35o7ilb" fontSize="60" color="#bc1016" text="手指松开,取消发送">
<gearColor controller="ctr_cancel" pages="1" values="#bc1016,#000000" default="#ffffff,#000000"/>
<gearText controller="ctr_cancel" pages="0,1" values="手指上划,取消发送|手指松开,取消发送"/>
<relation target="" sidePair="center-center,middle-middle"/>
</text>
<text id="n3_dlc4" name="title" xy="1355,449" size="64,79" font="ui://27vd145bh35o7ilb" fontSize="60" color="#ffffff" text="0&quot;">
<relation target="n1_dlc4" sidePair="left-right,top-top"/>
</text>
</displayList>
<Button/>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" pivot="0.5,0.5" designImage="ui://v0j9abjyj6yy1fr" designImageAlpha="35"> <component size="2532,1170" pivot="0.5,0.5" designImage="ui://v0j9abjyj6yy1fr" designImageAlpha="35">
<controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,4,观战状态" selected="1"/> <controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,4,观战状态" selected="0"/>
<controller name="sdk" pages="0,,1," selected="0"/> <controller name="sdk" pages="0,,1," selected="0"/>
<controller name="action" pages="2,空,0,准备,1,开始" selected="0"/> <controller name="action" pages="2,空,0,准备,1,开始" selected="0"/>
<controller name="3d" pages="0,,1," selected="0"/> <controller name="3d" pages="0,,1," selected="0"/>
@ -8,7 +8,7 @@
<controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/> <controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/>
<controller name="more" pages="0,,1," selected="0"/> <controller name="more" pages="0,,1," selected="0"/>
<controller name="witness" pages="0,,1," selected="0"/> <controller name="witness" pages="0,,1," selected="0"/>
<controller name="voice" pages="0,,1," selected="0"/> <controller name="voice" pages="0,,1," selected="1"/>
<controller name="cHuCardEffect" pages="0,,1," selected="0"> <controller name="cHuCardEffect" pages="0,,1," selected="0">
<remark page="0" value="关"/> <remark page="0" value="关"/>
<remark page="1" value="开"/> <remark page="1" value="开"/>
@ -29,7 +29,7 @@
<gearDisplay controller="state" pages="0,2"/> <gearDisplay controller="state" pages="0,2"/>
<relation target="" sidePair="center-center,bottom-bottom"/> <relation target="" sidePair="center-center,bottom-bottom"/>
</component> </component>
<component id="n141_lu84" name="player_info1_2" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="87,788" size="153,132"> <component id="n141_lu84" name="player_info1_2" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="730,-59" size="153,132">
<gearDisplay controller="state" pages="1,3,4"/> <gearDisplay controller="state" pages="1,3,4"/>
<gearXY controller="state" pages="1,3,4" values="87,788|64,-191|62,-201" default="730,-59"/> <gearXY controller="state" pages="1,3,4" values="87,788|64,-191|62,-201" default="730,-59"/>
<relation target="n118_pkx5" sidePair="right-left,top-top"/> <relation target="n118_pkx5" sidePair="right-left,top-top"/>
@ -38,7 +38,7 @@
<gearDisplay controller="state" pages="0,2"/> <gearDisplay controller="state" pages="0,2"/>
<relation target="" sidePair="center-center,top-top"/> <relation target="" sidePair="center-center,top-top"/>
</component> </component>
<component id="n152_kxhm" name="player_info2_2" src="o8k813y" fileName="Main_new/Main_new_2/PlayerHead2_2.xml" xy="1865,29" size="153,132"> <component id="n152_kxhm" name="player_info2_2" src="o8k813y" fileName="Main_new/Main_new_2/PlayerHead2_2.xml" xy="2701,486" size="153,132">
<gearDisplay controller="state" pages="1,3,4"/> <gearDisplay controller="state" pages="1,3,4"/>
<gearXY controller="state" pages="0,1,3,4" values="2701,486|1865,29|2555,-6|2567,10" default="2007,876"/> <gearXY controller="state" pages="0,1,3,4" values="2701,486|1865,29|2555,-6|2567,10" default="2007,876"/>
<relation target="n155_gi99" sidePair="left-right,top-top"/> <relation target="n155_gi99" sidePair="left-right,top-top"/>
@ -248,17 +248,11 @@
</component> </component>
<component id="n185_kzuz" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2537,30"> <component id="n185_kzuz" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2537,30">
<gearDisplay controller="witness" pages="1"/> <gearDisplay controller="witness" pages="1"/>
<gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration="0.5"/> <gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration=".5"/>
</component> </component>
<component id="n187_pbp6" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123"> <component id="n187_pbp6" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123">
<relation target="" sidePair="right-right"/> <relation target="" sidePair="right-right"/>
</component> </component>
<graph id="n188_pbp6" name="n188" xy="0,0" size="2532,1170" group="n191_pbp6" type="rect" lineSize="0" fillColor="#73000000"/>
<image id="n189_pbp6" name="n189" pkg="v0j9abjy" src="pbp614k" fileName="Group 205(1).png" xy="1203,522" group="n191_pbp6"/>
<text id="n190_pbp6" name="n190" xy="1024,667" size="484,79" group="n191_pbp6" fontSize="60" color="#ffffff" text="松开按钮发送语音"/>
<group id="n191_pbp6" name="chatTalk" xy="0,0" size="2532,1170" advanced="true">
<gearDisplay controller="voice" pages="1"/>
</group>
<component id="n57_rayb" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="120,855" group="n59_v38k"> <component id="n57_rayb" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="120,855" group="n59_v38k">
<gearDisplay controller="state" pages="3"/> <gearDisplay controller="state" pages="3"/>
</component> </component>
@ -285,5 +279,9 @@
<movieclip id="n203_whhc" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,-574" pivot="0.5,0.5" anchor="true"> <movieclip id="n203_whhc" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,-574" pivot="0.5,0.5" anchor="true">
<gearDisplay controller="cHuCardEffect" pages="1"/> <gearDisplay controller="cHuCardEffect" pages="1"/>
</movieclip> </movieclip>
<component id="n207_dlc4" name="comp_voice" src="dlc41ga" fileName="Main_new/Chat/Component/Comp_VoiceBegin.xml" xy="0,0">
<gearDisplay controller="voice" pages="1"/>
<relation target="" sidePair="width-width,height-height"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" designImage="ui://v0j9abjyj6yy1ft" designImageAlpha="0"> <component size="2532,1170" designImage="ui://v0j9abjyj6yy1ft" designImageAlpha="0">
<controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,4,观战状态" selected="1"/> <controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,4,观战状态" selected="0"/>
<controller name="sdk" pages="0,,1," selected="0"/> <controller name="sdk" pages="0,,1," selected="0"/>
<controller name="action" pages="2,空,0,准备,1,开始" selected="0"/> <controller name="action" pages="2,空,0,准备,1,开始" selected="0"/>
<controller name="3d" pages="0,,1," selected="0"/> <controller name="3d" pages="0,,1," selected="0"/>
@ -8,7 +8,7 @@
<controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/> <controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/>
<controller name="more" pages="0,,1," selected="0"/> <controller name="more" pages="0,,1," selected="0"/>
<controller name="witness" pages="0,,1," selected="0"/> <controller name="witness" pages="0,,1," selected="0"/>
<controller name="voice" pages="0,,1," selected="0"/> <controller name="voice" pages="0,,1," selected="1"/>
<controller name="cHuCardEffect" pages="0,,1," selected="0"/> <controller name="cHuCardEffect" pages="0,,1," selected="0"/>
<displayList> <displayList>
<component id="n205_hyws" name="com_logo" src="o4nh1ei" fileName="Main_new/Component/com_logo.xml" xy="1200,366" size="435,73"> <component id="n205_hyws" name="com_logo" src="o4nh1ei" fileName="Main_new/Component/com_logo.xml" xy="1200,366" size="435,73">
@ -34,7 +34,7 @@
<component id="n141_lu84" name="player_info1_2" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="87,788" size="153,132"> <component id="n141_lu84" name="player_info1_2" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="87,788" size="153,132">
<gearDisplay controller="state" pages="1,3,4"/> <gearDisplay controller="state" pages="1,3,4"/>
</component> </component>
<component id="n116_pkx5" name="player_info2_1" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="2004,77" size="153,132"> <component id="n116_pkx5" name="player_info2_1" src="pkx5so" fileName="Main_new/Main/PlayerHead_1.xml" xy="1888,519" size="153,132">
<gearDisplay controller="state" pages="0,2"/> <gearDisplay controller="state" pages="0,2"/>
<gearXY controller="state" pages="0,1,2" values="1888,519|2004,77|1888,519" default="1194,274"/> <gearXY controller="state" pages="0,1,2" values="1888,519|2004,77|1888,519" default="1194,274"/>
<relation target="" sidePair="middle-middle"/> <relation target="" sidePair="middle-middle"/>
@ -252,17 +252,11 @@
</component> </component>
<component id="n280_ogwn" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2537,30"> <component id="n280_ogwn" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2537,30">
<gearDisplay controller="witness" pages="1"/> <gearDisplay controller="witness" pages="1"/>
<gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration="0.5"/> <gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration=".5"/>
</component> </component>
<component id="n281_ogwn" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123"> <component id="n281_ogwn" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123">
<relation target="" sidePair="right-right"/> <relation target="" sidePair="right-right"/>
</component> </component>
<graph id="n282_ogwn" name="n282" xy="0,0" size="2532,1170" group="n285_ogwn" type="rect" lineSize="0" fillColor="#73000000"/>
<image id="n283_ogwn" name="n283" xy="1203,522" size="100,100" group="n285_ogwn"/>
<text id="n284_ogwn" name="n284" xy="1024,667" size="484,79" group="n285_ogwn" fontSize="60" color="#ffffff" text="松开按钮发送语音"/>
<group id="n285_ogwn" name="chatTalk" xy="0,0" size="2532,1170" advanced="true">
<gearDisplay controller="voice" pages="1"/>
</group>
<component id="n286_ogwn" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="0,847" group="n288_ogwn"> <component id="n286_ogwn" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="0,847" group="n288_ogwn">
<gearDisplay controller="state" pages="3"/> <gearDisplay controller="state" pages="3"/>
</component> </component>
@ -289,5 +283,9 @@
<movieclip id="n293_ogwn" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,-574" pivot="0.5,0.5" anchor="true"> <movieclip id="n293_ogwn" name="effect_ZiMo" src="whhc1fo" fileName="Main_new/Main/Effect_ZiMo.jta" xy="1266,-574" pivot="0.5,0.5" anchor="true">
<gearDisplay controller="cHuCardEffect" pages="1"/> <gearDisplay controller="cHuCardEffect" pages="1"/>
</movieclip> </movieclip>
<component id="n295_dlc4" name="comp_voice" src="dlc41ga" fileName="Main_new/Chat/Component/Comp_VoiceBegin.xml" xy="0,0">
<gearDisplay controller="voice" pages="1"/>
<relation target="" sidePair="width-width,height-height"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" designImage="ui://v0j9abjyj6yy1fw" designImageAlpha="0"> <component size="2532,1170" designImage="ui://v0j9abjyj6yy1fw" designImageAlpha="0">
<controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,5,观战状态" selected="1"/> <controller name="state" pages="0,准备状态,1,游戏状态,2,回合间状态,3,回放状态,5,观战状态" selected="0"/>
<controller name="sdk" pages="0,,1," selected="0"/> <controller name="sdk" pages="0,,1," selected="0"/>
<controller name="action" pages="2,空,0,准备,1,开始" selected="0"/> <controller name="action" pages="2,空,0,准备,1,开始" selected="0"/>
<controller name="3d" pages="0,,1," selected="0"/> <controller name="3d" pages="0,,1," selected="0"/>
@ -8,7 +8,7 @@
<controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/> <controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/>
<controller name="more" pages="0,,1," selected="0"/> <controller name="more" pages="0,,1," selected="0"/>
<controller name="witness" pages="0,,1," selected="0"/> <controller name="witness" pages="0,,1," selected="0"/>
<controller name="voice" pages="0,,1," selected="0"/> <controller name="voice" pages="0,,1," selected="1"/>
<controller name="voice" pages="0,,1," selected="0"/> <controller name="voice" pages="0,,1," selected="0"/>
<controller name="cHuCardEffect" pages="0,,1," selected="0"/> <controller name="cHuCardEffect" pages="0,,1," selected="0"/>
<displayList> <displayList>
@ -255,12 +255,6 @@
<component id="n353_ogwn" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123"> <component id="n353_ogwn" name="btn_sendTalk" src="pbp614i" fileName="Main_new/Chat/Component/Btn_MessageTalk.xml" xy="2322,523" size="144,123">
<relation target="" sidePair="right-right"/> <relation target="" sidePair="right-right"/>
</component> </component>
<graph id="n354_ogwn" name="n354" xy="0,0" size="2532,1170" group="n357_ogwn" type="rect" lineSize="0" fillColor="#73000000"/>
<image id="n355_ogwn" name="n355" xy="1203,522" size="100,100" group="n357_ogwn"/>
<text id="n356_ogwn" name="n356" xy="1024,667" size="484,79" group="n357_ogwn" fontSize="60" color="#ffffff" text="松开按钮发送语音"/>
<group id="n357_ogwn" name="chatTalk" xy="0,0" size="2532,1170" advanced="true">
<gearDisplay controller="voice" pages="1"/>
</group>
<component id="n358_ogwn" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="0,847" group="n360_ogwn"> <component id="n358_ogwn" name="panel_record" src="gq7m4t" fileName="Main_style_2/record/Record.xml" xy="0,847" group="n360_ogwn">
<gearDisplay controller="state" pages="3"/> <gearDisplay controller="state" pages="3"/>
</component> </component>
@ -298,5 +292,9 @@
<group id="n370_ogwn" name="n370" xy="-143,-1398" size="2592,863" advanced="true"> <group id="n370_ogwn" name="n370" xy="-143,-1398" size="2592,863" advanced="true">
<relation target="" sidePair="center-center,top-top"/> <relation target="" sidePair="center-center,top-top"/>
</group> </group>
<component id="n372_dlc4" name="comp_voice" src="dlc41ga" fileName="Main_new/Chat/Component/Comp_VoiceBegin.xml" xy="0,0">
<gearDisplay controller="voice" pages="1"/>
<relation target="" sidePair="width-width,height-height"/>
</component>
</displayList> </displayList>
</component> </component>

View File

@ -1542,6 +1542,8 @@
<image id="smbw1g6" name="4918b5270e436c54b44d48f0bb79114 3(1).png" path="/Main_new/Image/"/> <image id="smbw1g6" name="4918b5270e436c54b44d48f0bb79114 3(1).png" path="/Main_new/Image/"/>
<component id="wcy51g7" name="Btn_Card.xml" path="/Main_new/Main_new_2/Component/NewHandCard/Component/" exported="true"/> <component id="wcy51g7" name="Btn_Card.xml" path="/Main_new/Main_new_2/Component/NewHandCard/Component/" exported="true"/>
<component id="wcy51g8" name="com_OutCard_Vertical.xml" path="/Main_new/Main_new_2/Component/NewHandCard/Component/"/> <component id="wcy51g8" name="com_OutCard_Vertical.xml" path="/Main_new/Main_new_2/Component/NewHandCard/Component/"/>
<image id="dlc41g9" name="GameCommon54.png" path="/Main_new/Chat/Image/"/>
<component id="dlc41ga" name="Comp_VoiceBegin.xml" path="/Main_new/Chat/Component/"/>
</resources> </resources>
<publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/> <publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/>
</packageDescription> </packageDescription>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 KiB

After

Width:  |  Height:  |  Size: 677 KiB