中发白改编号
|
|
@ -485,14 +485,6 @@ function M:JoinRoom(roomId)
|
|||
fgCtr:FG_AddMember(self._group.id, tonumber(roomId), function(res)
|
||||
if (res.ReturnCode == 0) then
|
||||
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
|
||||
ViewUtil.ErrorTip(res.ReturnCode, '邀请玩家失败!')
|
||||
end
|
||||
|
|
|
|||
|
|
@ -104,8 +104,8 @@ function M:UpdateRound()
|
|||
self._view:GetChild("text_round").text = string.format("当前局数:%d/%d", self._room.curren_round,
|
||||
self._room.room_config.round)
|
||||
else
|
||||
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_round1").text = self._room.curren_round
|
||||
self._view:GetChild("tex_round2").text = self._room.room_config.round
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ function M.new(view, mainView)
|
|||
setmetatable(M, { __index = PlayerInfoView })
|
||||
end
|
||||
local self = setmetatable({}, { __index = M })
|
||||
print("===========================???view", view)
|
||||
self._view = view
|
||||
self._main_view = mainView
|
||||
self:init()
|
||||
|
|
@ -17,6 +18,7 @@ function M.new(view, mainView)
|
|||
end
|
||||
|
||||
function M:init()
|
||||
print("===========================???", self, self._view)
|
||||
if self._main_view._room.room_config.people_num ~= 2 then
|
||||
PlayerInfoView.init(self)
|
||||
self._tex_score = self._view:GetChild("info"):GetChild("tex_score1")
|
||||
|
|
@ -27,10 +29,10 @@ function M:init()
|
|||
end
|
||||
end
|
||||
|
||||
function M:ShowInteraction(type,str)
|
||||
function M:ShowInteraction(type, str)
|
||||
if type == 3 then
|
||||
Voice.DownLoad(str, function(clip)
|
||||
if (clip ) then
|
||||
if (clip) then
|
||||
self:ShowMaskVoice(clip.length)
|
||||
GameApplication.Instance:PlayVoice(clip)
|
||||
end
|
||||
|
|
@ -39,19 +41,19 @@ function M:ShowInteraction(type,str)
|
|||
self:SetChat(str)
|
||||
elseif type == 2 then
|
||||
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)
|
||||
self:SetChat(self._main_view.Fix_Msg_Chat[index])
|
||||
elseif type == 1 then
|
||||
self:SetBiaoqing("ui://Chat/"..str)
|
||||
self:SetBiaoqing("ui://Chat/" .. str)
|
||||
end
|
||||
end
|
||||
|
||||
function M:UpdateRemainCard(card_num, hide)
|
||||
if hide then
|
||||
self._view:GetController("show_remain").selectedIndex = 0
|
||||
self._view:GetController("show_remain").selectedIndex = 0
|
||||
else
|
||||
self._view:GetController("show_remain").selectedIndex = 1
|
||||
self._view:GetController("show_remain").selectedIndex = 1
|
||||
end
|
||||
self._view:GetChild("com_remain"):GetChild("tex_remain").text = card_num
|
||||
end
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 906 KiB After Width: | Height: | Size: 894 KiB |
|
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 3.8 MiB |
|
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 812 KiB |
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 540 KiB After Width: | Height: | Size: 553 KiB |