| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- ---@class UIPetContractTips__Generate_btnOK
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractTips__Generate_btnCancel
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractTips__Generate_skillExtra_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIPetContractTips__Generate_skillExtra
- ---@field public gameObject UnityEngine.GameObject
- ---@field public number UIPetContractTips__Generate_skillExtra_number
- ---@class UIPetContractTips__Generate_contractEffect_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIPetContractTips__Generate_contractEffect
- ---@field public gameObject UnityEngine.GameObject
- ---@field public number UIPetContractTips__Generate_contractEffect_number
- ---@class UIPetContractTips__Generate_petExtra_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIPetContractTips__Generate_petExtra_nature
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIPetContractTips__Generate_petExtra
- ---@field public gameObject UnityEngine.GameObject
- ---@field public nature UIPetContractTips__Generate_petExtra_nature
- ---@field public number UIPetContractTips__Generate_petExtra_number
- ---@class UIPetContractTips__Generate_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIPetContractTips__Generate_scrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopGridView SuperScrollView.LoopGridView
- ---@class UIPetContractTips__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractTips__Generate_textTitle
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class UIPetContractTips__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIPetContractTips__Generate_uIAnimator
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UIPetContractTips__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private uIAnimator UIPetContractTips__Generate_uIAnimator
- ---@field private AnyBtn UIPetContractTips__Generate_AnyBtn
- ---@field private textTitle UIPetContractTips__Generate_textTitle
- ---@field private btnClose UIPetContractTips__Generate_btnClose
- ---@field private scrollView UIPetContractTips__Generate_scrollView
- ---@field private iconPetItem UIPetContractTips__Generate_iconPetItem
- ---@field private noPets UnityEngine.GameObject
- ---@field private petExtra UIPetContractTips__Generate_petExtra
- ---@field private bottom UnityEngine.GameObject
- ---@field private contractEffect UIPetContractTips__Generate_contractEffect
- ---@field private skillExtra UIPetContractTips__Generate_skillExtra
- ---@field private btnCancel UIPetContractTips__Generate_btnCancel
- ---@field private btnOK UIPetContractTips__Generate_btnOK
- local UIPetContractTipsView = class("UIPetContractTipsView", require("UIViewBase"))
- function UIPetContractTipsView:ctor()
- end
- ---@private
- function UIPetContractTipsView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIPetContractTipsView: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 UIPetContractTipsView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function UIPetContractTipsView: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 UIPetContractTipsView: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 UIPetContractTipsView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/Bg/TextTitle
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TextTitle").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.textTitle = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function UIPetContractTipsView: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 UIPetContractTipsView:InitGenerate__6(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.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/Bg/ScrollView/Viewport/Content/IconPetItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/ScrollView/Viewport/Content/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/Bg/NoPets
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/NoPets").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.noPets = tmp
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/Bg/PetExtra
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/PetExtra").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.petExtra = tmp
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/Bg/PetExtra/nature
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/PetExtra/nature").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.petExtra.nature = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/Bg/PetExtra/Number
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/PetExtra/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.petExtra.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bottom = tmp
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/ExtraBox/ContractEffect
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/ExtraBox/ContractEffect").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.contractEffect = tmp
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/ExtraBox/ContractEffect/Number
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/ExtraBox/ContractEffect/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.contractEffect.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/ExtraBox/SkillExtra
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/ExtraBox/SkillExtra").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.skillExtra = tmp
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__16(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/ExtraBox/SkillExtra/Number
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/ExtraBox/SkillExtra/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.skillExtra.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__17(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/BtnCancel
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/BtnCancel").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnCancel = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIPetContractTipsView:InitGenerate__18(Root, data)
- --[[
- UIAnimator/Window/Bg/Bottom/BtnOK
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/BtnOK").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnOK = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIPetContractTipsView:GenerateDestroy()
- if tolua.getpeer(self.skillExtra.number) ~= nil then
- tolua.setpeer(self.skillExtra.number, nil)
- end
- if tolua.getpeer(self.contractEffect.number) ~= nil then
- tolua.setpeer(self.contractEffect.number, nil)
- end
- if tolua.getpeer(self.petExtra.number) ~= nil then
- tolua.setpeer(self.petExtra.number, nil)
- end
- if tolua.getpeer(self.petExtra.nature) ~= nil then
- tolua.setpeer(self.petExtra.nature, 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.textTitle) ~= nil then
- tolua.setpeer(self.textTitle, nil)
- end
- self.textTitle = 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 self.iconPetItem.GenerateDestroy ~= nil then
- self.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.iconPetItem) ~= nil then
- tolua.setpeer(self.iconPetItem, nil)
- end
- self.iconPetItem = nil
- if tolua.getpeer(self.noPets) ~= nil then
- tolua.setpeer(self.noPets, nil)
- end
- self.noPets = nil
- if tolua.getpeer(self.petExtra) ~= nil then
- tolua.setpeer(self.petExtra, nil)
- end
- self.petExtra = nil
- if tolua.getpeer(self.bottom) ~= nil then
- tolua.setpeer(self.bottom, nil)
- end
- self.bottom = nil
- if tolua.getpeer(self.contractEffect) ~= nil then
- tolua.setpeer(self.contractEffect, nil)
- end
- self.contractEffect = nil
- if tolua.getpeer(self.skillExtra) ~= nil then
- tolua.setpeer(self.skillExtra, nil)
- end
- self.skillExtra = nil
- if tolua.getpeer(self.btnCancel) ~= nil then
- tolua.setpeer(self.btnCancel, nil)
- end
- self.btnCancel = nil
- if tolua.getpeer(self.btnOK) ~= nil then
- tolua.setpeer(self.btnOK, nil)
- end
- self.btnOK = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIPetContractTipsView
|