---@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