中发白改编号
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,11 +41,11 @@ 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
|
||||
|
||||
|
|
|
|||
|
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 |