| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596 |
- ---@class IconSmallItem__Generate_locked
- ---@field public gameObject UnityEngine.GameObject
- ---@field public locked UnityEngine.GameObject
- ---@class IconSmallItem__Generate_label
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_advenceLv
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class IconSmallItem__Generate_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class IconSmallItem__Generate_refineLv
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class IconSmallItem__Generate_num
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class IconSmallItem__Generate_piece
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_cardLabel
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_sexLabel
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_job
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_level
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_frameLead
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_frame
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_icon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class IconSmallItem__Generate_bg
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@field public button UnityEngine.UI.Button
- ---@field public uIEventTriggerListener UIEventTriggerListener
- ---@class IconSmallItem__Generate_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@field public button UnityEngine.UI.Button
- ---@class IconSmallItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rectTransform UnityEngine.RectTransform
- ---@field private layoutElement UnityEngine.UI.LayoutElement
- ---@field private shadow IconSmallItem__Generate_shadow
- ---@field private bg IconSmallItem__Generate_bg
- ---@field private icon IconSmallItem__Generate_icon
- ---@field private frame IconSmallItem__Generate_frame
- ---@field private frameLead IconSmallItem__Generate_frameLead
- ---@field private level IconSmallItem__Generate_level
- ---@field private job IconSmallItem__Generate_job
- ---@field private sexLabel IconSmallItem__Generate_sexLabel
- ---@field private limited UnityEngine.GameObject
- ---@field private cardLabel IconSmallItem__Generate_cardLabel
- ---@field private piece IconSmallItem__Generate_piece
- ---@field private num IconSmallItem__Generate_num
- ---@field private refineLv IconSmallItem__Generate_refineLv
- ---@field private conertips UnityEngine.GameObject
- ---@field private text IconSmallItem__Generate_text
- ---@field private repeatSign UnityEngine.GameObject
- ---@field private qualityFX UnityEngine.GameObject
- ---@field private advence UnityEngine.GameObject
- ---@field private advenceLv IconSmallItem__Generate_advenceLv
- ---@field private vip UnityEngine.GameObject
- ---@field private label IconSmallItem__Generate_label
- ---@field private redPoint UnityEngine.GameObject
- ---@field private selected UnityEngine.GameObject
- ---@field private locked IconSmallItem__Generate_locked
- local IconSmallItemView = class("IconSmallItemView")
- function IconSmallItemView:ctor()
- end
- ---@private
- function IconSmallItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function IconSmallItemView: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)
- end
- ---@private
- function IconSmallItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
- self.layoutElement = Root:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function IconSmallItemView:InitGenerate__2(Root, data)
- --[[
- shadow
- --]]
- local tmp = Root:Find("shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function IconSmallItemView:InitGenerate__3(Root, data)
- --[[
- bg
- --]]
- local tmp = Root:Find("bg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bg = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
- end
- ---@private
- function IconSmallItemView:InitGenerate__4(Root, data)
- --[[
- Icon
- --]]
- local tmp = Root:Find("Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.icon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__5(Root, data)
- --[[
- Frame
- --]]
- local tmp = Root:Find("Frame").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.frame = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__6(Root, data)
- --[[
- FrameLead
- --]]
- local tmp = Root:Find("FrameLead").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.frameLead = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__7(Root, data)
- --[[
- Level
- --]]
- local tmp = Root:Find("Level").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.level = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__8(Root, data)
- --[[
- Job
- --]]
- local tmp = Root:Find("Job").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.job = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__9(Root, data)
- --[[
- SexLabel
- --]]
- local tmp = Root:Find("SexLabel").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.sexLabel = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__10(Root, data)
- --[[
- Limited
- --]]
- local tmp = Root:Find("Limited").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.limited = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__11(Root, data)
- --[[
- CardLabel
- --]]
- local tmp = Root:Find("CardLabel").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.cardLabel = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__12(Root, data)
- --[[
- Piece
- --]]
- local tmp = Root:Find("Piece").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.piece = tmp
- self.piece:SetActive(false)
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__13(Root, data)
- --[[
- Num
- --]]
- local tmp = Root:Find("Num").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.num = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function IconSmallItemView:InitGenerate__14(Root, data)
- --[[
- RefineLv
- --]]
- local tmp = Root:Find("RefineLv").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.refineLv = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function IconSmallItemView:InitGenerate__15(Root, data)
- --[[
- Conertips
- --]]
- local tmp = Root:Find("Conertips").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.conertips = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__16(Root, data)
- --[[
- Conertips/Text
- --]]
- local tmp = Root:Find("Conertips/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function IconSmallItemView:InitGenerate__17(Root, data)
- --[[
- RepeatSign
- --]]
- local tmp = Root:Find("RepeatSign").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.repeatSign = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__18(Root, data)
- --[[
- QualityFX
- --]]
- local tmp = Root:Find("QualityFX").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qualityFX = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__19(Root, data)
- --[[
- Advence
- --]]
- local tmp = Root:Find("Advence").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.advence = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__20(Root, data)
- --[[
- Advence/AdvenceLv
- --]]
- local tmp = Root:Find("Advence/AdvenceLv").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.advenceLv = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function IconSmallItemView:InitGenerate__21(Root, data)
- --[[
- Vip
- --]]
- local tmp = Root:Find("Vip").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.vip = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__22(Root, data)
- --[[
- Vip/label
- --]]
- local tmp = Root:Find("Vip/label").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.label = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function IconSmallItemView:InitGenerate__23(Root, data)
- --[[
- RedPoint
- --]]
- local tmp = Root:Find("RedPoint").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.redPoint = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__24(Root, data)
- --[[
- Selected
- --]]
- local tmp = Root:Find("Selected").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.selected = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__25(Root, data)
- --[[
- Locked
- --]]
- local tmp = Root:Find("Locked").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.locked = tmp
- end
- ---@private
- function IconSmallItemView:InitGenerate__26(Root, data)
- --[[
- Locked/Locked
- --]]
- local tmp = Root:Find("Locked/Locked").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.locked.locked = tmp
- end
- ---@private
- function IconSmallItemView:GenerateDestroy()
- if tolua.getpeer(self.locked.locked) ~= nil then
- tolua.setpeer(self.locked.locked, nil)
- end
- if tolua.getpeer(self.shadow) ~= nil then
- tolua.setpeer(self.shadow, nil)
- end
- self.shadow = nil
- if tolua.getpeer(self.bg) ~= nil then
- tolua.setpeer(self.bg, nil)
- end
- self.bg = nil
- if tolua.getpeer(self.icon) ~= nil then
- tolua.setpeer(self.icon, nil)
- end
- self.icon = nil
- if tolua.getpeer(self.frame) ~= nil then
- tolua.setpeer(self.frame, nil)
- end
- self.frame = nil
- if tolua.getpeer(self.frameLead) ~= nil then
- tolua.setpeer(self.frameLead, nil)
- end
- self.frameLead = nil
- if tolua.getpeer(self.level) ~= nil then
- tolua.setpeer(self.level, nil)
- end
- self.level = nil
- if tolua.getpeer(self.job) ~= nil then
- tolua.setpeer(self.job, nil)
- end
- self.job = nil
- if tolua.getpeer(self.sexLabel) ~= nil then
- tolua.setpeer(self.sexLabel, nil)
- end
- self.sexLabel = nil
- if tolua.getpeer(self.limited) ~= nil then
- tolua.setpeer(self.limited, nil)
- end
- self.limited = nil
- if tolua.getpeer(self.cardLabel) ~= nil then
- tolua.setpeer(self.cardLabel, nil)
- end
- self.cardLabel = nil
- if tolua.getpeer(self.piece) ~= nil then
- tolua.setpeer(self.piece, nil)
- end
- self.piece = nil
- if tolua.getpeer(self.num) ~= nil then
- tolua.setpeer(self.num, nil)
- end
- self.num = nil
- if tolua.getpeer(self.refineLv) ~= nil then
- tolua.setpeer(self.refineLv, nil)
- end
- self.refineLv = nil
- if tolua.getpeer(self.conertips) ~= nil then
- tolua.setpeer(self.conertips, nil)
- end
- self.conertips = nil
- if tolua.getpeer(self.text) ~= nil then
- tolua.setpeer(self.text, nil)
- end
- self.text = nil
- if tolua.getpeer(self.repeatSign) ~= nil then
- tolua.setpeer(self.repeatSign, nil)
- end
- self.repeatSign = nil
- if tolua.getpeer(self.qualityFX) ~= nil then
- tolua.setpeer(self.qualityFX, nil)
- end
- self.qualityFX = nil
- if tolua.getpeer(self.advence) ~= nil then
- tolua.setpeer(self.advence, nil)
- end
- self.advence = nil
- if tolua.getpeer(self.advenceLv) ~= nil then
- tolua.setpeer(self.advenceLv, nil)
- end
- self.advenceLv = nil
- if tolua.getpeer(self.vip) ~= nil then
- tolua.setpeer(self.vip, nil)
- end
- self.vip = nil
- if tolua.getpeer(self.label) ~= nil then
- tolua.setpeer(self.label, nil)
- end
- self.label = nil
- if tolua.getpeer(self.redPoint) ~= nil then
- tolua.setpeer(self.redPoint, nil)
- end
- self.redPoint = nil
- if tolua.getpeer(self.selected) ~= nil then
- tolua.setpeer(self.selected, nil)
- end
- self.selected = nil
- if tolua.getpeer(self.locked) ~= nil then
- tolua.setpeer(self.locked, nil)
- end
- self.locked = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return IconSmallItemView
|