| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517 |
- ---@class CardEquipItem__Generate_btnChange
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class CardEquipItem__Generate_btnEquip
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class CardEquipItem__Generate_slot4_check
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot4_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot4
- ---@field public gameObject UnityEngine.GameObject
- ---@field public shadow CardEquipItem__Generate_slot4_shadow
- ---@field public check CardEquipItem__Generate_slot4_check
- ---@class CardEquipItem__Generate_slot3_check
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot3_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot3
- ---@field public gameObject UnityEngine.GameObject
- ---@field public shadow CardEquipItem__Generate_slot3_shadow
- ---@field public check CardEquipItem__Generate_slot3_check
- ---@class CardEquipItem__Generate_slot2_check
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot2_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot2
- ---@field public gameObject UnityEngine.GameObject
- ---@field public shadow CardEquipItem__Generate_slot2_shadow
- ---@field public check CardEquipItem__Generate_slot2_check
- ---@class CardEquipItem__Generate_slot1_check
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot1_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_slot1
- ---@field public gameObject UnityEngine.GameObject
- ---@field public shadow CardEquipItem__Generate_slot1_shadow
- ---@field public check CardEquipItem__Generate_slot1_check
- ---@class CardEquipItem__Generate_equipCards
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class CardEquipItem__Generate_belong
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class CardEquipItem__Generate_jobIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class CardEquipItem__Generate_textName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class CardEquipItem__Generate_iconItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class CardEquipItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private contentItem UnityEngine.GameObject
- ---@field private iconItem CardEquipItem__Generate_iconItem
- ---@field private textName CardEquipItem__Generate_textName
- ---@field private jobIcon CardEquipItem__Generate_jobIcon
- ---@field private belong CardEquipItem__Generate_belong
- ---@field private equipCards CardEquipItem__Generate_equipCards
- ---@field private slot1 CardEquipItem__Generate_slot1
- ---@field private slot2 CardEquipItem__Generate_slot2
- ---@field private slot3 CardEquipItem__Generate_slot3
- ---@field private slot4 CardEquipItem__Generate_slot4
- ---@field private btnEquip CardEquipItem__Generate_btnEquip
- ---@field private btnChange CardEquipItem__Generate_btnChange
- ---@field private labelRecommend UnityEngine.GameObject
- local CardEquipItemView = class("CardEquipItemView")
- function CardEquipItemView:ctor()
- end
- ---@private
- function CardEquipItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function CardEquipItemView: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)
- end
- ---@private
- function CardEquipItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function CardEquipItemView:InitGenerate__2(Root, data)
- --[[
- ContentItem
- --]]
- local tmp = Root:Find("ContentItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.contentItem = tmp
- end
- ---@private
- function CardEquipItemView:InitGenerate__3(Root, data)
- --[[
- ContentItem/IconItem
- --]]
- local tmp = Root:Find("ContentItem/IconItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
- self.iconItem.prefabName = "IconItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function CardEquipItemView:InitGenerate__4(Root, data)
- --[[
- Texts/TextName
- --]]
- local tmp = Root:Find("Texts/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 CardEquipItemView:InitGenerate__5(Root, data)
- --[[
- Texts/Type1/JobIcon
- --]]
- local tmp = Root:Find("Texts/Type1/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 CardEquipItemView:InitGenerate__6(Root, data)
- --[[
- Texts/Type1/Belong
- --]]
- local tmp = Root:Find("Texts/Type1/Belong").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.belong = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function CardEquipItemView:InitGenerate__7(Root, data)
- --[[
- Texts/Type2/EquipCards
- --]]
- local tmp = Root:Find("Texts/Type2/EquipCards").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.equipCards = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function CardEquipItemView:InitGenerate__8(Root, data)
- --[[
- Texts/Type2/Cards/Slot1
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot1").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot1 = tmp
- end
- ---@private
- function CardEquipItemView:InitGenerate__9(Root, data)
- --[[
- Texts/Type2/Cards/Slot1/shadow
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot1/shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot1.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__10(Root, data)
- --[[
- Texts/Type2/Cards/Slot1/Check
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot1/Check").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot1.check = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__11(Root, data)
- --[[
- Texts/Type2/Cards/Slot2
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot2").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot2 = tmp
- end
- ---@private
- function CardEquipItemView:InitGenerate__12(Root, data)
- --[[
- Texts/Type2/Cards/Slot2/shadow
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot2/shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot2.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__13(Root, data)
- --[[
- Texts/Type2/Cards/Slot2/Check
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot2/Check").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot2.check = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__14(Root, data)
- --[[
- Texts/Type2/Cards/Slot3
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot3").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot3 = tmp
- end
- ---@private
- function CardEquipItemView:InitGenerate__15(Root, data)
- --[[
- Texts/Type2/Cards/Slot3/shadow
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot3/shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot3.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__16(Root, data)
- --[[
- Texts/Type2/Cards/Slot3/Check
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot3/Check").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot3.check = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__17(Root, data)
- --[[
- Texts/Type2/Cards/Slot4
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot4").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot4 = tmp
- end
- ---@private
- function CardEquipItemView:InitGenerate__18(Root, data)
- --[[
- Texts/Type2/Cards/Slot4/shadow
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot4/shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot4.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__19(Root, data)
- --[[
- Texts/Type2/Cards/Slot4/Check
- --]]
- local tmp = Root:Find("Texts/Type2/Cards/Slot4/Check").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.slot4.check = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function CardEquipItemView:InitGenerate__20(Root, data)
- --[[
- BtnEquip
- --]]
- local tmp = Root:Find("BtnEquip").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnEquip = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function CardEquipItemView:InitGenerate__21(Root, data)
- --[[
- BtnChange
- --]]
- local tmp = Root:Find("BtnChange").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnChange = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function CardEquipItemView:InitGenerate__22(Root, data)
- --[[
- LabelRecommend
- --]]
- local tmp = Root:Find("LabelRecommend").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.labelRecommend = tmp
- end
- ---@private
- function CardEquipItemView:GenerateDestroy()
- if tolua.getpeer(self.slot4.check) ~= nil then
- tolua.setpeer(self.slot4.check, nil)
- end
- if tolua.getpeer(self.slot4.shadow) ~= nil then
- tolua.setpeer(self.slot4.shadow, nil)
- end
- if tolua.getpeer(self.slot3.check) ~= nil then
- tolua.setpeer(self.slot3.check, nil)
- end
- if tolua.getpeer(self.slot3.shadow) ~= nil then
- tolua.setpeer(self.slot3.shadow, nil)
- end
- if tolua.getpeer(self.slot2.check) ~= nil then
- tolua.setpeer(self.slot2.check, nil)
- end
- if tolua.getpeer(self.slot2.shadow) ~= nil then
- tolua.setpeer(self.slot2.shadow, nil)
- end
- if tolua.getpeer(self.slot1.check) ~= nil then
- tolua.setpeer(self.slot1.check, nil)
- end
- if tolua.getpeer(self.slot1.shadow) ~= nil then
- tolua.setpeer(self.slot1.shadow, nil)
- end
- if tolua.getpeer(self.contentItem) ~= nil then
- tolua.setpeer(self.contentItem, nil)
- end
- self.contentItem = nil
- if self.iconItem.GenerateDestroy ~= nil then
- self.iconItem:GenerateDestroy()
- end
- if tolua.getpeer(self.iconItem) ~= nil then
- tolua.setpeer(self.iconItem, nil)
- end
- self.iconItem = nil
- if tolua.getpeer(self.textName) ~= nil then
- tolua.setpeer(self.textName, nil)
- end
- self.textName = nil
- if tolua.getpeer(self.jobIcon) ~= nil then
- tolua.setpeer(self.jobIcon, nil)
- end
- self.jobIcon = nil
- if tolua.getpeer(self.belong) ~= nil then
- tolua.setpeer(self.belong, nil)
- end
- self.belong = nil
- if tolua.getpeer(self.equipCards) ~= nil then
- tolua.setpeer(self.equipCards, nil)
- end
- self.equipCards = nil
- if tolua.getpeer(self.slot1) ~= nil then
- tolua.setpeer(self.slot1, nil)
- end
- self.slot1 = nil
- if tolua.getpeer(self.slot2) ~= nil then
- tolua.setpeer(self.slot2, nil)
- end
- self.slot2 = nil
- if tolua.getpeer(self.slot3) ~= nil then
- tolua.setpeer(self.slot3, nil)
- end
- self.slot3 = nil
- if tolua.getpeer(self.slot4) ~= nil then
- tolua.setpeer(self.slot4, nil)
- end
- self.slot4 = nil
- if tolua.getpeer(self.btnEquip) ~= nil then
- tolua.setpeer(self.btnEquip, nil)
- end
- self.btnEquip = nil
- if tolua.getpeer(self.btnChange) ~= nil then
- tolua.setpeer(self.btnChange, nil)
- end
- self.btnChange = nil
- if tolua.getpeer(self.labelRecommend) ~= nil then
- tolua.setpeer(self.labelRecommend, nil)
- end
- self.labelRecommend = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return CardEquipItemView
|