| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- ---@class UIPetStampList__Generate_equipListItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
- ---@class UIPetStampList__Generate_scrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopListView SuperScrollView.LoopListView
- ---@class UIPetStampList__Generate_btnDown
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetStampList__Generate_btnChange
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetStampList__Generate_topItem_textName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class UIPetStampList__Generate_iconItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetStampList__Generate_topItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public textName UIPetStampList__Generate_topItem_textName
- ---@field public grid UnityEngine.GameObject
- ---@class UIPetStampList__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetStampList__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetStampList__Generate_uIAnimator
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UIPetStampList__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private uIAnimator UIPetStampList__Generate_uIAnimator
- ---@field private AnyBtn UIPetStampList__Generate_AnyBtn
- ---@field private window UnityEngine.GameObject
- ---@field private btnClose UIPetStampList__Generate_btnClose
- ---@field private topItem UIPetStampList__Generate_topItem
- ---@field private equipListEquippedItem UnityEngine.GameObject
- ---@field private contentItem UnityEngine.GameObject
- ---@field private iconItem UIPetStampList__Generate_iconItem
- ---@field private equipBaseAttrItem UnityEngine.GameObject
- ---@field private equiped UnityEngine.GameObject
- ---@field private btnChange UIPetStampList__Generate_btnChange
- ---@field private btnDown UIPetStampList__Generate_btnDown
- ---@field private equipBlank UnityEngine.GameObject
- ---@field private scrollView UIPetStampList__Generate_scrollView
- ---@field private equipListItem UIPetStampList__Generate_equipListItem
- local UIPetStampListView = class("UIPetStampListView", require("UIViewBase"))
- function UIPetStampListView:ctor()
- end
- ---@private
- function UIPetStampListView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIPetStampListView: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)
- end
- ---@private
- function UIPetStampListView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function UIPetStampListView:InitGenerate__2(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 UIPetStampListView:InitGenerate__3(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 UIPetStampListView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window
- --]]
- local tmp = Root:Find("UIAnimator/Window").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.window = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/Bg/CloseBox/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/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 UIPetStampListView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.topItem = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equipListEquippedItem = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.contentItem = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem/IconItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/ContentItem/IconItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
- self.iconItem.prefabName = "IconItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetStampListView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/TextName
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/TextName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.topItem.textName = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function UIPetStampListView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/EquipBaseAttrItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/EquipBaseAttrItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equipBaseAttrItem = CommonUtil.BindGridViewItem2LuaStatic("EquipBaseAttrItem", tmp)
- self.equipBaseAttrItem.prefabName = "EquipBaseAttrItem"
- end
- ---@private
- function UIPetStampListView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/Grid
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/TextsBox/Grid").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.topItem.grid = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/Equiped
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/Equiped").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equiped = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnChange
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnChange").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnChange = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIPetStampListView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnDown
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipListEquippedItem/BtnDown").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnDown = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIPetStampListView:InitGenerate__16(Root, data)
- --[[
- UIAnimator/Window/Bg/TopItem/EquipBlank
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TopItem/EquipBlank").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equipBlank = tmp
- end
- ---@private
- function UIPetStampListView:InitGenerate__17(Root, data)
- --[[
- UIAnimator/Window/Bg/ScrollView
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scrollView = tmp
- tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
- end
- ---@private
- function UIPetStampListView:InitGenerate__18(Root, data)
- --[[
- UIAnimator/Window/Bg/ScrollView/Viewport/Content/EquipListItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ScrollView/Viewport/Content/EquipListItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equipListItem = CommonUtil.BindGridViewItem2LuaStatic("EquipListItem", tmp)
- self.equipListItem.prefabName = "EquipListItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
- end
- ---@private
- function UIPetStampListView:GenerateDestroy()
- if tolua.getpeer(self.topItem.grid) ~= nil then
- tolua.setpeer(self.topItem.grid, nil)
- end
- if tolua.getpeer(self.topItem.textName) ~= nil then
- tolua.setpeer(self.topItem.textName, 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 tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = nil
- if tolua.getpeer(self.topItem) ~= nil then
- tolua.setpeer(self.topItem, nil)
- end
- self.topItem = nil
- if tolua.getpeer(self.equipListEquippedItem) ~= nil then
- tolua.setpeer(self.equipListEquippedItem, nil)
- end
- self.equipListEquippedItem = nil
- if tolua.getpeer(self.contentItem) ~= nil then
- tolua.setpeer(self.contentItem, nil)
- end
- self.contentItem = nil
- if self.iconItem.GenerateDestroy ~= nil then
- self.iconItem:GenerateDestroy()
- end
- if tolua.getpeer(self.iconItem) ~= nil then
- tolua.setpeer(self.iconItem, nil)
- end
- self.iconItem = nil
- if self.equipBaseAttrItem.GenerateDestroy ~= nil then
- self.equipBaseAttrItem:GenerateDestroy()
- end
- if tolua.getpeer(self.equipBaseAttrItem) ~= nil then
- tolua.setpeer(self.equipBaseAttrItem, nil)
- end
- self.equipBaseAttrItem = nil
- if tolua.getpeer(self.equiped) ~= nil then
- tolua.setpeer(self.equiped, nil)
- end
- self.equiped = nil
- if tolua.getpeer(self.btnChange) ~= nil then
- tolua.setpeer(self.btnChange, nil)
- end
- self.btnChange = nil
- if tolua.getpeer(self.btnDown) ~= nil then
- tolua.setpeer(self.btnDown, nil)
- end
- self.btnDown = nil
- if tolua.getpeer(self.equipBlank) ~= nil then
- tolua.setpeer(self.equipBlank, nil)
- end
- self.equipBlank = nil
- if tolua.getpeer(self.scrollView) ~= nil then
- tolua.setpeer(self.scrollView, nil)
- end
- self.scrollView = nil
- if self.equipListItem.GenerateDestroy ~= nil then
- self.equipListItem:GenerateDestroy()
- end
- if tolua.getpeer(self.equipListItem) ~= nil then
- tolua.setpeer(self.equipListItem, nil)
- end
- self.equipListItem = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIPetStampListView
|