UIActivitySignDailyView_Generate.lua 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. ---@class UIActivitySignDaily__Generate_dscTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIActivitySignDaily__Generate_btnClose
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIActivitySignDaily__Generate_signRewardItem
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public rectTransform UnityEngine.RectTransform
  10. ---@field public image UnityEngine.UI.Image
  11. ---@class UIActivitySignDaily__Generate_scrollView
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public loopGridView SuperScrollView.LoopGridView
  14. ---@class UIActivitySignDaily__Generate_titleTxt
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public text UnityEngine.UI.Text
  17. ---@class UIActivitySignDaily__Generate_AnyBtn
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIActivitySignDaily__Generate_uIAnimator
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public animator UnityEngine.Animator
  23. ---@class UIActivitySignDaily__Generate
  24. ---@field private gameObject UnityEngine.GameObject
  25. ---@field private transform UnityEngine.Transform
  26. ---@field private uIAnimator UIActivitySignDaily__Generate_uIAnimator
  27. ---@field private AnyBtn UIActivitySignDaily__Generate_AnyBtn
  28. ---@field private titleTxt UIActivitySignDaily__Generate_titleTxt
  29. ---@field private scrollView UIActivitySignDaily__Generate_scrollView
  30. ---@field private content UnityEngine.GameObject
  31. ---@field private signRewardItem UIActivitySignDaily__Generate_signRewardItem
  32. ---@field private btnClose UIActivitySignDaily__Generate_btnClose
  33. ---@field private dscBox UnityEngine.GameObject
  34. ---@field private dscTxt UIActivitySignDaily__Generate_dscTxt
  35. local UIActivitySignDailyView = class("UIActivitySignDailyView", require("UIViewBase"))
  36. function UIActivitySignDailyView:ctor()
  37. end
  38. ---@private
  39. function UIActivitySignDailyView:SetActive(result)
  40. self.gameObject:SetActive(result)
  41. end
  42. ---@private
  43. function UIActivitySignDailyView:InitGenerate(Root, data)
  44. self.transform = Root
  45. self.inited = true
  46. if self.super.Init then
  47. self.super.Init(self)
  48. end
  49. local tmp
  50. self:InitGenerate__1(Root,data)
  51. self:InitGenerate__2(Root,data)
  52. self:InitGenerate__3(Root,data)
  53. self:InitGenerate__4(Root,data)
  54. self:InitGenerate__5(Root,data)
  55. self:InitGenerate__6(Root,data)
  56. self:InitGenerate__7(Root,data)
  57. self:InitGenerate__8(Root,data)
  58. self:InitGenerate__9(Root,data)
  59. end
  60. ---@private
  61. function UIActivitySignDailyView:InitGenerate__1(Root, data)
  62. --[[
  63. UIAnimator
  64. --]]
  65. local tmp = Root:Find("UIAnimator").gameObject
  66. if tolua.getpeer(tmp) == nil then
  67. tolua.setpeer(tmp, {})
  68. end
  69. self.uIAnimator = tmp
  70. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  71. tmp.animator.logWarnings = false
  72. end
  73. ---@private
  74. function UIActivitySignDailyView:InitGenerate__2(Root, data)
  75. --[[
  76. UIAnimator/Alpha
  77. --]]
  78. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  79. if tolua.getpeer(tmp) == nil then
  80. tolua.setpeer(tmp, {})
  81. end
  82. self.AnyBtn = tmp
  83. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  84. end
  85. ---@private
  86. function UIActivitySignDailyView:InitGenerate__3(Root, data)
  87. --[[
  88. UIAnimator/Window/BG/Title/Text
  89. --]]
  90. local tmp = Root:Find("UIAnimator/Window/BG/Title/Text").gameObject
  91. if tolua.getpeer(tmp) == nil then
  92. tolua.setpeer(tmp, {})
  93. end
  94. self.titleTxt = tmp
  95. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  96. end
  97. ---@private
  98. function UIActivitySignDailyView:InitGenerate__4(Root, data)
  99. --[[
  100. UIAnimator/Window/ScrollView
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Window/ScrollView").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.scrollView = tmp
  107. tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
  108. end
  109. ---@private
  110. function UIActivitySignDailyView:InitGenerate__5(Root, data)
  111. --[[
  112. UIAnimator/Window/ScrollView/View/Content
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Window/ScrollView/View/Content").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.content = tmp
  119. end
  120. ---@private
  121. function UIActivitySignDailyView:InitGenerate__6(Root, data)
  122. --[[
  123. UIAnimator/Window/ScrollView/View/Content/SignRewardItem
  124. --]]
  125. local tmp = Root:Find("UIAnimator/Window/ScrollView/View/Content/SignRewardItem").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.signRewardItem = CommonUtil.BindGridViewItem2LuaStatic("SignRewardItem", tmp)
  130. self.signRewardItem.prefabName = "SignRewardItem"
  131. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  132. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  133. end
  134. ---@private
  135. function UIActivitySignDailyView:InitGenerate__7(Root, data)
  136. --[[
  137. UIAnimator/Window/BtnClose
  138. --]]
  139. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.btnClose = tmp
  144. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  145. end
  146. ---@private
  147. function UIActivitySignDailyView:InitGenerate__8(Root, data)
  148. --[[
  149. UIAnimator/Window/DscBox
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/DscBox").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.dscBox = tmp
  156. end
  157. ---@private
  158. function UIActivitySignDailyView:InitGenerate__9(Root, data)
  159. --[[
  160. UIAnimator/Window/DscBox/Text
  161. --]]
  162. local tmp = Root:Find("UIAnimator/Window/DscBox/Text").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.dscTxt = tmp
  167. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  168. end
  169. ---@private
  170. function UIActivitySignDailyView:GenerateDestroy()
  171. if tolua.getpeer(self.uIAnimator) ~= nil then
  172. tolua.setpeer(self.uIAnimator, nil)
  173. end
  174. self.uIAnimator = nil
  175. if tolua.getpeer(self.AnyBtn) ~= nil then
  176. tolua.setpeer(self.AnyBtn, nil)
  177. end
  178. self.AnyBtn = nil
  179. if tolua.getpeer(self.titleTxt) ~= nil then
  180. tolua.setpeer(self.titleTxt, nil)
  181. end
  182. self.titleTxt = nil
  183. if tolua.getpeer(self.scrollView) ~= nil then
  184. tolua.setpeer(self.scrollView, nil)
  185. end
  186. self.scrollView = nil
  187. if tolua.getpeer(self.content) ~= nil then
  188. tolua.setpeer(self.content, nil)
  189. end
  190. self.content = nil
  191. if self.signRewardItem.GenerateDestroy ~= nil then
  192. self.signRewardItem:GenerateDestroy()
  193. end
  194. if tolua.getpeer(self.signRewardItem) ~= nil then
  195. tolua.setpeer(self.signRewardItem, nil)
  196. end
  197. self.signRewardItem = nil
  198. if tolua.getpeer(self.btnClose) ~= nil then
  199. tolua.setpeer(self.btnClose, nil)
  200. end
  201. self.btnClose = nil
  202. if tolua.getpeer(self.dscBox) ~= nil then
  203. tolua.setpeer(self.dscBox, nil)
  204. end
  205. self.dscBox = nil
  206. if tolua.getpeer(self.dscTxt) ~= nil then
  207. tolua.setpeer(self.dscTxt, nil)
  208. end
  209. self.dscTxt = nil
  210. self.transform = nil
  211. self.gameObject = nil
  212. self.inited = false
  213. end
  214. return UIActivitySignDailyView