---@class PetContractItem__Generate_contractBox_slot4_iconPetItem ---@field public gameObject UnityEngine.GameObject ---@field public rectTransform UnityEngine.RectTransform ---@field public layoutElement UnityEngine.UI.LayoutElement ---@class PetContractItem__Generate_contractBox_slot4_btnLock ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot4_btnAdd ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot4 ---@field public gameObject UnityEngine.GameObject ---@field public btnAdd PetContractItem__Generate_contractBox_slot4_btnAdd ---@field public btnLock PetContractItem__Generate_contractBox_slot4_btnLock ---@field public iconPetItem PetContractItem__Generate_contractBox_slot4_iconPetItem ---@field public uIRedPointRP UnityEngine.GameObject ---@class PetContractItem__Generate_contractBox_slot3_iconPetItem ---@field public gameObject UnityEngine.GameObject ---@field public rectTransform UnityEngine.RectTransform ---@field public layoutElement UnityEngine.UI.LayoutElement ---@class PetContractItem__Generate_contractBox_slot3_btnLock ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot3_btnAdd ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot3 ---@field public gameObject UnityEngine.GameObject ---@field public btnAdd PetContractItem__Generate_contractBox_slot3_btnAdd ---@field public btnLock PetContractItem__Generate_contractBox_slot3_btnLock ---@field public iconPetItem PetContractItem__Generate_contractBox_slot3_iconPetItem ---@field public uIRedPointRP UnityEngine.GameObject ---@class PetContractItem__Generate_contractBox_slot2_iconPetItem ---@field public gameObject UnityEngine.GameObject ---@field public rectTransform UnityEngine.RectTransform ---@field public layoutElement UnityEngine.UI.LayoutElement ---@class PetContractItem__Generate_contractBox_slot2_btnLock ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot2_btnAdd ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot2 ---@field public gameObject UnityEngine.GameObject ---@field public btnAdd PetContractItem__Generate_contractBox_slot2_btnAdd ---@field public btnLock PetContractItem__Generate_contractBox_slot2_btnLock ---@field public iconPetItem PetContractItem__Generate_contractBox_slot2_iconPetItem ---@field public uIRedPointRP UnityEngine.GameObject ---@class PetContractItem__Generate_contractBox_slot1_iconPetItem ---@field public gameObject UnityEngine.GameObject ---@field public rectTransform UnityEngine.RectTransform ---@field public layoutElement UnityEngine.UI.LayoutElement ---@class PetContractItem__Generate_contractBox_slot1_btnLock ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot1_btnAdd ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_contractBox_slot1 ---@field public gameObject UnityEngine.GameObject ---@field public btnAdd PetContractItem__Generate_contractBox_slot1_btnAdd ---@field public btnLock PetContractItem__Generate_contractBox_slot1_btnLock ---@field public iconPetItem PetContractItem__Generate_contractBox_slot1_iconPetItem ---@field public uIRedPointRP UnityEngine.GameObject ---@class PetContractItem__Generate_contractBox ---@field public gameObject UnityEngine.GameObject ---@field public slot1 PetContractItem__Generate_contractBox_slot1 ---@field public slot2 PetContractItem__Generate_contractBox_slot2 ---@field public slot3 PetContractItem__Generate_contractBox_slot3 ---@field public slot4 PetContractItem__Generate_contractBox_slot4 ---@class PetContractItem__Generate_extraBox_petExtra_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_extraBox_petExtra ---@field public gameObject UnityEngine.GameObject ---@field public number PetContractItem__Generate_extraBox_petExtra_number ---@class PetContractItem__Generate_extraBox_petQty_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_extraBox_petQty_nature ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@class PetContractItem__Generate_extraBox_petQty ---@field public gameObject UnityEngine.GameObject ---@field public nature PetContractItem__Generate_extraBox_petQty_nature ---@field public number PetContractItem__Generate_extraBox_petQty_number ---@class PetContractItem__Generate_extraBox ---@field public gameObject UnityEngine.GameObject ---@field public petQty PetContractItem__Generate_extraBox_petQty ---@field public petExtra PetContractItem__Generate_extraBox_petExtra ---@class PetContractItem__Generate_btnRemoveAll ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class PetContractItem__Generate_heroName ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_jobIcon ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@class PetContractItem__Generate_activatedBox_attrItem4_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_activatedBox_attrItem4_text ---@field public gameObject UnityEngine.GameObject ---@field public uILocalizeScript UILocalizeScript ---@class PetContractItem__Generate_activatedBox_attrItem4 ---@field public gameObject UnityEngine.GameObject ---@field public text PetContractItem__Generate_activatedBox_attrItem4_text ---@field public number PetContractItem__Generate_activatedBox_attrItem4_number ---@class PetContractItem__Generate_activatedBox_attrItem3_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_activatedBox_attrItem3_text ---@field public gameObject UnityEngine.GameObject ---@field public uILocalizeScript UILocalizeScript ---@class PetContractItem__Generate_activatedBox_attrItem3 ---@field public gameObject UnityEngine.GameObject ---@field public text PetContractItem__Generate_activatedBox_attrItem3_text ---@field public number PetContractItem__Generate_activatedBox_attrItem3_number ---@class PetContractItem__Generate_activatedBox_attrItem2_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_activatedBox_attrItem2_text ---@field public gameObject UnityEngine.GameObject ---@field public uILocalizeScript UILocalizeScript ---@class PetContractItem__Generate_activatedBox_attrItem2 ---@field public gameObject UnityEngine.GameObject ---@field public text PetContractItem__Generate_activatedBox_attrItem2_text ---@field public number PetContractItem__Generate_activatedBox_attrItem2_number ---@class PetContractItem__Generate_activatedBox_attrItem1_number ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class PetContractItem__Generate_activatedBox_attrItem1_text ---@field public gameObject UnityEngine.GameObject ---@field public uILocalizeScript UILocalizeScript ---@class PetContractItem__Generate_activatedBox_attrItem1 ---@field public gameObject UnityEngine.GameObject ---@field public text PetContractItem__Generate_activatedBox_attrItem1_text ---@field public number PetContractItem__Generate_activatedBox_attrItem1_number ---@class PetContractItem__Generate_activatedBox ---@field public gameObject UnityEngine.GameObject ---@field public attrItem1 PetContractItem__Generate_activatedBox_attrItem1 ---@field public attrItem2 PetContractItem__Generate_activatedBox_attrItem2 ---@field public attrItem3 PetContractItem__Generate_activatedBox_attrItem3 ---@field public attrItem4 PetContractItem__Generate_activatedBox_attrItem4 ---@class PetContractItem__Generate_noticeText ---@field public gameObject UnityEngine.GameObject ---@field public uILocalizeScript UILocalizeScript ---@class PetContractItem__Generate_iconPetItem ---@field public gameObject UnityEngine.GameObject ---@field public rectTransform UnityEngine.RectTransform ---@field public layoutElement UnityEngine.UI.LayoutElement ---@class PetContractItem__Generate ---@field private gameObject UnityEngine.GameObject ---@field private transform UnityEngine.Transform ---@field private petLock UnityEngine.GameObject ---@field private iconPetItem PetContractItem__Generate_iconPetItem ---@field private noticeBox UnityEngine.GameObject ---@field private noticeText PetContractItem__Generate_noticeText ---@field private activatedBox PetContractItem__Generate_activatedBox ---@field private jobIcon PetContractItem__Generate_jobIcon ---@field private heroName PetContractItem__Generate_heroName ---@field private btnRemoveAll PetContractItem__Generate_btnRemoveAll ---@field private extraBox PetContractItem__Generate_extraBox ---@field private contractBox PetContractItem__Generate_contractBox local PetContractItemView = class("PetContractItemView") function PetContractItemView:ctor() end ---@private function PetContractItemView:SetActive(result) self.gameObject:SetActive(result) end ---@private function PetContractItemView: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) self:InitGenerate__43(Root,data) self:InitGenerate__44(Root,data) self:InitGenerate__45(Root,data) self:InitGenerate__46(Root,data) self:InitGenerate__47(Root,data) self:InitGenerate__48(Root,data) end ---@private function PetContractItemView:InitGenerate__1(Root, data) --[[ Root --]] end ---@private function PetContractItemView:InitGenerate__2(Root, data) --[[ PetIcon/PetLock --]] local tmp = Root:Find("PetIcon/PetLock").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.petLock = tmp end ---@private function PetContractItemView:InitGenerate__3(Root, data) --[[ PetIcon/IconPetItem --]] local tmp = Root:Find("PetIcon/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 PetContractItemView:InitGenerate__4(Root, data) --[[ NoticeBox --]] local tmp = Root:Find("NoticeBox").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.noticeBox = tmp end ---@private function PetContractItemView:InitGenerate__5(Root, data) --[[ NoticeBox/NoticeText --]] local tmp = Root:Find("NoticeBox/NoticeText").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.noticeText = tmp tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function PetContractItemView:InitGenerate__6(Root, data) --[[ ActivatedBox --]] local tmp = Root:Find("ActivatedBox").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox = tmp end ---@private function PetContractItemView:InitGenerate__7(Root, data) --[[ ActivatedBox/AttrItem1 --]] local tmp = Root:Find("ActivatedBox/AttrItem1").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem1 = tmp end ---@private function PetContractItemView:InitGenerate__8(Root, data) --[[ ActivatedBox/AttrItem1/Text --]] local tmp = Root:Find("ActivatedBox/AttrItem1/Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem1.text = tmp tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function PetContractItemView:InitGenerate__9(Root, data) --[[ ActivatedBox/AttrItem1/Number --]] local tmp = Root:Find("ActivatedBox/AttrItem1/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem1.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__10(Root, data) --[[ ActivatedBox/AttrItem2 --]] local tmp = Root:Find("ActivatedBox/AttrItem2").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem2 = tmp end ---@private function PetContractItemView:InitGenerate__11(Root, data) --[[ ActivatedBox/AttrItem2/Text --]] local tmp = Root:Find("ActivatedBox/AttrItem2/Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem2.text = tmp tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function PetContractItemView:InitGenerate__12(Root, data) --[[ ActivatedBox/AttrItem2/Number --]] local tmp = Root:Find("ActivatedBox/AttrItem2/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem2.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__13(Root, data) --[[ ActivatedBox/AttrItem3 --]] local tmp = Root:Find("ActivatedBox/AttrItem3").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem3 = tmp end ---@private function PetContractItemView:InitGenerate__14(Root, data) --[[ ActivatedBox/AttrItem3/Text --]] local tmp = Root:Find("ActivatedBox/AttrItem3/Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem3.text = tmp tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function PetContractItemView:InitGenerate__15(Root, data) --[[ ActivatedBox/AttrItem3/Number --]] local tmp = Root:Find("ActivatedBox/AttrItem3/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem3.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__16(Root, data) --[[ ActivatedBox/AttrItem4 --]] local tmp = Root:Find("ActivatedBox/AttrItem4").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem4 = tmp end ---@private function PetContractItemView:InitGenerate__17(Root, data) --[[ ActivatedBox/AttrItem4/Text --]] local tmp = Root:Find("ActivatedBox/AttrItem4/Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem4.text = tmp tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript) end ---@private function PetContractItemView:InitGenerate__18(Root, data) --[[ ActivatedBox/AttrItem4/Number --]] local tmp = Root:Find("ActivatedBox/AttrItem4/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.activatedBox.attrItem4.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__19(Root, data) --[[ Label/JobIcon --]] local tmp = Root:Find("Label/JobIcon").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.jobIcon = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) end ---@private function PetContractItemView:InitGenerate__20(Root, data) --[[ Label/heroName --]] local tmp = Root:Find("Label/heroName").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.heroName = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__21(Root, data) --[[ BtnRemoveAll --]] local tmp = Root:Find("BtnRemoveAll").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.btnRemoveAll = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__22(Root, data) --[[ ExtraBox --]] local tmp = Root:Find("ExtraBox").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox = tmp end ---@private function PetContractItemView:InitGenerate__23(Root, data) --[[ ExtraBox/PetQty --]] local tmp = Root:Find("ExtraBox/PetQty").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox.petQty = tmp end ---@private function PetContractItemView:InitGenerate__24(Root, data) --[[ ExtraBox/PetQty/nature --]] local tmp = Root:Find("ExtraBox/PetQty/nature").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox.petQty.nature = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) end ---@private function PetContractItemView:InitGenerate__25(Root, data) --[[ ExtraBox/PetQty/Number --]] local tmp = Root:Find("ExtraBox/PetQty/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox.petQty.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__26(Root, data) --[[ ExtraBox/PetExtra --]] local tmp = Root:Find("ExtraBox/PetExtra").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox.petExtra = tmp end ---@private function PetContractItemView:InitGenerate__27(Root, data) --[[ ExtraBox/PetExtra/Number --]] local tmp = Root:Find("ExtraBox/PetExtra/Number").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.extraBox.petExtra.number = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function PetContractItemView:InitGenerate__28(Root, data) --[[ ContractBox --]] local tmp = Root:Find("ContractBox").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox = tmp end ---@private function PetContractItemView:InitGenerate__29(Root, data) --[[ ContractBox/slot1 --]] local tmp = Root:Find("ContractBox/slot1").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot1 = tmp end ---@private function PetContractItemView:InitGenerate__30(Root, data) --[[ ContractBox/slot1/BtnAdd --]] local tmp = Root:Find("ContractBox/slot1/BtnAdd").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot1.btnAdd = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__31(Root, data) --[[ ContractBox/slot1/BtnLock --]] local tmp = Root:Find("ContractBox/slot1/BtnLock").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot1.btnLock = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__32(Root, data) --[[ ContractBox/slot1/IconPetItem --]] local tmp = Root:Find("ContractBox/slot1/IconPetItem").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot1.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp) self.contractBox.slot1.iconPetItem.prefabName = "IconPetItem" tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform) tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement) end ---@private function PetContractItemView:InitGenerate__33(Root, data) --[[ ContractBox/slot1/UIRedPointRP --]] local tmp = Root:Find("ContractBox/slot1/UIRedPointRP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot1.uIRedPointRP = tmp end ---@private function PetContractItemView:InitGenerate__34(Root, data) --[[ ContractBox/slot2 --]] local tmp = Root:Find("ContractBox/slot2").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot2 = tmp end ---@private function PetContractItemView:InitGenerate__35(Root, data) --[[ ContractBox/slot2/BtnAdd --]] local tmp = Root:Find("ContractBox/slot2/BtnAdd").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot2.btnAdd = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__36(Root, data) --[[ ContractBox/slot2/BtnLock --]] local tmp = Root:Find("ContractBox/slot2/BtnLock").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot2.btnLock = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__37(Root, data) --[[ ContractBox/slot2/IconPetItem --]] local tmp = Root:Find("ContractBox/slot2/IconPetItem").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot2.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp) self.contractBox.slot2.iconPetItem.prefabName = "IconPetItem" tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform) tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement) end ---@private function PetContractItemView:InitGenerate__38(Root, data) --[[ ContractBox/slot2/UIRedPointRP --]] local tmp = Root:Find("ContractBox/slot2/UIRedPointRP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot2.uIRedPointRP = tmp end ---@private function PetContractItemView:InitGenerate__39(Root, data) --[[ ContractBox/slot3 --]] local tmp = Root:Find("ContractBox/slot3").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot3 = tmp end ---@private function PetContractItemView:InitGenerate__40(Root, data) --[[ ContractBox/slot3/BtnAdd --]] local tmp = Root:Find("ContractBox/slot3/BtnAdd").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot3.btnAdd = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__41(Root, data) --[[ ContractBox/slot3/BtnLock --]] local tmp = Root:Find("ContractBox/slot3/BtnLock").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot3.btnLock = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__42(Root, data) --[[ ContractBox/slot3/IconPetItem --]] local tmp = Root:Find("ContractBox/slot3/IconPetItem").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot3.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp) self.contractBox.slot3.iconPetItem.prefabName = "IconPetItem" tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform) tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement) end ---@private function PetContractItemView:InitGenerate__43(Root, data) --[[ ContractBox/slot3/UIRedPointRP --]] local tmp = Root:Find("ContractBox/slot3/UIRedPointRP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot3.uIRedPointRP = tmp end ---@private function PetContractItemView:InitGenerate__44(Root, data) --[[ ContractBox/slot4 --]] local tmp = Root:Find("ContractBox/slot4").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot4 = tmp end ---@private function PetContractItemView:InitGenerate__45(Root, data) --[[ ContractBox/slot4/BtnAdd --]] local tmp = Root:Find("ContractBox/slot4/BtnAdd").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot4.btnAdd = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__46(Root, data) --[[ ContractBox/slot4/BtnLock --]] local tmp = Root:Find("ContractBox/slot4/BtnLock").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot4.btnLock = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function PetContractItemView:InitGenerate__47(Root, data) --[[ ContractBox/slot4/IconPetItem --]] local tmp = Root:Find("ContractBox/slot4/IconPetItem").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot4.iconPetItem = CommonUtil.BindGridViewItem2LuaStatic("IconPetItem", tmp) self.contractBox.slot4.iconPetItem.prefabName = "IconPetItem" tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform) tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement) end ---@private function PetContractItemView:InitGenerate__48(Root, data) --[[ ContractBox/slot4/UIRedPointRP --]] local tmp = Root:Find("ContractBox/slot4/UIRedPointRP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.contractBox.slot4.uIRedPointRP = tmp end ---@private function PetContractItemView:GenerateDestroy() if tolua.getpeer(self.contractBox.slot4.uIRedPointRP) ~= nil then tolua.setpeer(self.contractBox.slot4.uIRedPointRP, nil) end if self.contractBox.slot4.iconPetItem.GenerateDestroy ~= nil then self.contractBox.slot4.iconPetItem:GenerateDestroy() end if tolua.getpeer(self.contractBox.slot4.iconPetItem) ~= nil then tolua.setpeer(self.contractBox.slot4.iconPetItem, nil) end if tolua.getpeer(self.contractBox.slot4.btnLock) ~= nil then tolua.setpeer(self.contractBox.slot4.btnLock, nil) end if tolua.getpeer(self.contractBox.slot4.btnAdd) ~= nil then tolua.setpeer(self.contractBox.slot4.btnAdd, nil) end if tolua.getpeer(self.contractBox.slot4) ~= nil then tolua.setpeer(self.contractBox.slot4, nil) end if tolua.getpeer(self.contractBox.slot3.uIRedPointRP) ~= nil then tolua.setpeer(self.contractBox.slot3.uIRedPointRP, nil) end if self.contractBox.slot3.iconPetItem.GenerateDestroy ~= nil then self.contractBox.slot3.iconPetItem:GenerateDestroy() end if tolua.getpeer(self.contractBox.slot3.iconPetItem) ~= nil then tolua.setpeer(self.contractBox.slot3.iconPetItem, nil) end if tolua.getpeer(self.contractBox.slot3.btnLock) ~= nil then tolua.setpeer(self.contractBox.slot3.btnLock, nil) end if tolua.getpeer(self.contractBox.slot3.btnAdd) ~= nil then tolua.setpeer(self.contractBox.slot3.btnAdd, nil) end if tolua.getpeer(self.contractBox.slot3) ~= nil then tolua.setpeer(self.contractBox.slot3, nil) end if tolua.getpeer(self.contractBox.slot2.uIRedPointRP) ~= nil then tolua.setpeer(self.contractBox.slot2.uIRedPointRP, nil) end if self.contractBox.slot2.iconPetItem.GenerateDestroy ~= nil then self.contractBox.slot2.iconPetItem:GenerateDestroy() end if tolua.getpeer(self.contractBox.slot2.iconPetItem) ~= nil then tolua.setpeer(self.contractBox.slot2.iconPetItem, nil) end if tolua.getpeer(self.contractBox.slot2.btnLock) ~= nil then tolua.setpeer(self.contractBox.slot2.btnLock, nil) end if tolua.getpeer(self.contractBox.slot2.btnAdd) ~= nil then tolua.setpeer(self.contractBox.slot2.btnAdd, nil) end if tolua.getpeer(self.contractBox.slot2) ~= nil then tolua.setpeer(self.contractBox.slot2, nil) end if tolua.getpeer(self.contractBox.slot1.uIRedPointRP) ~= nil then tolua.setpeer(self.contractBox.slot1.uIRedPointRP, nil) end if self.contractBox.slot1.iconPetItem.GenerateDestroy ~= nil then self.contractBox.slot1.iconPetItem:GenerateDestroy() end if tolua.getpeer(self.contractBox.slot1.iconPetItem) ~= nil then tolua.setpeer(self.contractBox.slot1.iconPetItem, nil) end if tolua.getpeer(self.contractBox.slot1.btnLock) ~= nil then tolua.setpeer(self.contractBox.slot1.btnLock, nil) end if tolua.getpeer(self.contractBox.slot1.btnAdd) ~= nil then tolua.setpeer(self.contractBox.slot1.btnAdd, nil) end if tolua.getpeer(self.contractBox.slot1) ~= nil then tolua.setpeer(self.contractBox.slot1, nil) end if tolua.getpeer(self.extraBox.petExtra.number) ~= nil then tolua.setpeer(self.extraBox.petExtra.number, nil) end if tolua.getpeer(self.extraBox.petExtra) ~= nil then tolua.setpeer(self.extraBox.petExtra, nil) end if tolua.getpeer(self.extraBox.petQty.number) ~= nil then tolua.setpeer(self.extraBox.petQty.number, nil) end if tolua.getpeer(self.extraBox.petQty.nature) ~= nil then tolua.setpeer(self.extraBox.petQty.nature, nil) end if tolua.getpeer(self.extraBox.petQty) ~= nil then tolua.setpeer(self.extraBox.petQty, nil) end if tolua.getpeer(self.activatedBox.attrItem4.number) ~= nil then tolua.setpeer(self.activatedBox.attrItem4.number, nil) end if tolua.getpeer(self.activatedBox.attrItem4.text) ~= nil then tolua.setpeer(self.activatedBox.attrItem4.text, nil) end if tolua.getpeer(self.activatedBox.attrItem4) ~= nil then tolua.setpeer(self.activatedBox.attrItem4, nil) end if tolua.getpeer(self.activatedBox.attrItem3.number) ~= nil then tolua.setpeer(self.activatedBox.attrItem3.number, nil) end if tolua.getpeer(self.activatedBox.attrItem3.text) ~= nil then tolua.setpeer(self.activatedBox.attrItem3.text, nil) end if tolua.getpeer(self.activatedBox.attrItem3) ~= nil then tolua.setpeer(self.activatedBox.attrItem3, nil) end if tolua.getpeer(self.activatedBox.attrItem2.number) ~= nil then tolua.setpeer(self.activatedBox.attrItem2.number, nil) end if tolua.getpeer(self.activatedBox.attrItem2.text) ~= nil then tolua.setpeer(self.activatedBox.attrItem2.text, nil) end if tolua.getpeer(self.activatedBox.attrItem2) ~= nil then tolua.setpeer(self.activatedBox.attrItem2, nil) end if tolua.getpeer(self.activatedBox.attrItem1.number) ~= nil then tolua.setpeer(self.activatedBox.attrItem1.number, nil) end if tolua.getpeer(self.activatedBox.attrItem1.text) ~= nil then tolua.setpeer(self.activatedBox.attrItem1.text, nil) end if tolua.getpeer(self.activatedBox.attrItem1) ~= nil then tolua.setpeer(self.activatedBox.attrItem1, nil) end if self.iconPetItem.GenerateDestroy ~= nil then self.iconPetItem:GenerateDestroy() end if tolua.getpeer(self.iconPetItem) ~= nil then tolua.setpeer(self.iconPetItem, nil) end if tolua.getpeer(self.petLock) ~= nil then tolua.setpeer(self.petLock, nil) end self.petLock = nil if tolua.getpeer(self.noticeBox) ~= nil then tolua.setpeer(self.noticeBox, nil) end self.noticeBox = nil if tolua.getpeer(self.noticeText) ~= nil then tolua.setpeer(self.noticeText, nil) end self.noticeText = nil if tolua.getpeer(self.activatedBox) ~= nil then tolua.setpeer(self.activatedBox, nil) end self.activatedBox = nil if tolua.getpeer(self.jobIcon) ~= nil then tolua.setpeer(self.jobIcon, nil) end self.jobIcon = nil if tolua.getpeer(self.heroName) ~= nil then tolua.setpeer(self.heroName, nil) end self.heroName = nil if tolua.getpeer(self.btnRemoveAll) ~= nil then tolua.setpeer(self.btnRemoveAll, nil) end self.btnRemoveAll = nil if tolua.getpeer(self.extraBox) ~= nil then tolua.setpeer(self.extraBox, nil) end self.extraBox = nil if tolua.getpeer(self.contractBox) ~= nil then tolua.setpeer(self.contractBox, nil) end self.contractBox = nil self.transform = nil self.gameObject = nil self.inited = false end return PetContractItemView