| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631 |
- ---@class BookItem__Generate_btnBack
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class BookItem__Generate_btnMaterials
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public icon UnityEngine.GameObject
- ---@class BookItem__Generate_qtyCollection_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BookItem__Generate_qtyCollection
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconAll UnityEngine.GameObject
- ---@field public iconNormal UnityEngine.GameObject
- ---@field public iconMini UnityEngine.GameObject
- ---@field public iconMvp UnityEngine.GameObject
- ---@field public text BookItem__Generate_qtyCollection_text
- ---@class BookItem__Generate_qtyPet_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BookItem__Generate_qtyPet
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconAll UnityEngine.GameObject
- ---@field public iconNormal UnityEngine.GameObject
- ---@field public iconMini UnityEngine.GameObject
- ---@field public iconMvp UnityEngine.GameObject
- ---@field public text BookItem__Generate_qtyPet_text
- ---@class BookItem__Generate_qtyCard_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BookItem__Generate_qtyCard
- ---@field public gameObject UnityEngine.GameObject
- ---@field public iconAll UnityEngine.GameObject
- ---@field public iconNormal UnityEngine.GameObject
- ---@field public iconMini UnityEngine.GameObject
- ---@field public iconMvp UnityEngine.GameObject
- ---@field public text BookItem__Generate_qtyCard_text
- ---@class BookItem__Generate_toggleMVP
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@class BookItem__Generate_toggleMini
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@class BookItem__Generate_toggleNormal
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@class BookItem__Generate_toggleAll
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggle UnityEngine.UI.Toggle
- ---@class BookItem__Generate_toggleGroup
- ---@field public gameObject UnityEngine.GameObject
- ---@field public toggleGroup UnityEngine.UI.ToggleGroup
- ---@class BookItem__Generate_dscBox_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class BookItem__Generate_dscBox
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text BookItem__Generate_dscBox_text
- ---@class BookItem__Generate_scrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopGridView SuperScrollView.LoopGridView
- ---@class BookItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rectTransform UnityEngine.RectTransform
- ---@field private scrollView BookItem__Generate_scrollView
- ---@field private dscBox BookItem__Generate_dscBox
- ---@field private toggleGroup BookItem__Generate_toggleGroup
- ---@field private toggleAll BookItem__Generate_toggleAll
- ---@field private toggleNormal BookItem__Generate_toggleNormal
- ---@field private toggleMini BookItem__Generate_toggleMini
- ---@field private toggleMVP BookItem__Generate_toggleMVP
- ---@field private qtyCard BookItem__Generate_qtyCard
- ---@field private qtyPet BookItem__Generate_qtyPet
- ---@field private qtyCollection BookItem__Generate_qtyCollection
- ---@field private btnMaterials BookItem__Generate_btnMaterials
- ---@field private btnBack BookItem__Generate_btnBack
- local BookItemView = class("BookItemView")
- function BookItemView:ctor()
- end
- ---@private
- function BookItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function BookItemView: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)
- end
- ---@private
- function BookItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function BookItemView:InitGenerate__2(Root, data)
- --[[
- ScrollView
- --]]
- local tmp = Root:Find("ScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scrollView = tmp
- tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
- end
- ---@private
- function BookItemView:InitGenerate__3(Root, data)
- --[[
- ScrollView/DscBox
- --]]
- local tmp = Root:Find("ScrollView/DscBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.dscBox = tmp
- end
- ---@private
- function BookItemView:InitGenerate__4(Root, data)
- --[[
- ScrollView/DscBox/bg/Text
- --]]
- local tmp = Root:Find("ScrollView/DscBox/bg/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.dscBox.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BookItemView:InitGenerate__5(Root, data)
- --[[
- ToggleGroup
- --]]
- local tmp = Root:Find("ToggleGroup").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleGroup = tmp
- tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
- end
- ---@private
- function BookItemView:InitGenerate__6(Root, data)
- --[[
- ToggleGroup/ToggleAll
- --]]
- local tmp = Root:Find("ToggleGroup/ToggleAll").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleAll = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function BookItemView:InitGenerate__7(Root, data)
- --[[
- ToggleGroup/ToggleNormal
- --]]
- local tmp = Root:Find("ToggleGroup/ToggleNormal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleNormal = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function BookItemView:InitGenerate__8(Root, data)
- --[[
- ToggleGroup/ToggleMini
- --]]
- local tmp = Root:Find("ToggleGroup/ToggleMini").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleMini = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function BookItemView:InitGenerate__9(Root, data)
- --[[
- ToggleGroup/ToggleMVP
- --]]
- local tmp = Root:Find("ToggleGroup/ToggleMVP").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.toggleMVP = tmp
- tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
- end
- ---@private
- function BookItemView:InitGenerate__10(Root, data)
- --[[
- QtyCard
- --]]
- local tmp = Root:Find("QtyCard").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard = tmp
- end
- ---@private
- function BookItemView:InitGenerate__11(Root, data)
- --[[
- QtyCard/IconAll
- --]]
- local tmp = Root:Find("QtyCard/IconAll").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard.iconAll = tmp
- end
- ---@private
- function BookItemView:InitGenerate__12(Root, data)
- --[[
- QtyCard/IconNormal
- --]]
- local tmp = Root:Find("QtyCard/IconNormal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard.iconNormal = tmp
- end
- ---@private
- function BookItemView:InitGenerate__13(Root, data)
- --[[
- QtyCard/IconMini
- --]]
- local tmp = Root:Find("QtyCard/IconMini").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard.iconMini = tmp
- end
- ---@private
- function BookItemView:InitGenerate__14(Root, data)
- --[[
- QtyCard/IconMvp
- --]]
- local tmp = Root:Find("QtyCard/IconMvp").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard.iconMvp = tmp
- end
- ---@private
- function BookItemView:InitGenerate__15(Root, data)
- --[[
- QtyCard/Text
- --]]
- local tmp = Root:Find("QtyCard/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCard.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BookItemView:InitGenerate__16(Root, data)
- --[[
- QtyPet
- --]]
- local tmp = Root:Find("QtyPet").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet = tmp
- end
- ---@private
- function BookItemView:InitGenerate__17(Root, data)
- --[[
- QtyPet/IconAll
- --]]
- local tmp = Root:Find("QtyPet/IconAll").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet.iconAll = tmp
- end
- ---@private
- function BookItemView:InitGenerate__18(Root, data)
- --[[
- QtyPet/IconNormal
- --]]
- local tmp = Root:Find("QtyPet/IconNormal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet.iconNormal = tmp
- end
- ---@private
- function BookItemView:InitGenerate__19(Root, data)
- --[[
- QtyPet/IconMini
- --]]
- local tmp = Root:Find("QtyPet/IconMini").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet.iconMini = tmp
- end
- ---@private
- function BookItemView:InitGenerate__20(Root, data)
- --[[
- QtyPet/IconMvp
- --]]
- local tmp = Root:Find("QtyPet/IconMvp").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet.iconMvp = tmp
- end
- ---@private
- function BookItemView:InitGenerate__21(Root, data)
- --[[
- QtyPet/Text
- --]]
- local tmp = Root:Find("QtyPet/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyPet.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BookItemView:InitGenerate__22(Root, data)
- --[[
- QtyCollection
- --]]
- local tmp = Root:Find("QtyCollection").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection = tmp
- end
- ---@private
- function BookItemView:InitGenerate__23(Root, data)
- --[[
- QtyCollection/IconAll
- --]]
- local tmp = Root:Find("QtyCollection/IconAll").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection.iconAll = tmp
- end
- ---@private
- function BookItemView:InitGenerate__24(Root, data)
- --[[
- QtyCollection/IconNormal
- --]]
- local tmp = Root:Find("QtyCollection/IconNormal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection.iconNormal = tmp
- end
- ---@private
- function BookItemView:InitGenerate__25(Root, data)
- --[[
- QtyCollection/IconMini
- --]]
- local tmp = Root:Find("QtyCollection/IconMini").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection.iconMini = tmp
- end
- ---@private
- function BookItemView:InitGenerate__26(Root, data)
- --[[
- QtyCollection/IconMvp
- --]]
- local tmp = Root:Find("QtyCollection/IconMvp").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection.iconMvp = tmp
- end
- ---@private
- function BookItemView:InitGenerate__27(Root, data)
- --[[
- QtyCollection/Text
- --]]
- local tmp = Root:Find("QtyCollection/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.qtyCollection.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function BookItemView:InitGenerate__28(Root, data)
- --[[
- BtnMaterials
- --]]
- local tmp = Root:Find("BtnMaterials").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnMaterials = tmp
- self.btnMaterials:SetActive(false)
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function BookItemView:InitGenerate__29(Root, data)
- --[[
- BtnMaterials/Icon
- --]]
- local tmp = Root:Find("BtnMaterials/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnMaterials.icon = tmp
- end
- ---@private
- function BookItemView:InitGenerate__30(Root, data)
- --[[
- BtnBack
- --]]
- local tmp = Root:Find("BtnBack").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBack = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function BookItemView:GenerateDestroy()
- if tolua.getpeer(self.btnMaterials.icon) ~= nil then
- tolua.setpeer(self.btnMaterials.icon, nil)
- end
- if tolua.getpeer(self.qtyCollection.text) ~= nil then
- tolua.setpeer(self.qtyCollection.text, nil)
- end
- if tolua.getpeer(self.qtyCollection.iconMvp) ~= nil then
- tolua.setpeer(self.qtyCollection.iconMvp, nil)
- end
- if tolua.getpeer(self.qtyCollection.iconMini) ~= nil then
- tolua.setpeer(self.qtyCollection.iconMini, nil)
- end
- if tolua.getpeer(self.qtyCollection.iconNormal) ~= nil then
- tolua.setpeer(self.qtyCollection.iconNormal, nil)
- end
- if tolua.getpeer(self.qtyCollection.iconAll) ~= nil then
- tolua.setpeer(self.qtyCollection.iconAll, nil)
- end
- if tolua.getpeer(self.qtyPet.text) ~= nil then
- tolua.setpeer(self.qtyPet.text, nil)
- end
- if tolua.getpeer(self.qtyPet.iconMvp) ~= nil then
- tolua.setpeer(self.qtyPet.iconMvp, nil)
- end
- if tolua.getpeer(self.qtyPet.iconMini) ~= nil then
- tolua.setpeer(self.qtyPet.iconMini, nil)
- end
- if tolua.getpeer(self.qtyPet.iconNormal) ~= nil then
- tolua.setpeer(self.qtyPet.iconNormal, nil)
- end
- if tolua.getpeer(self.qtyPet.iconAll) ~= nil then
- tolua.setpeer(self.qtyPet.iconAll, nil)
- end
- if tolua.getpeer(self.qtyCard.text) ~= nil then
- tolua.setpeer(self.qtyCard.text, nil)
- end
- if tolua.getpeer(self.qtyCard.iconMvp) ~= nil then
- tolua.setpeer(self.qtyCard.iconMvp, nil)
- end
- if tolua.getpeer(self.qtyCard.iconMini) ~= nil then
- tolua.setpeer(self.qtyCard.iconMini, nil)
- end
- if tolua.getpeer(self.qtyCard.iconNormal) ~= nil then
- tolua.setpeer(self.qtyCard.iconNormal, nil)
- end
- if tolua.getpeer(self.qtyCard.iconAll) ~= nil then
- tolua.setpeer(self.qtyCard.iconAll, nil)
- end
- if tolua.getpeer(self.dscBox.text) ~= nil then
- tolua.setpeer(self.dscBox.text, nil)
- end
- if tolua.getpeer(self.scrollView) ~= nil then
- tolua.setpeer(self.scrollView, nil)
- end
- self.scrollView = nil
- if tolua.getpeer(self.dscBox) ~= nil then
- tolua.setpeer(self.dscBox, nil)
- end
- self.dscBox = nil
- if tolua.getpeer(self.toggleGroup) ~= nil then
- tolua.setpeer(self.toggleGroup, nil)
- end
- self.toggleGroup = nil
- if tolua.getpeer(self.toggleAll) ~= nil then
- tolua.setpeer(self.toggleAll, nil)
- end
- self.toggleAll = nil
- if tolua.getpeer(self.toggleNormal) ~= nil then
- tolua.setpeer(self.toggleNormal, nil)
- end
- self.toggleNormal = nil
- if tolua.getpeer(self.toggleMini) ~= nil then
- tolua.setpeer(self.toggleMini, nil)
- end
- self.toggleMini = nil
- if tolua.getpeer(self.toggleMVP) ~= nil then
- tolua.setpeer(self.toggleMVP, nil)
- end
- self.toggleMVP = nil
- if tolua.getpeer(self.qtyCard) ~= nil then
- tolua.setpeer(self.qtyCard, nil)
- end
- self.qtyCard = nil
- if tolua.getpeer(self.qtyPet) ~= nil then
- tolua.setpeer(self.qtyPet, nil)
- end
- self.qtyPet = nil
- if tolua.getpeer(self.qtyCollection) ~= nil then
- tolua.setpeer(self.qtyCollection, nil)
- end
- self.qtyCollection = nil
- if tolua.getpeer(self.btnMaterials) ~= nil then
- tolua.setpeer(self.btnMaterials, nil)
- end
- self.btnMaterials = nil
- if tolua.getpeer(self.btnBack) ~= nil then
- tolua.setpeer(self.btnBack, nil)
- end
- self.btnBack = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return BookItemView
|