67 lines
1.7 KiB
Lua
67 lines
1.7 KiB
Lua
-- 被邀请界面
|
|
local FGInvitedMsgView = {}
|
|
|
|
local M = FGInvitedMsgView
|
|
setmetatable(M, { __index = BaseWindow })
|
|
|
|
function FGInvitedMsgView.new(groupid, pid, invite_id, blur_view, callback)
|
|
print("lingmeng FGAssistInviteView")
|
|
local self = setmetatable({}, { __index = M })
|
|
self.class = "FGAssistInviteView"
|
|
self._blur_view = blur_view
|
|
self._animation = true
|
|
self._new_hide = false
|
|
self._put_map = false
|
|
self._close_destroy = true
|
|
self.groupid = groupid
|
|
self.pid = pid
|
|
self.invite_id = invite_id
|
|
self.callback = callback
|
|
print("lingmeng FGAssistInviteView1")
|
|
|
|
self:initView("ui://FGAssist/panel_invite")
|
|
print("lingmeng FGAssistInviteView2")
|
|
|
|
return self
|
|
end
|
|
|
|
function M:initView(url)
|
|
BaseWindow.init(self, url)
|
|
print("lingmeng FGAssistInviteView3")
|
|
self._viewText_groupName = self._view:GetChild('tex_group_name')
|
|
self._viewText_gameName = self._view:GetChild('tex_game_name')
|
|
self._viewText_inviteName = self._view:GetChild('tex_name')
|
|
self._viewText_playName = self._view:GetChild('tex_play_name')
|
|
self._viewText_playConfig = self._view:GetChild('text_play_config')
|
|
|
|
print("lingmeng FGAssistInviteView4")
|
|
|
|
self._view:GetChild('btn_no').onClick:Set(function()
|
|
print("lingmeng btn_no")
|
|
self:Destroy()
|
|
end)
|
|
|
|
print("lingmeng FGAssistInviteView5")
|
|
|
|
self._view:GetChild('btn_yes').onClick:Set(function()
|
|
print("lingmeng btn_yes", self.callback)
|
|
|
|
if self.callback then
|
|
self.callback()
|
|
end
|
|
self:Destroy()
|
|
end)
|
|
print("lingmeng FGAssistInviteViewend")
|
|
self:FillData()
|
|
end
|
|
|
|
function M:FillData()
|
|
|
|
end
|
|
|
|
function M:Destroy()
|
|
BaseWindow.Destroy(self)
|
|
end
|
|
|
|
return M
|