UIActivityFortnightLoginView_Generate.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ---@class UIActivityFortnightLogin__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIActivityFortnightLogin__Generate_curRewardName
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIActivityFortnightLogin__Generate_curDayTxt
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIActivityFortnightLogin__Generate_image
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public image UnityEngine.UI.Image
  13. ---@class UIActivityFortnightLogin__Generate_templateItem
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@field public image UnityEngine.UI.Image
  17. ---@class UIActivityFortnightLogin__Generate_AnyBtn
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIActivityFortnightLogin__Generate
  21. ---@field private gameObject UnityEngine.GameObject
  22. ---@field private transform UnityEngine.Transform
  23. ---@field private AnyBtn UIActivityFortnightLogin__Generate_AnyBtn
  24. ---@field private rewardsNode UnityEngine.GameObject
  25. ---@field private templateItem UIActivityFortnightLogin__Generate_templateItem
  26. ---@field private image UIActivityFortnightLogin__Generate_image
  27. ---@field private curDayTxt UIActivityFortnightLogin__Generate_curDayTxt
  28. ---@field private curRewardName UIActivityFortnightLogin__Generate_curRewardName
  29. ---@field private backBtn UIActivityFortnightLogin__Generate_backBtn
  30. local UIActivityFortnightLoginView = class("UIActivityFortnightLoginView", require("UIViewBase"))
  31. function UIActivityFortnightLoginView:ctor()
  32. end
  33. ---@private
  34. function UIActivityFortnightLoginView:SetActive(result)
  35. self.gameObject:SetActive(result)
  36. end
  37. ---@private
  38. function UIActivityFortnightLoginView:InitGenerate(Root, data)
  39. self.transform = Root
  40. self.inited = true
  41. if self.super.Init then
  42. self.super.Init(self)
  43. end
  44. local tmp
  45. self:InitGenerate__1(Root,data)
  46. self:InitGenerate__2(Root,data)
  47. self:InitGenerate__3(Root,data)
  48. self:InitGenerate__4(Root,data)
  49. self:InitGenerate__5(Root,data)
  50. self:InitGenerate__6(Root,data)
  51. self:InitGenerate__7(Root,data)
  52. end
  53. ---@private
  54. function UIActivityFortnightLoginView:InitGenerate__1(Root, data)
  55. --[[
  56. UIAnimator/Alpha
  57. --]]
  58. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  59. if tolua.getpeer(tmp) == nil then
  60. tolua.setpeer(tmp, {})
  61. end
  62. self.AnyBtn = tmp
  63. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  64. end
  65. ---@private
  66. function UIActivityFortnightLoginView:InitGenerate__2(Root, data)
  67. --[[
  68. UIAnimator/Window/Bottom/Rewards
  69. --]]
  70. local tmp = Root:Find("UIAnimator/Window/Bottom/Rewards").gameObject
  71. if tolua.getpeer(tmp) == nil then
  72. tolua.setpeer(tmp, {})
  73. end
  74. self.rewardsNode = tmp
  75. end
  76. ---@private
  77. function UIActivityFortnightLoginView:InitGenerate__3(Root, data)
  78. --[[
  79. UIAnimator/Window/Bottom/Rewards/ActivityRewardItem
  80. --]]
  81. local tmp = Root:Find("UIAnimator/Window/Bottom/Rewards/ActivityRewardItem").gameObject
  82. if tolua.getpeer(tmp) == nil then
  83. tolua.setpeer(tmp, {})
  84. end
  85. self.templateItem = CommonUtil.BindGridViewItem2LuaStatic("ActivityRewardItem", tmp)
  86. self.templateItem.prefabName = "ActivityRewardItem"
  87. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  88. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  89. end
  90. ---@private
  91. function UIActivityFortnightLoginView:InitGenerate__4(Root, data)
  92. --[[
  93. UIAnimator/Window/Baner/Image
  94. --]]
  95. local tmp = Root:Find("UIAnimator/Window/Baner/Image").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.image = tmp
  100. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  101. end
  102. ---@private
  103. function UIActivityFortnightLoginView:InitGenerate__5(Root, data)
  104. --[[
  105. UIAnimator/Window/Baner/Slogan/Day
  106. --]]
  107. local tmp = Root:Find("UIAnimator/Window/Baner/Slogan/Day").gameObject
  108. if tolua.getpeer(tmp) == nil then
  109. tolua.setpeer(tmp, {})
  110. end
  111. self.curDayTxt = tmp
  112. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  113. end
  114. ---@private
  115. function UIActivityFortnightLoginView:InitGenerate__6(Root, data)
  116. --[[
  117. UIAnimator/Window/Baner/Slogan/Item
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Window/Baner/Slogan/Item").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.curRewardName = tmp
  124. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  125. end
  126. ---@private
  127. function UIActivityFortnightLoginView:InitGenerate__7(Root, data)
  128. --[[
  129. UIAnimator/Window/BtnBack
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.backBtn = tmp
  136. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  137. end
  138. ---@private
  139. function UIActivityFortnightLoginView:GenerateDestroy()
  140. if tolua.getpeer(self.AnyBtn) ~= nil then
  141. tolua.setpeer(self.AnyBtn, nil)
  142. end
  143. self.AnyBtn = nil
  144. if tolua.getpeer(self.rewardsNode) ~= nil then
  145. tolua.setpeer(self.rewardsNode, nil)
  146. end
  147. self.rewardsNode = nil
  148. if self.templateItem.GenerateDestroy ~= nil then
  149. self.templateItem:GenerateDestroy()
  150. end
  151. if tolua.getpeer(self.templateItem) ~= nil then
  152. tolua.setpeer(self.templateItem, nil)
  153. end
  154. self.templateItem = nil
  155. if tolua.getpeer(self.image) ~= nil then
  156. tolua.setpeer(self.image, nil)
  157. end
  158. self.image = nil
  159. if tolua.getpeer(self.curDayTxt) ~= nil then
  160. tolua.setpeer(self.curDayTxt, nil)
  161. end
  162. self.curDayTxt = nil
  163. if tolua.getpeer(self.curRewardName) ~= nil then
  164. tolua.setpeer(self.curRewardName, nil)
  165. end
  166. self.curRewardName = nil
  167. if tolua.getpeer(self.backBtn) ~= nil then
  168. tolua.setpeer(self.backBtn, nil)
  169. end
  170. self.backBtn = nil
  171. self.transform = nil
  172. self.gameObject = nil
  173. self.inited = false
  174. end
  175. return UIActivityFortnightLoginView