| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- ---@class UIShop__Generate_talkBoxTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public uILocalizeScript UILocalizeScript
- ---@class UIShop__Generate_shopLabelToggleItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShop__Generate_labelScrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopGridView SuperScrollView.LoopGridView
- ---@class UIShop__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShop__Generate_shopGoodsItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShop__Generate_goodsScrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopGridView SuperScrollView.LoopGridView
- ---@class UIShop__Generate_btnRefresh
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShop__Generate_textTime
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShop__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShop__Generate_uIAnimator
- ---@field public gameObject UnityEngine.GameObject
- ---@field public animator UnityEngine.Animator
- ---@class UIShop__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private uIAnimator UIShop__Generate_uIAnimator
- ---@field private AnyBtn UIShop__Generate_AnyBtn
- ---@field private timeBox UnityEngine.GameObject
- ---@field private textTime UIShop__Generate_textTime
- ---@field private btnRefresh UIShop__Generate_btnRefresh
- ---@field private goodsScrollView UIShop__Generate_goodsScrollView
- ---@field private shopGoodsItem UIShop__Generate_shopGoodsItem
- ---@field private btnClose UIShop__Generate_btnClose
- ---@field private labelScrollView UIShop__Generate_labelScrollView
- ---@field private shopLabelToggleItem UIShop__Generate_shopLabelToggleItem
- ---@field private rightArrow UnityEngine.GameObject
- ---@field private leftArrow UnityEngine.GameObject
- ---@field private talkBoxTxt UIShop__Generate_talkBoxTxt
- ---@field private resourceBox UnityEngine.GameObject
- ---@field private shopCurrencyItem UnityEngine.GameObject
- local UIShopView = class("UIShopView", require("UIViewBase"))
- function UIShopView:ctor()
- end
- ---@private
- function UIShopView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIShopView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- if self.super.Init then
- self.super.Init(self)
- end
- 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)
- end
- ---@private
- function UIShopView:InitGenerate__1(Root, data)
- --[[
- UIAnimator
- --]]
- local tmp = Root:Find("UIAnimator").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.uIAnimator = tmp
- tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
- tmp.animator.logWarnings = false
- end
- ---@private
- function UIShopView:InitGenerate__2(Root, data)
- --[[
- UIAnimator/Alpha
- --]]
- local tmp = Root:Find("UIAnimator/Alpha").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.AnyBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopView:InitGenerate__3(Root, data)
- --[[
- UIAnimator/Window/GoodsBox/TimeBox
- --]]
- local tmp = Root:Find("UIAnimator/Window/GoodsBox/TimeBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.timeBox = tmp
- end
- ---@private
- function UIShopView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/GoodsBox/TimeBox/TextTime
- --]]
- local tmp = Root:Find("UIAnimator/Window/GoodsBox/TimeBox/TextTime").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.textTime = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/GoodsBox/TimeBox/BtnRefresh
- --]]
- local tmp = Root:Find("UIAnimator/Window/GoodsBox/TimeBox/BtnRefresh").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnRefresh = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/GoodsBox/GoodsScrollView
- --]]
- local tmp = Root:Find("UIAnimator/Window/GoodsBox/GoodsScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.goodsScrollView = tmp
- tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
- end
- ---@private
- function UIShopView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/GoodsBox/GoodsScrollView/Viewport/Content/ShopGoodsItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/GoodsBox/GoodsScrollView/Viewport/Content/ShopGoodsItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.shopGoodsItem = CommonUtil.BindGridViewItem2LuaStatic("ShopGoodsItem", tmp)
- self.shopGoodsItem.prefabName = "ShopGoodsItem"
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/BottomAnim/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/BottomAnim/BtnClose").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnClose = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/TopView/LabelScrollView
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/LabelScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.labelScrollView = tmp
- tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
- end
- ---@private
- function UIShopView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/TopView/LabelScrollView/Viewport/Content/ShopLabelToggleItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/LabelScrollView/Viewport/Content/ShopLabelToggleItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.shopLabelToggleItem = CommonUtil.BindGridViewItem2LuaStatic("ShopLabelToggleItem", tmp)
- self.shopLabelToggleItem.prefabName = "ShopLabelToggleItem"
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/TopView/RightArrow
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/RightArrow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rightArrow = tmp
- end
- ---@private
- function UIShopView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/TopView/LeftArrow
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/LeftArrow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.leftArrow = tmp
- end
- ---@private
- function UIShopView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/TopView/TalkBox/TalkBoxTxt
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/TalkBox/TalkBoxTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkBoxTxt = tmp
- tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
- end
- ---@private
- function UIShopView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/TopView/ResourceBox
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.resourceBox = tmp
- end
- ---@private
- function UIShopView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/TopView/ResourceBox/ShopCurrencyItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/TopView/ResourceBox/ShopCurrencyItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.shopCurrencyItem = CommonUtil.BindGridViewItem2LuaStatic("ShopCurrencyItem", tmp)
- self.shopCurrencyItem.prefabName = "ShopCurrencyItem"
- end
- ---@private
- function UIShopView:GenerateDestroy()
- if tolua.getpeer(self.uIAnimator) ~= nil then
- tolua.setpeer(self.uIAnimator, nil)
- end
- self.uIAnimator = nil
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.timeBox) ~= nil then
- tolua.setpeer(self.timeBox, nil)
- end
- self.timeBox = nil
- if tolua.getpeer(self.textTime) ~= nil then
- tolua.setpeer(self.textTime, nil)
- end
- self.textTime = nil
- if tolua.getpeer(self.btnRefresh) ~= nil then
- tolua.setpeer(self.btnRefresh, nil)
- end
- self.btnRefresh = nil
- if tolua.getpeer(self.goodsScrollView) ~= nil then
- tolua.setpeer(self.goodsScrollView, nil)
- end
- self.goodsScrollView = nil
- if self.shopGoodsItem.GenerateDestroy ~= nil then
- self.shopGoodsItem:GenerateDestroy()
- end
- if tolua.getpeer(self.shopGoodsItem) ~= nil then
- tolua.setpeer(self.shopGoodsItem, nil)
- end
- self.shopGoodsItem = nil
- if tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = nil
- if tolua.getpeer(self.labelScrollView) ~= nil then
- tolua.setpeer(self.labelScrollView, nil)
- end
- self.labelScrollView = nil
- if self.shopLabelToggleItem.GenerateDestroy ~= nil then
- self.shopLabelToggleItem:GenerateDestroy()
- end
- if tolua.getpeer(self.shopLabelToggleItem) ~= nil then
- tolua.setpeer(self.shopLabelToggleItem, nil)
- end
- self.shopLabelToggleItem = nil
- if tolua.getpeer(self.rightArrow) ~= nil then
- tolua.setpeer(self.rightArrow, nil)
- end
- self.rightArrow = nil
- if tolua.getpeer(self.leftArrow) ~= nil then
- tolua.setpeer(self.leftArrow, nil)
- end
- self.leftArrow = nil
- if tolua.getpeer(self.talkBoxTxt) ~= nil then
- tolua.setpeer(self.talkBoxTxt, nil)
- end
- self.talkBoxTxt = nil
- if tolua.getpeer(self.resourceBox) ~= nil then
- tolua.setpeer(self.resourceBox, nil)
- end
- self.resourceBox = nil
- if self.shopCurrencyItem.GenerateDestroy ~= nil then
- self.shopCurrencyItem:GenerateDestroy()
- end
- if tolua.getpeer(self.shopCurrencyItem) ~= nil then
- tolua.setpeer(self.shopCurrencyItem, nil)
- end
- self.shopCurrencyItem = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIShopView
|