中发白改编号

master
罗家炜 2025-04-12 10:24:08 +08:00
parent e1c90aa132
commit c0e632a23e
9 changed files with 10 additions and 16 deletions

View File

@ -485,14 +485,6 @@ function M:JoinRoom(roomId)
fgCtr:FG_AddMember(self._group.id, tonumber(roomId), function(res) fgCtr:FG_AddMember(self._group.id, tonumber(roomId), function(res)
if (res.ReturnCode == 0) then if (res.ReturnCode == 0) then
ViewUtil.ShowBannerOnScreenCenter('添加成功!', 1) ViewUtil.ShowBannerOnScreenCenter('添加成功!', 1)
fgCtr:FG_ChangeFag(self._group.id, tonumber(roomId), 777777000,
function(res)
if res.ReturnCode == 0 then
ViewUtil.ShowBannerOnScreenCenter('分配默认积分成功!', 1)
else
ViewUtil.ErrorMsg(self._root_view, res.ReturnCode, '默认分配积分失败')
end
end)
else else
ViewUtil.ErrorTip(res.ReturnCode, '邀请玩家失败!') ViewUtil.ErrorTip(res.ReturnCode, '邀请玩家失败!')
end end

View File

@ -104,8 +104,8 @@ function M:UpdateRound()
self._view:GetChild("text_round").text = string.format("当前局数:%d/%d", self._room.curren_round, self._view:GetChild("text_round").text = string.format("当前局数:%d/%d", self._room.curren_round,
self._room.room_config.round) self._room.room_config.round)
else else
self._view:GetChild("tex_round1").text = self._room.curren_round self._view:GetChild("tex_round1").text = self._room.curren_round
self._view:GetChild("tex_round2").text = self._room.room_config.round self._view:GetChild("tex_round2").text = self._room.room_config.round
end end
end end

View File

@ -10,6 +10,7 @@ function M.new(view, mainView)
setmetatable(M, { __index = PlayerInfoView }) setmetatable(M, { __index = PlayerInfoView })
end end
local self = setmetatable({}, { __index = M }) local self = setmetatable({}, { __index = M })
print("===========================???view", view)
self._view = view self._view = view
self._main_view = mainView self._main_view = mainView
self:init() self:init()
@ -17,6 +18,7 @@ function M.new(view, mainView)
end end
function M:init() function M:init()
print("===========================???", self, self._view)
if self._main_view._room.room_config.people_num ~= 2 then if self._main_view._room.room_config.people_num ~= 2 then
PlayerInfoView.init(self) PlayerInfoView.init(self)
self._tex_score = self._view:GetChild("info"):GetChild("tex_score1") self._tex_score = self._view:GetChild("info"):GetChild("tex_score1")
@ -27,10 +29,10 @@ function M:init()
end end
end end
function M:ShowInteraction(type,str) function M:ShowInteraction(type, str)
if type == 3 then if type == 3 then
Voice.DownLoad(str, function(clip) Voice.DownLoad(str, function(clip)
if (clip ) then if (clip) then
self:ShowMaskVoice(clip.length) self:ShowMaskVoice(clip.length)
GameApplication.Instance:PlayVoice(clip) GameApplication.Instance:PlayVoice(clip)
end end
@ -39,19 +41,19 @@ function M:ShowInteraction(type,str)
self:SetChat(str) self:SetChat(str)
elseif type == 2 then elseif type == 2 then
local chat_index = tonumber(str) local chat_index = tonumber(str)
self._main_view:PlayChatSound(self._player.self_user.sex,chat_index) self._main_view:PlayChatSound(self._player.self_user.sex, chat_index)
local language, index = self._main_view:GetChatMsgLanguage(chat_index) local language, index = self._main_view:GetChatMsgLanguage(chat_index)
self:SetChat(self._main_view.Fix_Msg_Chat[index]) self:SetChat(self._main_view.Fix_Msg_Chat[index])
elseif type == 1 then elseif type == 1 then
self:SetBiaoqing("ui://Chat/"..str) self:SetBiaoqing("ui://Chat/" .. str)
end end
end end
function M:UpdateRemainCard(card_num, hide) function M:UpdateRemainCard(card_num, hide)
if hide then if hide then
self._view:GetController("show_remain").selectedIndex = 0 self._view:GetController("show_remain").selectedIndex = 0
else else
self._view:GetController("show_remain").selectedIndex = 1 self._view:GetController("show_remain").selectedIndex = 1
end end
self._view:GetChild("com_remain"):GetChild("tex_remain").text = card_num self._view:GetChild("com_remain"):GetChild("tex_remain").text = card_num
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 906 KiB

After

Width:  |  Height:  |  Size: 894 KiB

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: 808 KiB

After

Width:  |  Height:  |  Size: 812 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 KiB

After

Width:  |  Height:  |  Size: 553 KiB