|
@@ -1,6 +1,17 @@
|
|
|
|
|
+---@class UIWaiting__Generate_cancelBtn
|
|
|
|
|
+---@field public gameObject UnityEngine.GameObject
|
|
|
|
|
+---@field public button UnityEngine.UI.Button
|
|
|
|
|
+
|
|
|
|
|
+---@class UIWaiting__Generate_notice
|
|
|
|
|
+---@field public gameObject UnityEngine.GameObject
|
|
|
|
|
+---@field public text UnityEngine.UI.Text
|
|
|
|
|
+
|
|
|
---@class UIWaiting__Generate
|
|
---@class UIWaiting__Generate
|
|
|
---@field private gameObject UnityEngine.GameObject
|
|
---@field private gameObject UnityEngine.GameObject
|
|
|
---@field private transform UnityEngine.Transform
|
|
---@field private transform UnityEngine.Transform
|
|
|
|
|
+---@field private noticeRoot UnityEngine.GameObject
|
|
|
|
|
+---@field private notice UIWaiting__Generate_notice
|
|
|
|
|
+---@field private cancelBtn UIWaiting__Generate_cancelBtn
|
|
|
local UIWaitingView = class("UIWaitingView", require("UIViewBase"))
|
|
local UIWaitingView = class("UIWaitingView", require("UIViewBase"))
|
|
|
|
|
|
|
|
function UIWaitingView:ctor()
|
|
function UIWaitingView:ctor()
|
|
@@ -20,12 +31,67 @@ function UIWaitingView:InitGenerate(Root, data)
|
|
|
end
|
|
end
|
|
|
local tmp
|
|
local tmp
|
|
|
|
|
|
|
|
|
|
+ self:InitGenerate__1(Root,data)
|
|
|
|
|
+ self:InitGenerate__2(Root,data)
|
|
|
|
|
+ self:InitGenerate__3(Root,data)
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
|
+---@private
|
|
|
|
|
+function UIWaitingView:InitGenerate__1(Root, data)
|
|
|
|
|
+--[[
|
|
|
|
|
+ WaitingRoot/NoticeRoot
|
|
|
|
|
+--]]
|
|
|
|
|
+ local tmp = Root:Find("WaitingRoot/NoticeRoot").gameObject
|
|
|
|
|
+ if tolua.getpeer(tmp) == nil then
|
|
|
|
|
+ tolua.setpeer(tmp, {})
|
|
|
|
|
+ end
|
|
|
|
|
+ self.noticeRoot = tmp
|
|
|
|
|
+end
|
|
|
|
|
+
|
|
|
|
|
+---@private
|
|
|
|
|
+function UIWaitingView:InitGenerate__2(Root, data)
|
|
|
|
|
+--[[
|
|
|
|
|
+ WaitingRoot/NoticeRoot/Notice
|
|
|
|
|
+--]]
|
|
|
|
|
+ local tmp = Root:Find("WaitingRoot/NoticeRoot/Notice").gameObject
|
|
|
|
|
+ if tolua.getpeer(tmp) == nil then
|
|
|
|
|
+ tolua.setpeer(tmp, {})
|
|
|
|
|
+ end
|
|
|
|
|
+ self.notice = tmp
|
|
|
|
|
+
|
|
|
|
|
+ tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
|
|
|
+end
|
|
|
|
|
+
|
|
|
|
|
+---@private
|
|
|
|
|
+function UIWaitingView:InitGenerate__3(Root, data)
|
|
|
|
|
+--[[
|
|
|
|
|
+ WaitingRoot/NoticeRoot/CancelBtn
|
|
|
|
|
+--]]
|
|
|
|
|
+ local tmp = Root:Find("WaitingRoot/NoticeRoot/CancelBtn").gameObject
|
|
|
|
|
+ if tolua.getpeer(tmp) == nil then
|
|
|
|
|
+ tolua.setpeer(tmp, {})
|
|
|
|
|
+ end
|
|
|
|
|
+ self.cancelBtn = tmp
|
|
|
|
|
+
|
|
|
|
|
+ tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
|
|
|
|
|
+end
|
|
|
|
|
+
|
|
|
---@private
|
|
---@private
|
|
|
function UIWaitingView:GenerateDestroy()
|
|
function UIWaitingView:GenerateDestroy()
|
|
|
|
|
+ if tolua.getpeer(self.noticeRoot) ~= nil then
|
|
|
|
|
+ tolua.setpeer(self.noticeRoot, nil)
|
|
|
|
|
+ end
|
|
|
|
|
+ self.noticeRoot = nil
|
|
|
|
|
+ if tolua.getpeer(self.notice) ~= nil then
|
|
|
|
|
+ tolua.setpeer(self.notice, nil)
|
|
|
|
|
+ end
|
|
|
|
|
+ self.notice = nil
|
|
|
|
|
+ if tolua.getpeer(self.cancelBtn) ~= nil then
|
|
|
|
|
+ tolua.setpeer(self.cancelBtn, nil)
|
|
|
|
|
+ end
|
|
|
|
|
+ self.cancelBtn = nil
|
|
|
self.transform = nil
|
|
self.transform = nil
|
|
|
self.gameObject = nil
|
|
self.gameObject = nil
|
|
|
self.inited = false
|
|
self.inited = false
|