| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676 |
- ---@class UIPetContractAttribute__Generate_toggle4_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetContractAttribute__Generate_toggle4
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@field public petLock UnityEngine.GameObject
- ---@field public iconPetItem UIPetContractAttribute__Generate_toggle4_iconPetItem
- ---@class UIPetContractAttribute__Generate_toggle3_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetContractAttribute__Generate_toggle3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@field public petLock UnityEngine.GameObject
- ---@field public iconPetItem UIPetContractAttribute__Generate_toggle3_iconPetItem
- ---@class UIPetContractAttribute__Generate_toggle2_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetContractAttribute__Generate_toggle2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@field public petLock UnityEngine.GameObject
- ---@field public iconPetItem UIPetContractAttribute__Generate_toggle2_iconPetItem
- ---@class UIPetContractAttribute__Generate_toggle1_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetContractAttribute__Generate_toggle1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@field public petLock UnityEngine.GameObject
- ---@field public iconPetItem UIPetContractAttribute__Generate_toggle1_iconPetItem
- ---@class UIPetContractAttribute__Generate_toggleAll
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@class UIPetContractAttribute__Generate_toggleGroup
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggleGroup UnityEngine.UI.ToggleGroup
- ---@class UIPetContractAttribute__Generate_addSView_content
- ---@field public gameObject UnityEngine.GameObject
- ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
- ---@class UIPetContractAttribute__Generate_addSView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
- ---@field public content UIPetContractAttribute__Generate_addSView_content
- ---@class UIPetContractAttribute__Generate_baseSView_content
- ---@field public gameObject UnityEngine.GameObject
- ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
- ---@class UIPetContractAttribute__Generate_baseSView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
- ---@field public content UIPetContractAttribute__Generate_baseSView_content
- ---@class UIPetContractAttribute__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractAttribute__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractAttribute__Generate_uIAnimator
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UIPetContractAttribute__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private uIAnimator UIPetContractAttribute__Generate_uIAnimator
- ---@field private AnyBtn UIPetContractAttribute__Generate_AnyBtn
- ---@field private window UnityEngine.GameObject
- ---@field private btnClose UIPetContractAttribute__Generate_btnClose
- ---@field private scrollView UnityEngine.GameObject
- ---@field private baseAttrs UnityEngine.GameObject
- ---@field private baseSView UIPetContractAttribute__Generate_baseSView
- ---@field private addAttrs UnityEngine.GameObject
- ---@field private addSView UIPetContractAttribute__Generate_addSView
- ---@field private none UnityEngine.GameObject
- ---@field private natureAttrItem UnityEngine.GameObject
- ---@field private noContract UnityEngine.GameObject
- ---@field private toggleGroup UIPetContractAttribute__Generate_toggleGroup
- ---@field private toggleAll UIPetContractAttribute__Generate_toggleAll
- ---@field private toggle1 UIPetContractAttribute__Generate_toggle1
- ---@field private toggle2 UIPetContractAttribute__Generate_toggle2
- ---@field private toggle3 UIPetContractAttribute__Generate_toggle3
- ---@field private toggle4 UIPetContractAttribute__Generate_toggle4
- local UIPetContractAttributeView = class("UIPetContractAttributeView", require("UIViewBase"))
- function UIPetContractAttributeView:ctor()
- end
- ---@private
- function UIPetContractAttributeView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIPetContractAttributeView: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)
- self:InitGenerate__21(Root,data)
- self:InitGenerate__22(Root,data)
- self:InitGenerate__23(Root,data)
- self:InitGenerate__24(Root,data)
- self:InitGenerate__25(Root,data)
- self:InitGenerate__26(Root,data)
- self:InitGenerate__27(Root,data)
- self:InitGenerate__28(Root,data)
- self:InitGenerate__29(Root,data)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function UIPetContractAttributeView: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 UIPetContractAttributeView: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 UIPetContractAttributeView: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 UIPetContractAttributeView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/Bg/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/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 UIPetContractAttributeView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scrollView = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseAttrs
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseAttrs").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.baseAttrs = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.baseSView = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView/Viewport/Content
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/BaseSView/Viewport/Content").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.baseSView.content = tmp
- tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddAttrs
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddAttrs").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.addAttrs = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.addSView = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView/Viewport/Content
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/AddSView/Viewport/Content").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.addSView.content = tmp
- tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/None
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/Content/None").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.none = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/NatureAttrItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ScrollView/Viewport/NatureAttrItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.natureAttrItem = CommonUtil.BindGridViewItem2LuaStatic("NatureAttrItem", tmp)
- self.natureAttrItem.prefabName = "NatureAttrItem"
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/NoContract
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/NoContract").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.noContract = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__16(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleGroup = tmp
- tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__17(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/ToggleAll
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/ToggleAll").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleAll = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__18(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle1 = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__19(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/PetLock
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/PetLock").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle1.petLock = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__20(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/IconPetItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle1/PetIcon/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle1.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.toggle1.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__21(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle2 = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__22(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/PetLock
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/PetLock").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle2.petLock = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__23(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/IconPetItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle2/PetIcon/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle2.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.toggle2.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__24(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle3 = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__25(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/PetLock
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/PetLock").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle3.petLock = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__26(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/IconPetItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle3/PetIcon/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle3.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.toggle3.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__27(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle4 = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__28(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/PetLock
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/PetLock").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle4.petLock = tmp
- end
- ---@private
- function UIPetContractAttributeView:InitGenerate__29(Root, data)
- --[[
- UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/IconPetItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ContractAttrBox/ToggleGroup/Toggle4/PetIcon/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggle4.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.toggle4.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetContractAttributeView:GenerateDestroy()
- if self.toggle4.iconPetItem.GenerateDestroy ~= nil then
- self.toggle4.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.toggle4.iconPetItem) ~= nil then
- tolua.setpeer(self.toggle4.iconPetItem, nil)
- end
- if tolua.getpeer(self.toggle4.petLock) ~= nil then
- tolua.setpeer(self.toggle4.petLock, nil)
- end
- if self.toggle3.iconPetItem.GenerateDestroy ~= nil then
- self.toggle3.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.toggle3.iconPetItem) ~= nil then
- tolua.setpeer(self.toggle3.iconPetItem, nil)
- end
- if tolua.getpeer(self.toggle3.petLock) ~= nil then
- tolua.setpeer(self.toggle3.petLock, nil)
- end
- if self.toggle2.iconPetItem.GenerateDestroy ~= nil then
- self.toggle2.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.toggle2.iconPetItem) ~= nil then
- tolua.setpeer(self.toggle2.iconPetItem, nil)
- end
- if tolua.getpeer(self.toggle2.petLock) ~= nil then
- tolua.setpeer(self.toggle2.petLock, nil)
- end
- if self.toggle1.iconPetItem.GenerateDestroy ~= nil then
- self.toggle1.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.toggle1.iconPetItem) ~= nil then
- tolua.setpeer(self.toggle1.iconPetItem, nil)
- end
- if tolua.getpeer(self.toggle1.petLock) ~= nil then
- tolua.setpeer(self.toggle1.petLock, nil)
- end
- if tolua.getpeer(self.addSView.content) ~= nil then
- tolua.setpeer(self.addSView.content, nil)
- end
- if tolua.getpeer(self.baseSView.content) ~= nil then
- tolua.setpeer(self.baseSView.content, 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.scrollView) ~= nil then
- tolua.setpeer(self.scrollView, nil)
- end
- self.scrollView = nil
- if tolua.getpeer(self.baseAttrs) ~= nil then
- tolua.setpeer(self.baseAttrs, nil)
- end
- self.baseAttrs = nil
- if tolua.getpeer(self.baseSView) ~= nil then
- tolua.setpeer(self.baseSView, nil)
- end
- self.baseSView = nil
- if tolua.getpeer(self.addAttrs) ~= nil then
- tolua.setpeer(self.addAttrs, nil)
- end
- self.addAttrs = nil
- if tolua.getpeer(self.addSView) ~= nil then
- tolua.setpeer(self.addSView, nil)
- end
- self.addSView = nil
- if tolua.getpeer(self.none) ~= nil then
- tolua.setpeer(self.none, nil)
- end
- self.none = nil
- if self.natureAttrItem.GenerateDestroy ~= nil then
- self.natureAttrItem:GenerateDestroy()
- end
- if tolua.getpeer(self.natureAttrItem) ~= nil then
- tolua.setpeer(self.natureAttrItem, nil)
- end
- self.natureAttrItem = nil
- if tolua.getpeer(self.noContract) ~= nil then
- tolua.setpeer(self.noContract, nil)
- end
- self.noContract = nil
- if tolua.getpeer(self.toggleGroup) ~= nil then
- tolua.setpeer(self.toggleGroup, nil)
- end
- self.toggleGroup = nil
- if tolua.getpeer(self.toggleAll) ~= nil then
- tolua.setpeer(self.toggleAll, nil)
- end
- self.toggleAll = nil
- if tolua.getpeer(self.toggle1) ~= nil then
- tolua.setpeer(self.toggle1, nil)
- end
- self.toggle1 = nil
- if tolua.getpeer(self.toggle2) ~= nil then
- tolua.setpeer(self.toggle2, nil)
- end
- self.toggle2 = nil
- if tolua.getpeer(self.toggle3) ~= nil then
- tolua.setpeer(self.toggle3, nil)
- end
- self.toggle3 = nil
- if tolua.getpeer(self.toggle4) ~= nil then
- tolua.setpeer(self.toggle4, nil)
- end
- self.toggle4 = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIPetContractAttributeView
|