| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- ---@class UIFruitUse__Generate_seniorText
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIFruitUse__Generate_primaryText
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class UIFruitUse__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIFruitUse__Generate_textTitle
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class UIFruitUse__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UIFruitUse__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private AnyBtn UIFruitUse__Generate_AnyBtn
- ---@field private textTitle UIFruitUse__Generate_textTitle
- ---@field private btnClose UIFruitUse__Generate_btnClose
- ---@field private primaryImage UnityEngine.GameObject
- ---@field private primaryText UIFruitUse__Generate_primaryText
- ---@field private seniorImage UnityEngine.GameObject
- ---@field private seniorText UIFruitUse__Generate_seniorText
- ---@field private hero1 UnityEngine.GameObject
- ---@field private hero2 UnityEngine.GameObject
- ---@field private hero3 UnityEngine.GameObject
- ---@field private hero4 UnityEngine.GameObject
- ---@field private hero5 UnityEngine.GameObject
- ---@field private hero6 UnityEngine.GameObject
- local UIFruitUseView = class("UIFruitUseView", require("UIViewBase"))
- function UIFruitUseView:ctor()
- end
- ---@private
- function UIFruitUseView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UIFruitUseView: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)
- end
- ---@private
- function UIFruitUseView: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 UIFruitUseView:InitGenerate__2(Root, data)
- --[[
- UIAnimator/Window/Bg/TextTitle
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/TextTitle").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.textTitle = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function UIFruitUseView:InitGenerate__3(Root, data)
- --[[
- UIAnimator/Window/Bg/CloseBox/BtnClose
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/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 UIFruitUseView:InitGenerate__4(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/Fruit/Primary/PrimaryImage
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/Fruit/Primary/PrimaryImage").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.primaryImage = tmp
- end
- ---@private
- function UIFruitUseView:InitGenerate__5(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/Fruit/Primary/PrimaryText
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/Fruit/Primary/PrimaryText").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.primaryText = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIFruitUseView:InitGenerate__6(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/Fruit/Senior/SeniorImage
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/Fruit/Senior/SeniorImage").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.seniorImage = tmp
- end
- ---@private
- function UIFruitUseView:InitGenerate__7(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/Fruit/Senior/SeniorText
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/Fruit/Senior/SeniorText").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.seniorText = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function UIFruitUseView:InitGenerate__8(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero1 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero1.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:InitGenerate__9(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem (1)
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem (1)").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero2 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero2.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:InitGenerate__10(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem (2)
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem (2)").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero3 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero3.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:InitGenerate__11(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem (3)
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem (3)").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero4 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero4.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:InitGenerate__12(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem (4)
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem (4)").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero5 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero5.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:InitGenerate__13(Root, data)
- --[[
- UIAnimator/Window/Bg/Content/FruitHeroItem (5)
- --]]
- local tmp = Root:Find("UIAnimator/Window/Bg/Content/FruitHeroItem (5)").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.hero6 = CommonUtil.BindGridViewItem2LuaStatic("FruitHeroItem", tmp)
- self.hero6.prefabName = "FruitHeroItem"
- end
- ---@private
- function UIFruitUseView:GenerateDestroy()
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.textTitle) ~= nil then
- tolua.setpeer(self.textTitle, nil)
- end
- self.textTitle = nil
- if tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = nil
- if tolua.getpeer(self.primaryImage) ~= nil then
- tolua.setpeer(self.primaryImage, nil)
- end
- self.primaryImage = nil
- if tolua.getpeer(self.primaryText) ~= nil then
- tolua.setpeer(self.primaryText, nil)
- end
- self.primaryText = nil
- if tolua.getpeer(self.seniorImage) ~= nil then
- tolua.setpeer(self.seniorImage, nil)
- end
- self.seniorImage = nil
- if tolua.getpeer(self.seniorText) ~= nil then
- tolua.setpeer(self.seniorText, nil)
- end
- self.seniorText = nil
- if self.hero1.GenerateDestroy ~= nil then
- self.hero1:GenerateDestroy()
- end
- if tolua.getpeer(self.hero1) ~= nil then
- tolua.setpeer(self.hero1, nil)
- end
- self.hero1 = nil
- if self.hero2.GenerateDestroy ~= nil then
- self.hero2:GenerateDestroy()
- end
- if tolua.getpeer(self.hero2) ~= nil then
- tolua.setpeer(self.hero2, nil)
- end
- self.hero2 = nil
- if self.hero3.GenerateDestroy ~= nil then
- self.hero3:GenerateDestroy()
- end
- if tolua.getpeer(self.hero3) ~= nil then
- tolua.setpeer(self.hero3, nil)
- end
- self.hero3 = nil
- if self.hero4.GenerateDestroy ~= nil then
- self.hero4:GenerateDestroy()
- end
- if tolua.getpeer(self.hero4) ~= nil then
- tolua.setpeer(self.hero4, nil)
- end
- self.hero4 = nil
- if self.hero5.GenerateDestroy ~= nil then
- self.hero5:GenerateDestroy()
- end
- if tolua.getpeer(self.hero5) ~= nil then
- tolua.setpeer(self.hero5, nil)
- end
- self.hero5 = nil
- if self.hero6.GenerateDestroy ~= nil then
- self.hero6:GenerateDestroy()
- end
- if tolua.getpeer(self.hero6) ~= nil then
- tolua.setpeer(self.hero6, nil)
- end
- self.hero6 = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UIFruitUseView
|