| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- ---@class UIWjBattleBuffView__Generate_btnBack
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIWjBattleBuffView__Generate_BtnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIWjBattleBuffView__Generate_content
- ---@field public gameObject UnityEngine.GameObject
- ---@field public horizontalLayoutGroup UnityEngine.UI.HorizontalLayoutGroup
- ---@class UIWjBattleBuffView__Generate_scrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
- ---@class UIWjBattleBuffView__Generate_title
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class UIWjBattleBuffView__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIWjBattleBuffView__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private AnyBtn UIWjBattleBuffView__Generate_AnyBtn
- ---@field private title UIWjBattleBuffView__Generate_title
- ---@field private scrollView UIWjBattleBuffView__Generate_scrollView
- ---@field private content UIWjBattleBuffView__Generate_content
- ---@field private BtnClose UIWjBattleBuffView__Generate_BtnClose
- ---@field private btnBack UIWjBattleBuffView__Generate_btnBack
- local UIWjBattleBuffViewView = class("UIWjBattleBuffViewView", require("UIViewBase"))
- function UIWjBattleBuffViewView:ctor()
- end
- ---@private
- function UIWjBattleBuffViewView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- if self.super.Init then
- self.super.Init(self)
- end
- local tmp
- self:InitGenerate__1(Root,data)
- self:InitGenerate__2(Root,data)
- self:InitGenerate__3(Root,data)
- self:InitGenerate__4(Root,data)
- self:InitGenerate__5(Root,data)
- self:InitGenerate__6(Root,data)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__1(Root, data)
- --[[
- UIAnimator/Alpha
- --]]
- local tmp = Root:Find("UIAnimator/Alpha").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.AnyBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__2(Root, data)
- --[[
- UIAnimator/Window/Title
- --]]
- local tmp = Root:Find("UIAnimator/Window/Title").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.title = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__3(Root, data)
- --[[
- UIAnimator/Window/TaskItems/ScrollView
- --]]
- local tmp = Root:Find("UIAnimator/Window/TaskItems/ScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scrollView = tmp
- tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/TaskItems/ScrollView/Viewport/Content
- --]]
- local tmp = Root:Find("UIAnimator/Window/TaskItems/ScrollView/Viewport/Content").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.content = tmp
- tmp.horizontalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.HorizontalLayoutGroup)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/BtnCloseFlat
- --]]
- local tmp = Root:Find("UIAnimator/Window/BtnCloseFlat").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.BtnClose = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIWjBattleBuffViewView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/BtnBack
- --]]
- local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBack = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIWjBattleBuffViewView:GenerateDestroy()
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.title) ~= nil then
- tolua.setpeer(self.title, nil)
- end
- self.title = nil
- if tolua.getpeer(self.scrollView) ~= nil then
- tolua.setpeer(self.scrollView, nil)
- end
- self.scrollView = nil
- if tolua.getpeer(self.content) ~= nil then
- tolua.setpeer(self.content, nil)
- end
- self.content = nil
- if tolua.getpeer(self.BtnClose) ~= nil then
- tolua.setpeer(self.BtnClose, nil)
- end
- self.BtnClose = nil
- if tolua.getpeer(self.btnBack) ~= nil then
- tolua.setpeer(self.btnBack, nil)
- end
- self.btnBack = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIWjBattleBuffViewView
|