| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502 |
- ---@class UICollect__Generate_numexchage
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UICollect__Generate_btnPlayRule
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_lockCollection_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class UICollect__Generate_lockCollection
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public text UICollect__Generate_lockCollection_text
- ---@class UICollect__Generate_btnCollectionBook
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_lockPet_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class UICollect__Generate_lockPet
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public text UICollect__Generate_lockPet_text
- ---@class UICollect__Generate_btnPetBook
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_lockCard_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UICollect__Generate_lockCard
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public text UICollect__Generate_lockCard_text
- ---@class UICollect__Generate_btnCardBook
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_bookAnim
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@class UICollect__Generate_bookItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@class UICollect__Generate_window
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UICollect__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UICollect__Generate_uIAnimator
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UICollect__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private uIAnimator UICollect__Generate_uIAnimator
- ---@field private AnyBtn UICollect__Generate_AnyBtn
- ---@field private window UICollect__Generate_window
- ---@field private bookItem UICollect__Generate_bookItem
- ---@field private bookAnim UICollect__Generate_bookAnim
- ---@field private enterAnim UnityEngine.GameObject
- ---@field private btnCardBook UICollect__Generate_btnCardBook
- ---@field private lockCard UICollect__Generate_lockCard
- ---@field private btnPetBook UICollect__Generate_btnPetBook
- ---@field private lockPet UICollect__Generate_lockPet
- ---@field private btnCollectionBook UICollect__Generate_btnCollectionBook
- ---@field private lockCollection UICollect__Generate_lockCollection
- ---@field private btnClose UICollect__Generate_btnClose
- ---@field private btnPlayRule UICollect__Generate_btnPlayRule
- ---@field private myExchangeCards UnityEngine.GameObject
- ---@field private numexchage UICollect__Generate_numexchage
- ---@field private talkBox UnityEngine.GameObject
- local UICollectView = class("UICollectView", require("UIViewBase"))
- function UICollectView:ctor()
- end
- ---@private
- function UICollectView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UICollectView: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)
- self:InitGenerate__7(Root,data)
- self:InitGenerate__8(Root,data)
- self:InitGenerate__9(Root,data)
- self:InitGenerate__10(Root,data)
- self:InitGenerate__11(Root,data)
- self:InitGenerate__12(Root,data)
- self:InitGenerate__13(Root,data)
- self:InitGenerate__14(Root,data)
- self:InitGenerate__15(Root,data)
- self:InitGenerate__16(Root,data)
- self:InitGenerate__17(Root,data)
- self:InitGenerate__18(Root,data)
- self:InitGenerate__19(Root,data)
- self:InitGenerate__20(Root,data)
- end
- ---@private
- function UICollectView:InitGenerate__1(Root, data)
- --[[
- UIAnimator
- --]]
- local tmp = Root:Find("UIAnimator").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.uIAnimator = tmp
- tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
- tmp.animator.logWarnings = false
- end
- ---@private
- function UICollectView:InitGenerate__2(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 UICollectView:InitGenerate__3(Root, data)
- --[[
- UIAnimator/Window
- --]]
- local tmp = Root:Find("UIAnimator/Window").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.window = tmp
- tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
- tmp.animator.logWarnings = false
- end
- ---@private
- function UICollectView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/BookItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/BookItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bookItem = CommonUtil.BindGridViewItem2LuaStatic("BookItem", tmp)
- self.bookItem.prefabName = "BookItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function UICollectView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/BookAnim
- --]]
- local tmp = Root:Find("UIAnimator/Window/BookAnim").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bookAnim = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function UICollectView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/EnterAnim
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.enterAnim = tmp
- end
- ---@private
- function UICollectView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnCardBook = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook/LockCard
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook/LockCard").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockCard = tmp
- self.lockCard:SetActive(false)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook/LockCard/Label/Text
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCardBook/LockCard/Label/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockCard.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UICollectView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnPetBook = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook/LockPet
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook/LockPet").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockPet = tmp
- self.lockPet:SetActive(false)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook/LockPet/Label/Text
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnPetBook/LockPet/Label/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockPet.text = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function UICollectView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnCollectionBook = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook/LockCollection
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook/LockCollection").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockCollection = tmp
- self.lockCollection:SetActive(false)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook/LockCollection/Label/Text
- --]]
- local tmp = Root:Find("UIAnimator/Window/EnterAnim/Viewport/Content/BtnCollectionBook/LockCollection/Label/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.lockCollection.text = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function UICollectView:InitGenerate__16(Root, data)
- --[[
- UIAnimator/Window/BottomAnim/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/BottomAnim/BtnClose").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnClose = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__17(Root, data)
- --[[
- UIAnimator/Window/TopView/BtnPlayRule
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/BtnPlayRule").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnPlayRule = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UICollectView:InitGenerate__18(Root, data)
- --[[
- UIAnimator/Window/TopView/MyExchangeCards
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/MyExchangeCards").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.myExchangeCards = tmp
- self.myExchangeCards:SetActive(false)
- end
- ---@private
- function UICollectView:InitGenerate__19(Root, data)
- --[[
- UIAnimator/Window/TopView/MyExchangeCards/numexchage
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/MyExchangeCards/numexchage").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.numexchage = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UICollectView:InitGenerate__20(Root, data)
- --[[
- UIAnimator/Window/TopView/TalkBox
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/TalkBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkBox = tmp
- end
- ---@private
- function UICollectView:GenerateDestroy()
- if tolua.getpeer(self.lockCollection.text) ~= nil then
- tolua.setpeer(self.lockCollection.text, nil)
- end
- if tolua.getpeer(self.lockPet.text) ~= nil then
- tolua.setpeer(self.lockPet.text, nil)
- end
- if tolua.getpeer(self.lockCard.text) ~= nil then
- tolua.setpeer(self.lockCard.text, nil)
- end
- if tolua.getpeer(self.uIAnimator) ~= nil then
- tolua.setpeer(self.uIAnimator, nil)
- end
- self.uIAnimator = nil
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.window) ~= nil then
- tolua.setpeer(self.window, nil)
- end
- self.window = nil
- if self.bookItem.GenerateDestroy ~= nil then
- self.bookItem:GenerateDestroy()
- end
- if tolua.getpeer(self.bookItem) ~= nil then
- tolua.setpeer(self.bookItem, nil)
- end
- self.bookItem = nil
- if tolua.getpeer(self.bookAnim) ~= nil then
- tolua.setpeer(self.bookAnim, nil)
- end
- self.bookAnim = nil
- if tolua.getpeer(self.enterAnim) ~= nil then
- tolua.setpeer(self.enterAnim, nil)
- end
- self.enterAnim = nil
- if tolua.getpeer(self.btnCardBook) ~= nil then
- tolua.setpeer(self.btnCardBook, nil)
- end
- self.btnCardBook = nil
- if tolua.getpeer(self.lockCard) ~= nil then
- tolua.setpeer(self.lockCard, nil)
- end
- self.lockCard = nil
- if tolua.getpeer(self.btnPetBook) ~= nil then
- tolua.setpeer(self.btnPetBook, nil)
- end
- self.btnPetBook = nil
- if tolua.getpeer(self.lockPet) ~= nil then
- tolua.setpeer(self.lockPet, nil)
- end
- self.lockPet = nil
- if tolua.getpeer(self.btnCollectionBook) ~= nil then
- tolua.setpeer(self.btnCollectionBook, nil)
- end
- self.btnCollectionBook = nil
- if tolua.getpeer(self.lockCollection) ~= nil then
- tolua.setpeer(self.lockCollection, nil)
- end
- self.lockCollection = nil
- if tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = nil
- if tolua.getpeer(self.btnPlayRule) ~= nil then
- tolua.setpeer(self.btnPlayRule, nil)
- end
- self.btnPlayRule = nil
- if tolua.getpeer(self.myExchangeCards) ~= nil then
- tolua.setpeer(self.myExchangeCards, nil)
- end
- self.myExchangeCards = nil
- if tolua.getpeer(self.numexchage) ~= nil then
- tolua.setpeer(self.numexchage, nil)
- end
- self.numexchage = nil
- if tolua.getpeer(self.talkBox) ~= nil then
- tolua.setpeer(self.talkBox, nil)
- end
- self.talkBox = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UICollectView
|