| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944 |
- ---@class PetRelationItem__Generate_item3_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class PetRelationItem__Generate_item3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconPetItem PetRelationItem__Generate_item3_iconPetItem
- ---@class PetRelationItem__Generate_item2_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class PetRelationItem__Generate_item2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconPetItem PetRelationItem__Generate_item2_iconPetItem
- ---@class PetRelationItem__Generate_item1_iconPetItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class PetRelationItem__Generate_item1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconPetItem PetRelationItem__Generate_item1_iconPetItem
- ---@class PetRelationItem__Generate_textName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_btnexpand
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class PetRelationItem__Generate_relationAttr3_attr3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr3_attr2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr3_attr1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr3_count
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr3_attrDsc
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr3_bgActivedState
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class PetRelationItem__Generate_relationAttr3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uIEffectCfg UIEffectCfg
- ---@field public bgActivedState PetRelationItem__Generate_relationAttr3_bgActivedState
- ---@field public activedState UnityEngine.GameObject
- ---@field public unactivatedState UnityEngine.GameObject
- ---@field public attrDsc PetRelationItem__Generate_relationAttr3_attrDsc
- ---@field public count PetRelationItem__Generate_relationAttr3_count
- ---@field public attr1 PetRelationItem__Generate_relationAttr3_attr1
- ---@field public attr2 PetRelationItem__Generate_relationAttr3_attr2
- ---@field public attr3 PetRelationItem__Generate_relationAttr3_attr3
- ---@field public fx UnityEngine.GameObject
- ---@class PetRelationItem__Generate_relationAttr2_attr3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr2_attr2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr2_attr1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr2_count
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr2_attrDsc
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr2_bgActivedState
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class PetRelationItem__Generate_relationAttr2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uIEffectCfg UIEffectCfg
- ---@field public bgActivedState PetRelationItem__Generate_relationAttr2_bgActivedState
- ---@field public activedState UnityEngine.GameObject
- ---@field public unactivatedState UnityEngine.GameObject
- ---@field public attrDsc PetRelationItem__Generate_relationAttr2_attrDsc
- ---@field public count PetRelationItem__Generate_relationAttr2_count
- ---@field public attr1 PetRelationItem__Generate_relationAttr2_attr1
- ---@field public attr2 PetRelationItem__Generate_relationAttr2_attr2
- ---@field public attr3 PetRelationItem__Generate_relationAttr2_attr3
- ---@field public fx UnityEngine.GameObject
- ---@class PetRelationItem__Generate_relationAttr1_attr3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr1_attr2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr1_attr1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr1_count
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr1_attrDsc
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class PetRelationItem__Generate_relationAttr1_bgActivedState
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class PetRelationItem__Generate_relationAttr1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public uIEffectCfg UIEffectCfg
- ---@field public bgActivedState PetRelationItem__Generate_relationAttr1_bgActivedState
- ---@field public activedState UnityEngine.GameObject
- ---@field public unactivatedState UnityEngine.GameObject
- ---@field public attrDsc PetRelationItem__Generate_relationAttr1_attrDsc
- ---@field public count PetRelationItem__Generate_relationAttr1_count
- ---@field public attr1 PetRelationItem__Generate_relationAttr1_attr1
- ---@field public attr2 PetRelationItem__Generate_relationAttr1_attr2
- ---@field public attr3 PetRelationItem__Generate_relationAttr1_attr3
- ---@field public fx UnityEngine.GameObject
- ---@class PetRelationItem__Generate_grid
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@class PetRelationItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rectTransform UnityEngine.RectTransform
- ---@field private grid PetRelationItem__Generate_grid
- ---@field private relationAttr1 PetRelationItem__Generate_relationAttr1
- ---@field private relationAttr2 PetRelationItem__Generate_relationAttr2
- ---@field private relationAttr3 PetRelationItem__Generate_relationAttr3
- ---@field private down UnityEngine.GameObject
- ---@field private up UnityEngine.GameObject
- ---@field private btnexpand PetRelationItem__Generate_btnexpand
- ---@field private textName PetRelationItem__Generate_textName
- ---@field private item1 PetRelationItem__Generate_item1
- ---@field private item2 PetRelationItem__Generate_item2
- ---@field private item3 PetRelationItem__Generate_item3
- local PetRelationItemView = class("PetRelationItemView")
- function PetRelationItemView:ctor()
- end
- ---@private
- function PetRelationItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function PetRelationItemView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- 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)
- self:InitGenerate__30(Root,data)
- self:InitGenerate__31(Root,data)
- self:InitGenerate__32(Root,data)
- self:InitGenerate__33(Root,data)
- self:InitGenerate__34(Root,data)
- self:InitGenerate__35(Root,data)
- self:InitGenerate__36(Root,data)
- self:InitGenerate__37(Root,data)
- self:InitGenerate__38(Root,data)
- self:InitGenerate__39(Root,data)
- self:InitGenerate__40(Root,data)
- self:InitGenerate__41(Root,data)
- self:InitGenerate__42(Root,data)
- end
- ---@private
- function PetRelationItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function PetRelationItemView:InitGenerate__2(Root, data)
- --[[
- Grid
- --]]
- local tmp = Root:Find("Grid").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.grid = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function PetRelationItemView:InitGenerate__3(Root, data)
- --[[
- Grid/RelationAttr1
- --]]
- local tmp = Root:Find("Grid/RelationAttr1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1 = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
- end
- ---@private
- function PetRelationItemView:InitGenerate__4(Root, data)
- --[[
- Grid/RelationAttr1/BgActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/BgActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.bgActivedState = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function PetRelationItemView:InitGenerate__5(Root, data)
- --[[
- Grid/RelationAttr1/ActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/ActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.activedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__6(Root, data)
- --[[
- Grid/RelationAttr1/UnactivatedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/UnactivatedState ").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.unactivatedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__7(Root, data)
- --[[
- Grid/RelationAttr1/AttrDsc
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/AttrDsc").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.attrDsc = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__8(Root, data)
- --[[
- Grid/RelationAttr1/Count
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/Count").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.count = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__9(Root, data)
- --[[
- Grid/RelationAttr1/AttrBox/Attr1
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/AttrBox/Attr1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.attr1 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__10(Root, data)
- --[[
- Grid/RelationAttr1/AttrBox/Attr2
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/AttrBox/Attr2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.attr2 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__11(Root, data)
- --[[
- Grid/RelationAttr1/AttrBox/Attr3
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/AttrBox/Attr3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.attr3 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__12(Root, data)
- --[[
- Grid/RelationAttr1/fx
- --]]
- local tmp = Root:Find("Grid/RelationAttr1/fx").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr1.fx = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__13(Root, data)
- --[[
- Grid/RelationAttr2
- --]]
- local tmp = Root:Find("Grid/RelationAttr2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2 = tmp
- tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
- end
- ---@private
- function PetRelationItemView:InitGenerate__14(Root, data)
- --[[
- Grid/RelationAttr2/BgActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/BgActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.bgActivedState = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function PetRelationItemView:InitGenerate__15(Root, data)
- --[[
- Grid/RelationAttr2/ActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/ActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.activedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__16(Root, data)
- --[[
- Grid/RelationAttr2/UnactivatedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/UnactivatedState ").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.unactivatedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__17(Root, data)
- --[[
- Grid/RelationAttr2/AttrDsc
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/AttrDsc").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.attrDsc = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__18(Root, data)
- --[[
- Grid/RelationAttr2/Count
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/Count").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.count = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__19(Root, data)
- --[[
- Grid/RelationAttr2/AttrBox/Attr1
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/AttrBox/Attr1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.attr1 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__20(Root, data)
- --[[
- Grid/RelationAttr2/AttrBox/Attr2
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/AttrBox/Attr2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.attr2 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__21(Root, data)
- --[[
- Grid/RelationAttr2/AttrBox/Attr3
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/AttrBox/Attr3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.attr3 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__22(Root, data)
- --[[
- Grid/RelationAttr2/fx
- --]]
- local tmp = Root:Find("Grid/RelationAttr2/fx").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr2.fx = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__23(Root, data)
- --[[
- Grid/RelationAttr3
- --]]
- local tmp = Root:Find("Grid/RelationAttr3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3 = tmp
- tmp.uIEffectCfg = tmp:GetComponent(Enum.TypeInfo.UIEffectCfg)
- end
- ---@private
- function PetRelationItemView:InitGenerate__24(Root, data)
- --[[
- Grid/RelationAttr3/BgActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/BgActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.bgActivedState = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function PetRelationItemView:InitGenerate__25(Root, data)
- --[[
- Grid/RelationAttr3/ActivedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/ActivedState").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.activedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__26(Root, data)
- --[[
- Grid/RelationAttr3/UnactivatedState
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/UnactivatedState ").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.unactivatedState = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__27(Root, data)
- --[[
- Grid/RelationAttr3/AttrDsc
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/AttrDsc").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.attrDsc = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__28(Root, data)
- --[[
- Grid/RelationAttr3/Count
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/Count").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.count = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__29(Root, data)
- --[[
- Grid/RelationAttr3/AttrBox/Attr1
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/AttrBox/Attr1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.attr1 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__30(Root, data)
- --[[
- Grid/RelationAttr3/AttrBox/Attr2
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/AttrBox/Attr2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.attr2 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__31(Root, data)
- --[[
- Grid/RelationAttr3/AttrBox/Attr3
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/AttrBox/Attr3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.attr3 = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__32(Root, data)
- --[[
- Grid/RelationAttr3/fx
- --]]
- local tmp = Root:Find("Grid/RelationAttr3/fx").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.relationAttr3.fx = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__33(Root, data)
- --[[
- Top/Down
- --]]
- local tmp = Root:Find("Top/Down").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.down = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__34(Root, data)
- --[[
- Top/Up
- --]]
- local tmp = Root:Find("Top/Up").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.up = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__35(Root, data)
- --[[
- Top/Btnexpand
- --]]
- local tmp = Root:Find("Top/Btnexpand").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnexpand = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function PetRelationItemView:InitGenerate__36(Root, data)
- --[[
- Top/NameBg/TextName
- --]]
- local tmp = Root:Find("Top/NameBg/TextName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.textName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function PetRelationItemView:InitGenerate__37(Root, data)
- --[[
- Top/PetGrid/Item1
- --]]
- local tmp = Root:Find("Top/PetGrid/Item1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item1 = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__38(Root, data)
- --[[
- Top/PetGrid/Item1/IconPetItem
- --]]
- local tmp = Root:Find("Top/PetGrid/Item1/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item1.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.item1.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function PetRelationItemView:InitGenerate__39(Root, data)
- --[[
- Top/PetGrid/Item2
- --]]
- local tmp = Root:Find("Top/PetGrid/Item2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item2 = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__40(Root, data)
- --[[
- Top/PetGrid/Item2/IconPetItem
- --]]
- local tmp = Root:Find("Top/PetGrid/Item2/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item2.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.item2.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function PetRelationItemView:InitGenerate__41(Root, data)
- --[[
- Top/PetGrid/Item3
- --]]
- local tmp = Root:Find("Top/PetGrid/Item3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item3 = tmp
- end
- ---@private
- function PetRelationItemView:InitGenerate__42(Root, data)
- --[[
- Top/PetGrid/Item3/IconPetItem
- --]]
- local tmp = Root:Find("Top/PetGrid/Item3/IconPetItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.item3.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp)
- self.item3.iconPetItem.prefabName = "IconPetItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function PetRelationItemView:GenerateDestroy()
- if self.item3.iconPetItem.GenerateDestroy ~= nil then
- self.item3.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.item3.iconPetItem) ~= nil then
- tolua.setpeer(self.item3.iconPetItem, nil)
- end
- if self.item2.iconPetItem.GenerateDestroy ~= nil then
- self.item2.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.item2.iconPetItem) ~= nil then
- tolua.setpeer(self.item2.iconPetItem, nil)
- end
- if self.item1.iconPetItem.GenerateDestroy ~= nil then
- self.item1.iconPetItem:GenerateDestroy()
- end
- if tolua.getpeer(self.item1.iconPetItem) ~= nil then
- tolua.setpeer(self.item1.iconPetItem, nil)
- end
- if tolua.getpeer(self.relationAttr3.fx) ~= nil then
- tolua.setpeer(self.relationAttr3.fx, nil)
- end
- if tolua.getpeer(self.relationAttr3.attr3) ~= nil then
- tolua.setpeer(self.relationAttr3.attr3, nil)
- end
- if tolua.getpeer(self.relationAttr3.attr2) ~= nil then
- tolua.setpeer(self.relationAttr3.attr2, nil)
- end
- if tolua.getpeer(self.relationAttr3.attr1) ~= nil then
- tolua.setpeer(self.relationAttr3.attr1, nil)
- end
- if tolua.getpeer(self.relationAttr3.count) ~= nil then
- tolua.setpeer(self.relationAttr3.count, nil)
- end
- if tolua.getpeer(self.relationAttr3.attrDsc) ~= nil then
- tolua.setpeer(self.relationAttr3.attrDsc, nil)
- end
- if tolua.getpeer(self.relationAttr3.unactivatedState) ~= nil then
- tolua.setpeer(self.relationAttr3.unactivatedState, nil)
- end
- if tolua.getpeer(self.relationAttr3.activedState) ~= nil then
- tolua.setpeer(self.relationAttr3.activedState, nil)
- end
- if tolua.getpeer(self.relationAttr3.bgActivedState) ~= nil then
- tolua.setpeer(self.relationAttr3.bgActivedState, nil)
- end
- if tolua.getpeer(self.relationAttr2.fx) ~= nil then
- tolua.setpeer(self.relationAttr2.fx, nil)
- end
- if tolua.getpeer(self.relationAttr2.attr3) ~= nil then
- tolua.setpeer(self.relationAttr2.attr3, nil)
- end
- if tolua.getpeer(self.relationAttr2.attr2) ~= nil then
- tolua.setpeer(self.relationAttr2.attr2, nil)
- end
- if tolua.getpeer(self.relationAttr2.attr1) ~= nil then
- tolua.setpeer(self.relationAttr2.attr1, nil)
- end
- if tolua.getpeer(self.relationAttr2.count) ~= nil then
- tolua.setpeer(self.relationAttr2.count, nil)
- end
- if tolua.getpeer(self.relationAttr2.attrDsc) ~= nil then
- tolua.setpeer(self.relationAttr2.attrDsc, nil)
- end
- if tolua.getpeer(self.relationAttr2.unactivatedState) ~= nil then
- tolua.setpeer(self.relationAttr2.unactivatedState, nil)
- end
- if tolua.getpeer(self.relationAttr2.activedState) ~= nil then
- tolua.setpeer(self.relationAttr2.activedState, nil)
- end
- if tolua.getpeer(self.relationAttr2.bgActivedState) ~= nil then
- tolua.setpeer(self.relationAttr2.bgActivedState, nil)
- end
- if tolua.getpeer(self.relationAttr1.fx) ~= nil then
- tolua.setpeer(self.relationAttr1.fx, nil)
- end
- if tolua.getpeer(self.relationAttr1.attr3) ~= nil then
- tolua.setpeer(self.relationAttr1.attr3, nil)
- end
- if tolua.getpeer(self.relationAttr1.attr2) ~= nil then
- tolua.setpeer(self.relationAttr1.attr2, nil)
- end
- if tolua.getpeer(self.relationAttr1.attr1) ~= nil then
- tolua.setpeer(self.relationAttr1.attr1, nil)
- end
- if tolua.getpeer(self.relationAttr1.count) ~= nil then
- tolua.setpeer(self.relationAttr1.count, nil)
- end
- if tolua.getpeer(self.relationAttr1.attrDsc) ~= nil then
- tolua.setpeer(self.relationAttr1.attrDsc, nil)
- end
- if tolua.getpeer(self.relationAttr1.unactivatedState) ~= nil then
- tolua.setpeer(self.relationAttr1.unactivatedState, nil)
- end
- if tolua.getpeer(self.relationAttr1.activedState) ~= nil then
- tolua.setpeer(self.relationAttr1.activedState, nil)
- end
- if tolua.getpeer(self.relationAttr1.bgActivedState) ~= nil then
- tolua.setpeer(self.relationAttr1.bgActivedState, nil)
- end
- if tolua.getpeer(self.grid) ~= nil then
- tolua.setpeer(self.grid, nil)
- end
- self.grid = nil
- if tolua.getpeer(self.relationAttr1) ~= nil then
- tolua.setpeer(self.relationAttr1, nil)
- end
- self.relationAttr1 = nil
- if tolua.getpeer(self.relationAttr2) ~= nil then
- tolua.setpeer(self.relationAttr2, nil)
- end
- self.relationAttr2 = nil
- if tolua.getpeer(self.relationAttr3) ~= nil then
- tolua.setpeer(self.relationAttr3, nil)
- end
- self.relationAttr3 = nil
- if tolua.getpeer(self.down) ~= nil then
- tolua.setpeer(self.down, nil)
- end
- self.down = nil
- if tolua.getpeer(self.up) ~= nil then
- tolua.setpeer(self.up, nil)
- end
- self.up = nil
- if tolua.getpeer(self.btnexpand) ~= nil then
- tolua.setpeer(self.btnexpand, nil)
- end
- self.btnexpand = nil
- if tolua.getpeer(self.textName) ~= nil then
- tolua.setpeer(self.textName, nil)
- end
- self.textName = nil
- if tolua.getpeer(self.item1) ~= nil then
- tolua.setpeer(self.item1, nil)
- end
- self.item1 = nil
- if tolua.getpeer(self.item2) ~= nil then
- tolua.setpeer(self.item2, nil)
- end
- self.item2 = nil
- if tolua.getpeer(self.item3) ~= nil then
- tolua.setpeer(self.item3, nil)
- end
- self.item3 = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return PetRelationItemView
|