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