UIActivityFortnightLoginView_Generate.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. ---@class UIActivityFortnightLogin__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityFortnightLogin__Generate_curLoginTxt
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIActivityFortnightLogin__Generate_curRewardName
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIActivityFortnightLogin__Generate_curDayTxt
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UIActivityFortnightLogin__Generate_image
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public image UnityEngine.UI.Image
  16. ---@class UIActivityFortnightLogin__Generate_templateItem
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public rectTransform UnityEngine.RectTransform
  19. ---@field public image UnityEngine.UI.Image
  20. ---@class UIActivityFortnightLogin__Generate_AnyBtn
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public button UnityEngine.UI.Button
  23. ---@class UIActivityFortnightLogin__Generate
  24. ---@field private gameObject UnityEngine.GameObject
  25. ---@field private transform UnityEngine.Transform
  26. ---@field private AnyBtn UIActivityFortnightLogin__Generate_AnyBtn
  27. ---@field private rewardsNode UnityEngine.GameObject
  28. ---@field private templateItem UIActivityFortnightLogin__Generate_templateItem
  29. ---@field private image UIActivityFortnightLogin__Generate_image
  30. ---@field private curDayTxt UIActivityFortnightLogin__Generate_curDayTxt
  31. ---@field private curRewardName UIActivityFortnightLogin__Generate_curRewardName
  32. ---@field private curLoginTxt UIActivityFortnightLogin__Generate_curLoginTxt
  33. ---@field private backBtn UIActivityFortnightLogin__Generate_backBtn
  34. local UIActivityFortnightLoginView = class("UIActivityFortnightLoginView", require("UIViewBase"))
  35. function UIActivityFortnightLoginView:ctor()
  36. end
  37. ---@private
  38. function UIActivityFortnightLoginView:SetActive(result)
  39. self.gameObject:SetActive(result)
  40. end
  41. ---@private
  42. function UIActivityFortnightLoginView: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 UIActivityFortnightLoginView: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 UIActivityFortnightLoginView:InitGenerate__2(Root, data)
  72. --[[
  73. UIAnimator/Window/Bottom/Rewards
  74. --]]
  75. local tmp = Root:Find("UIAnimator/Window/Bottom/Rewards").gameObject
  76. if tolua.getpeer(tmp) == nil then
  77. tolua.setpeer(tmp, {})
  78. end
  79. self.rewardsNode = tmp
  80. end
  81. ---@private
  82. function UIActivityFortnightLoginView:InitGenerate__3(Root, data)
  83. --[[
  84. UIAnimator/Window/Bottom/Rewards/ActivityRewardItem
  85. --]]
  86. local tmp = Root:Find("UIAnimator/Window/Bottom/Rewards/ActivityRewardItem").gameObject
  87. if tolua.getpeer(tmp) == nil then
  88. tolua.setpeer(tmp, {})
  89. end
  90. self.templateItem = CommonUtil.BindGridViewItem2LuaStatic("ActivityRewardItem", tmp)
  91. self.templateItem.prefabName = "ActivityRewardItem"
  92. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  93. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  94. end
  95. ---@private
  96. function UIActivityFortnightLoginView:InitGenerate__4(Root, data)
  97. --[[
  98. UIAnimator/Window/Baner/Image
  99. --]]
  100. local tmp = Root:Find("UIAnimator/Window/Baner/Image").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.image = tmp
  105. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  106. end
  107. ---@private
  108. function UIActivityFortnightLoginView:InitGenerate__5(Root, data)
  109. --[[
  110. UIAnimator/Window/Baner/Slogan/Day
  111. --]]
  112. local tmp = Root:Find("UIAnimator/Window/Baner/Slogan/Day").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.curDayTxt = tmp
  117. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  118. end
  119. ---@private
  120. function UIActivityFortnightLoginView:InitGenerate__6(Root, data)
  121. --[[
  122. UIAnimator/Window/Baner/Slogan/Item
  123. --]]
  124. local tmp = Root:Find("UIAnimator/Window/Baner/Slogan/Item").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.curRewardName = tmp
  129. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  130. end
  131. ---@private
  132. function UIActivityFortnightLoginView:InitGenerate__7(Root, data)
  133. --[[
  134. UIAnimator/Window/Baner/CurLoginTxt
  135. --]]
  136. local tmp = nil
  137. local tfm = Root:Find("UIAnimator/Window/Baner/CurLoginTxt")
  138. if tfm == nil then
  139. return
  140. else
  141. tmp = tfm.gameObject
  142. end
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.curLoginTxt = tmp
  147. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  148. end
  149. ---@private
  150. function UIActivityFortnightLoginView:InitGenerate__8(Root, data)
  151. --[[
  152. UIAnimator/Window/BtnBack
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.backBtn = tmp
  159. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  160. end
  161. ---@private
  162. function UIActivityFortnightLoginView:GenerateDestroy()
  163. if tolua.getpeer(self.AnyBtn) ~= nil then
  164. tolua.setpeer(self.AnyBtn, nil)
  165. end
  166. self.AnyBtn = nil
  167. if tolua.getpeer(self.rewardsNode) ~= nil then
  168. tolua.setpeer(self.rewardsNode, nil)
  169. end
  170. self.rewardsNode = nil
  171. if self.templateItem.GenerateDestroy ~= nil then
  172. self.templateItem:GenerateDestroy()
  173. end
  174. if tolua.getpeer(self.templateItem) ~= nil then
  175. tolua.setpeer(self.templateItem, nil)
  176. end
  177. self.templateItem = nil
  178. if tolua.getpeer(self.image) ~= nil then
  179. tolua.setpeer(self.image, nil)
  180. end
  181. self.image = nil
  182. if tolua.getpeer(self.curDayTxt) ~= nil then
  183. tolua.setpeer(self.curDayTxt, nil)
  184. end
  185. self.curDayTxt = nil
  186. if tolua.getpeer(self.curRewardName) ~= nil then
  187. tolua.setpeer(self.curRewardName, nil)
  188. end
  189. self.curRewardName = nil
  190. if tolua.getpeer(self.curLoginTxt) ~= nil then
  191. tolua.setpeer(self.curLoginTxt, nil)
  192. end
  193. self.curLoginTxt = nil
  194. if tolua.getpeer(self.backBtn) ~= nil then
  195. tolua.setpeer(self.backBtn, nil)
  196. end
  197. self.backBtn = nil
  198. self.transform = nil
  199. self.gameObject = nil
  200. self.inited = false
  201. end
  202. return UIActivityFortnightLoginView