UIStarRewardsTipsView_Generate.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. ---@class UIStarRewardsTips__Generate_buyLimitTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIStarRewardsTips__Generate_goodsList
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopGridView SuperScrollView.LoopGridView
  7. ---@field public scrollRect UnityEngine.UI.ScrollRect
  8. ---@class UIStarRewardsTips__Generate_btnClose
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class UIStarRewardsTips__Generate_AnyBtn
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIStarRewardsTips__Generate_uIAnimator
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public animator UnityEngine.Animator
  17. ---@class UIStarRewardsTips__Generate
  18. ---@field private gameObject UnityEngine.GameObject
  19. ---@field private transform UnityEngine.Transform
  20. ---@field private uIAnimator UIStarRewardsTips__Generate_uIAnimator
  21. ---@field private AnyBtn UIStarRewardsTips__Generate_AnyBtn
  22. ---@field private btnClose UIStarRewardsTips__Generate_btnClose
  23. ---@field private goodsList UIStarRewardsTips__Generate_goodsList
  24. ---@field private starSingItem UnityEngine.GameObject
  25. ---@field private buyLimitTxt UIStarRewardsTips__Generate_buyLimitTxt
  26. local UIStarRewardsTipsView = class("UIStarRewardsTipsView", require("UIViewBase"))
  27. function UIStarRewardsTipsView:ctor()
  28. end
  29. ---@private
  30. function UIStarRewardsTipsView:SetActive(result)
  31. self.gameObject:SetActive(result)
  32. end
  33. ---@private
  34. function UIStarRewardsTipsView:InitGenerate(Root, data)
  35. self.transform = Root
  36. self.inited = true
  37. if self.super.Init then
  38. self.super.Init(self)
  39. end
  40. local tmp
  41. self:InitGenerate__1(Root,data)
  42. self:InitGenerate__2(Root,data)
  43. self:InitGenerate__3(Root,data)
  44. self:InitGenerate__4(Root,data)
  45. self:InitGenerate__5(Root,data)
  46. self:InitGenerate__6(Root,data)
  47. self:InitGenerate__7(Root,data)
  48. end
  49. ---@private
  50. function UIStarRewardsTipsView:InitGenerate__1(Root, data)
  51. --[[
  52. Root
  53. --]]
  54. end
  55. ---@private
  56. function UIStarRewardsTipsView:InitGenerate__2(Root, data)
  57. --[[
  58. UIAnimator
  59. --]]
  60. local tmp = Root:Find("UIAnimator").gameObject
  61. if tolua.getpeer(tmp) == nil then
  62. tolua.setpeer(tmp, {})
  63. end
  64. self.uIAnimator = tmp
  65. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  66. tmp.animator.logWarnings = false
  67. end
  68. ---@private
  69. function UIStarRewardsTipsView:InitGenerate__3(Root, data)
  70. --[[
  71. UIAnimator/Alpha
  72. --]]
  73. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.AnyBtn = tmp
  78. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  79. end
  80. ---@private
  81. function UIStarRewardsTipsView:InitGenerate__4(Root, data)
  82. --[[
  83. UIAnimator/Window/BtnClose/BtnClose
  84. --]]
  85. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  86. if tolua.getpeer(tmp) == nil then
  87. tolua.setpeer(tmp, {})
  88. end
  89. self.btnClose = tmp
  90. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  91. end
  92. ---@private
  93. function UIStarRewardsTipsView:InitGenerate__5(Root, data)
  94. --[[
  95. UIAnimator/Window/GoodsList
  96. --]]
  97. local tmp = Root:Find("UIAnimator/Window/GoodsList").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.goodsList = tmp
  102. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  103. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  104. end
  105. ---@private
  106. function UIStarRewardsTipsView:InitGenerate__6(Root, data)
  107. --[[
  108. UIAnimator/Window/GoodsList/Viewport/Content/StarSingItem
  109. --]]
  110. local tmp = Root:Find("UIAnimator/Window/GoodsList/Viewport/Content/StarSingItem").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.starSingItem = CommonUtil.BindGridViewItem2LuaStatic("StarSingItem", tmp)
  115. self.starSingItem.prefabName = "StarSingItem"
  116. end
  117. ---@private
  118. function UIStarRewardsTipsView:InitGenerate__7(Root, data)
  119. --[[
  120. UIAnimator/Window/Bottom/Title/BuyLimitTxt
  121. --]]
  122. local tmp = Root:Find("UIAnimator/Window/Bottom/Title/BuyLimitTxt").gameObject
  123. if tolua.getpeer(tmp) == nil then
  124. tolua.setpeer(tmp, {})
  125. end
  126. self.buyLimitTxt = tmp
  127. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  128. end
  129. ---@private
  130. function UIStarRewardsTipsView:GenerateDestroy()
  131. if tolua.getpeer(self.uIAnimator) ~= nil then
  132. tolua.setpeer(self.uIAnimator, nil)
  133. end
  134. self.uIAnimator = nil
  135. if tolua.getpeer(self.AnyBtn) ~= nil then
  136. tolua.setpeer(self.AnyBtn, nil)
  137. end
  138. self.AnyBtn = nil
  139. if tolua.getpeer(self.btnClose) ~= nil then
  140. tolua.setpeer(self.btnClose, nil)
  141. end
  142. self.btnClose = nil
  143. if tolua.getpeer(self.goodsList) ~= nil then
  144. tolua.setpeer(self.goodsList, nil)
  145. end
  146. self.goodsList = nil
  147. if self.starSingItem.GenerateDestroy ~= nil then
  148. self.starSingItem:GenerateDestroy()
  149. end
  150. if tolua.getpeer(self.starSingItem) ~= nil then
  151. tolua.setpeer(self.starSingItem, nil)
  152. end
  153. self.starSingItem = nil
  154. if tolua.getpeer(self.buyLimitTxt) ~= nil then
  155. tolua.setpeer(self.buyLimitTxt, nil)
  156. end
  157. self.buyLimitTxt = nil
  158. self.transform = nil
  159. self.gameObject = nil
  160. self.inited = false
  161. end
  162. return UIStarRewardsTipsView