UIActivityLimitedGiftView_Generate.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. ---@class UIActivityLimitedGift__Generate_BtnClose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityLimitedGift__Generate_btnArrowR
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIActivityLimitedGift__Generate_btnArrowL
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIActivityLimitedGift__Generate_limitedGiftItem
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public rectTransform UnityEngine.RectTransform
  13. ---@class UIActivityLimitedGift__Generate_scrollView
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public scrollRect UnityEngine.UI.ScrollRect
  16. ---@field public loopListView SuperScrollView.LoopListView
  17. ---@class UIActivityLimitedGift__Generate_dot
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public toggle UnityEngine.UI.Toggle
  20. ---@class UIActivityLimitedGift__Generate_AnyBtn
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public button UnityEngine.UI.Button
  23. ---@class UIActivityLimitedGift__Generate
  24. ---@field private gameObject UnityEngine.GameObject
  25. ---@field private transform UnityEngine.Transform
  26. ---@field private AnyBtn UIActivityLimitedGift__Generate_AnyBtn
  27. ---@field private dotToggleGroup UnityEngine.GameObject
  28. ---@field private dot UIActivityLimitedGift__Generate_dot
  29. ---@field private scrollView UIActivityLimitedGift__Generate_scrollView
  30. ---@field private limitedGiftItem UIActivityLimitedGift__Generate_limitedGiftItem
  31. ---@field private btnArrowL UIActivityLimitedGift__Generate_btnArrowL
  32. ---@field private btnArrowR UIActivityLimitedGift__Generate_btnArrowR
  33. ---@field private BtnClose UIActivityLimitedGift__Generate_BtnClose
  34. local UIActivityLimitedGiftView = class("UIActivityLimitedGiftView", require("UIViewBase"))
  35. function UIActivityLimitedGiftView:ctor()
  36. end
  37. ---@private
  38. function UIActivityLimitedGiftView:SetActive(result)
  39. self.gameObject:SetActive(result)
  40. end
  41. ---@private
  42. function UIActivityLimitedGiftView:InitGenerate(Root, data)
  43. self.transform = Root
  44. self.inited = true
  45. if self.super.Init then
  46. self.super.Init(self)
  47. end
  48. local tmp
  49. self:InitGenerate__1(Root,data)
  50. self:InitGenerate__2(Root,data)
  51. self:InitGenerate__3(Root,data)
  52. self:InitGenerate__4(Root,data)
  53. self:InitGenerate__5(Root,data)
  54. self:InitGenerate__6(Root,data)
  55. self:InitGenerate__7(Root,data)
  56. self:InitGenerate__8(Root,data)
  57. end
  58. ---@private
  59. function UIActivityLimitedGiftView:InitGenerate__1(Root, data)
  60. --[[
  61. UIAnimator/Alpha
  62. --]]
  63. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  64. if tolua.getpeer(tmp) == nil then
  65. tolua.setpeer(tmp, {})
  66. end
  67. self.AnyBtn = tmp
  68. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  69. end
  70. ---@private
  71. function UIActivityLimitedGiftView:InitGenerate__2(Root, data)
  72. --[[
  73. UIAnimator/Window/DotToggleGroup
  74. --]]
  75. local tmp = Root:Find("UIAnimator/Window/DotToggleGroup").gameObject
  76. if tolua.getpeer(tmp) == nil then
  77. tolua.setpeer(tmp, {})
  78. end
  79. self.dotToggleGroup = tmp
  80. end
  81. ---@private
  82. function UIActivityLimitedGiftView:InitGenerate__3(Root, data)
  83. --[[
  84. UIAnimator/Window/DotToggleGroup/Dot
  85. --]]
  86. local tmp = Root:Find("UIAnimator/Window/DotToggleGroup/Dot").gameObject
  87. if tolua.getpeer(tmp) == nil then
  88. tolua.setpeer(tmp, {})
  89. end
  90. self.dot = tmp
  91. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  92. end
  93. ---@private
  94. function UIActivityLimitedGiftView:InitGenerate__4(Root, data)
  95. --[[
  96. UIAnimator/Window/ScrollView
  97. --]]
  98. local tmp = Root:Find("UIAnimator/Window/ScrollView").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.scrollView = tmp
  103. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  104. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  105. end
  106. ---@private
  107. function UIActivityLimitedGiftView:InitGenerate__5(Root, data)
  108. --[[
  109. UIAnimator/Window/ScrollView/Viewport/Content/LimitedGiftItem
  110. --]]
  111. local tmp = Root:Find("UIAnimator/Window/ScrollView/Viewport/Content/LimitedGiftItem").gameObject
  112. if tolua.getpeer(tmp) == nil then
  113. tolua.setpeer(tmp, {})
  114. end
  115. self.limitedGiftItem = CommonUtil.BindGridViewItem2LuaStatic("LimitedGiftItem", tmp)
  116. self.limitedGiftItem.prefabName = "LimitedGiftItem"
  117. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  118. end
  119. ---@private
  120. function UIActivityLimitedGiftView:InitGenerate__6(Root, data)
  121. --[[
  122. UIAnimator/Window/BtnArrowL
  123. --]]
  124. local tmp = Root:Find("UIAnimator/Window/BtnArrowL").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.btnArrowL = tmp
  129. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  130. end
  131. ---@private
  132. function UIActivityLimitedGiftView:InitGenerate__7(Root, data)
  133. --[[
  134. UIAnimator/Window/BtnArrowR
  135. --]]
  136. local tmp = Root:Find("UIAnimator/Window/BtnArrowR").gameObject
  137. if tolua.getpeer(tmp) == nil then
  138. tolua.setpeer(tmp, {})
  139. end
  140. self.btnArrowR = tmp
  141. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  142. end
  143. ---@private
  144. function UIActivityLimitedGiftView:InitGenerate__8(Root, data)
  145. --[[
  146. UIAnimator/Window/BtnCloseFlat
  147. --]]
  148. local tmp = Root:Find("UIAnimator/Window/BtnCloseFlat").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.BtnClose = tmp
  153. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  154. end
  155. ---@private
  156. function UIActivityLimitedGiftView:GenerateDestroy()
  157. if tolua.getpeer(self.AnyBtn) ~= nil then
  158. tolua.setpeer(self.AnyBtn, nil)
  159. end
  160. self.AnyBtn = nil
  161. if tolua.getpeer(self.dotToggleGroup) ~= nil then
  162. tolua.setpeer(self.dotToggleGroup, nil)
  163. end
  164. self.dotToggleGroup = nil
  165. if tolua.getpeer(self.dot) ~= nil then
  166. tolua.setpeer(self.dot, nil)
  167. end
  168. self.dot = nil
  169. if tolua.getpeer(self.scrollView) ~= nil then
  170. tolua.setpeer(self.scrollView, nil)
  171. end
  172. self.scrollView = nil
  173. if self.limitedGiftItem.GenerateDestroy ~= nil then
  174. self.limitedGiftItem:GenerateDestroy()
  175. end
  176. if tolua.getpeer(self.limitedGiftItem) ~= nil then
  177. tolua.setpeer(self.limitedGiftItem, nil)
  178. end
  179. self.limitedGiftItem = nil
  180. if tolua.getpeer(self.btnArrowL) ~= nil then
  181. tolua.setpeer(self.btnArrowL, nil)
  182. end
  183. self.btnArrowL = nil
  184. if tolua.getpeer(self.btnArrowR) ~= nil then
  185. tolua.setpeer(self.btnArrowR, nil)
  186. end
  187. self.btnArrowR = nil
  188. if tolua.getpeer(self.BtnClose) ~= nil then
  189. tolua.setpeer(self.BtnClose, nil)
  190. end
  191. self.BtnClose = nil
  192. self.transform = nil
  193. self.gameObject = nil
  194. self.inited = false
  195. end
  196. return UIActivityLimitedGiftView