| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- ---@class UIShopBuyTips__Generate_btnBuy
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShopBuyTips__Generate_presentPrice_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_presentPrice_icon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class UIShopBuyTips__Generate_presentPrice
- ---@field public gameObject UnityEngine.GameObject
- ---@field public icon UIShopBuyTips__Generate_presentPrice_icon
- ---@field public number UIShopBuyTips__Generate_presentPrice_number
- ---@class UIShopBuyTips__Generate_btnMax
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShopBuyTips__Generate_buyNumTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_btnMinus
- ---@field public gameObject UnityEngine.GameObject
- ---@field public repeatButton UnityEngine.UI.RepeatButton
- ---@class UIShopBuyTips__Generate_btnAdd
- ---@field public gameObject UnityEngine.GameObject
- ---@field public repeatButton UnityEngine.UI.RepeatButton
- ---@class UIShopBuyTips__Generate_desTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_timeLimit
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_itemName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_itemnum
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIShopBuyTips__Generate_iconItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class UIShopBuyTips__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShopBuyTips__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIShopBuyTips__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private AnyBtn UIShopBuyTips__Generate_AnyBtn
- ---@field private btnClose UIShopBuyTips__Generate_btnClose
- ---@field private iconItem UIShopBuyTips__Generate_iconItem
- ---@field private itemnum UIShopBuyTips__Generate_itemnum
- ---@field private itemName UIShopBuyTips__Generate_itemName
- ---@field private limitBox UnityEngine.GameObject
- ---@field private timeLimit UIShopBuyTips__Generate_timeLimit
- ---@field private desTxt UIShopBuyTips__Generate_desTxt
- ---@field private btnAdd UIShopBuyTips__Generate_btnAdd
- ---@field private btnMinus UIShopBuyTips__Generate_btnMinus
- ---@field private buyNumTxt UIShopBuyTips__Generate_buyNumTxt
- ---@field private btnMax UIShopBuyTips__Generate_btnMax
- ---@field private presentPrice UIShopBuyTips__Generate_presentPrice
- ---@field private btnBuy UIShopBuyTips__Generate_btnBuy
- local UIShopBuyTipsView = class("UIShopBuyTipsView", require("UIViewBase"))
- function UIShopBuyTipsView:ctor()
- end
- ---@private
- function UIShopBuyTipsView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIShopBuyTipsView: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)
- self:InitGenerate__16(Root,data)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__1(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 UIShopBuyTipsView:InitGenerate__2(Root, data)
- --[[
- UIAnimator/Window/BtnClose/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/BtnClose/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 UIShopBuyTipsView:InitGenerate__3(Root, data)
- --[[
- UIAnimator/Window/ItemBox/Item/IconItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/Item/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 UIShopBuyTipsView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/ItemBox/Item/Num/itemnum
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/Item/Num/itemnum").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.itemnum = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/ItemBox/ItemName
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/ItemName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.itemName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/ItemBox/LimitBox
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/LimitBox").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.limitBox = tmp
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/ItemBox/LimitBox/TimeLimit
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/LimitBox/TimeLimit").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.timeLimit = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/ItemBox/Describe/DesTxt
- --]]
- local tmp = Root:Find("UIAnimator/Window/ItemBox/Describe/DesTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.desTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/Number /Box/BtnAdd
- --]]
- local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnAdd").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnAdd = tmp
- tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/Number /Box/BtnMinus
- --]]
- local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnMinus").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnMinus = tmp
- tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/Number /Box/BuyNumTxt
- --]]
- local tmp = Root:Find("UIAnimator/Window/Number /Box/BuyNumTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.buyNumTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/Number /Box/BtnMax
- --]]
- local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnMax").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnMax = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/Bottom/PresentPrice
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.presentPrice = tmp
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__14(Root, data)
- --[[
- UIAnimator/Window/Bottom/PresentPrice/Icon
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.presentPrice.icon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__15(Root, data)
- --[[
- UIAnimator/Window/Bottom/PresentPrice/Number
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.presentPrice.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIShopBuyTipsView:InitGenerate__16(Root, data)
- --[[
- UIAnimator/Window/Bottom/BtnBuy
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBuy").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBuy = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UIShopBuyTipsView:GenerateDestroy()
- if tolua.getpeer(self.presentPrice.number) ~= nil then
- tolua.setpeer(self.presentPrice.number, nil)
- end
- if tolua.getpeer(self.presentPrice.icon) ~= nil then
- tolua.setpeer(self.presentPrice.icon, nil)
- end
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = 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.itemnum) ~= nil then
- tolua.setpeer(self.itemnum, nil)
- end
- self.itemnum = nil
- if tolua.getpeer(self.itemName) ~= nil then
- tolua.setpeer(self.itemName, nil)
- end
- self.itemName = nil
- if tolua.getpeer(self.limitBox) ~= nil then
- tolua.setpeer(self.limitBox, nil)
- end
- self.limitBox = nil
- if tolua.getpeer(self.timeLimit) ~= nil then
- tolua.setpeer(self.timeLimit, nil)
- end
- self.timeLimit = nil
- if tolua.getpeer(self.desTxt) ~= nil then
- tolua.setpeer(self.desTxt, nil)
- end
- self.desTxt = nil
- if tolua.getpeer(self.btnAdd) ~= nil then
- tolua.setpeer(self.btnAdd, nil)
- end
- self.btnAdd = nil
- if tolua.getpeer(self.btnMinus) ~= nil then
- tolua.setpeer(self.btnMinus, nil)
- end
- self.btnMinus = nil
- if tolua.getpeer(self.buyNumTxt) ~= nil then
- tolua.setpeer(self.buyNumTxt, nil)
- end
- self.buyNumTxt = nil
- if tolua.getpeer(self.btnMax) ~= nil then
- tolua.setpeer(self.btnMax, nil)
- end
- self.btnMax = nil
- if tolua.getpeer(self.presentPrice) ~= nil then
- tolua.setpeer(self.presentPrice, nil)
- end
- self.presentPrice = nil
- if tolua.getpeer(self.btnBuy) ~= nil then
- tolua.setpeer(self.btnBuy, nil)
- end
- self.btnBuy = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIShopBuyTipsView
|