UIClimbingTowerBattleWinView_Generate.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. ---@class UIClimbingTowerBattleWin__Generate_timersTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIClimbingTowerBattleWin__Generate_btnNextTower
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIClimbingTowerBattleWin__Generate_ItemContent
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  10. ---@class UIClimbingTowerBattleWin__Generate_ItemScrollView
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  13. ---@class UIClimbingTowerBattleWin__Generate_AnyBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIClimbingTowerBattleWin__Generate_uIAnimator
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public animator UnityEngine.Animator
  19. ---@class UIClimbingTowerBattleWin__Generate
  20. ---@field private gameObject UnityEngine.GameObject
  21. ---@field private transform UnityEngine.Transform
  22. ---@field private uIAnimator UIClimbingTowerBattleWin__Generate_uIAnimator
  23. ---@field private AnyBtn UIClimbingTowerBattleWin__Generate_AnyBtn
  24. ---@field private rewardNode UnityEngine.GameObject
  25. ---@field private ItemScrollView UIClimbingTowerBattleWin__Generate_ItemScrollView
  26. ---@field private ItemContent UIClimbingTowerBattleWin__Generate_ItemContent
  27. ---@field private btnNextTower UIClimbingTowerBattleWin__Generate_btnNextTower
  28. ---@field private autoPlay UnityEngine.GameObject
  29. ---@field private timersTxt UIClimbingTowerBattleWin__Generate_timersTxt
  30. local UIClimbingTowerBattleWinView = class("UIClimbingTowerBattleWinView", require("UIViewBase"))
  31. function UIClimbingTowerBattleWinView:ctor()
  32. end
  33. ---@private
  34. function UIClimbingTowerBattleWinView:SetActive(result)
  35. self.gameObject:SetActive(result)
  36. end
  37. ---@private
  38. function UIClimbingTowerBattleWinView: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. self:InitGenerate__8(Root,data)
  53. end
  54. ---@private
  55. function UIClimbingTowerBattleWinView:InitGenerate__1(Root, data)
  56. --[[
  57. UIAnimator
  58. --]]
  59. local tmp = Root:Find("UIAnimator").gameObject
  60. if tolua.getpeer(tmp) == nil then
  61. tolua.setpeer(tmp, {})
  62. end
  63. self.uIAnimator = tmp
  64. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  65. tmp.animator.logWarnings = false
  66. end
  67. ---@private
  68. function UIClimbingTowerBattleWinView:InitGenerate__2(Root, data)
  69. --[[
  70. UIAnimator/Alpha
  71. --]]
  72. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  73. if tolua.getpeer(tmp) == nil then
  74. tolua.setpeer(tmp, {})
  75. end
  76. self.AnyBtn = tmp
  77. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  78. end
  79. ---@private
  80. function UIClimbingTowerBattleWinView:InitGenerate__3(Root, data)
  81. --[[
  82. UIAnimator/Window/BG/RewardsIcons
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.rewardNode = tmp
  89. end
  90. ---@private
  91. function UIClimbingTowerBattleWinView:InitGenerate__4(Root, data)
  92. --[[
  93. UIAnimator/Window/BG/RewardsIcons/ItemScrollView
  94. --]]
  95. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons/ItemScrollView").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.ItemScrollView = tmp
  100. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  101. end
  102. ---@private
  103. function UIClimbingTowerBattleWinView:InitGenerate__5(Root, data)
  104. --[[
  105. UIAnimator/Window/BG/RewardsIcons/ItemScrollView/Viewport/Content
  106. --]]
  107. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons/ItemScrollView/Viewport/Content").gameObject
  108. if tolua.getpeer(tmp) == nil then
  109. tolua.setpeer(tmp, {})
  110. end
  111. self.ItemContent = tmp
  112. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  113. end
  114. ---@private
  115. function UIClimbingTowerBattleWinView:InitGenerate__6(Root, data)
  116. --[[
  117. UIAnimator/Window/BG/BtnNextTower
  118. --]]
  119. local tmp = Root:Find("UIAnimator/Window/BG/BtnNextTower").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.btnNextTower = tmp
  124. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  125. end
  126. ---@private
  127. function UIClimbingTowerBattleWinView:InitGenerate__7(Root, data)
  128. --[[
  129. UIAnimator/Window/AutoPlay
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/AutoPlay").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.autoPlay = tmp
  136. end
  137. ---@private
  138. function UIClimbingTowerBattleWinView:InitGenerate__8(Root, data)
  139. --[[
  140. UIAnimator/Window/AutoPlay/TimersTxt
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/AutoPlay/TimersTxt").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.timersTxt = tmp
  147. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  148. end
  149. ---@private
  150. function UIClimbingTowerBattleWinView:GenerateDestroy()
  151. if tolua.getpeer(self.uIAnimator) ~= nil then
  152. tolua.setpeer(self.uIAnimator, nil)
  153. end
  154. self.uIAnimator = nil
  155. if tolua.getpeer(self.AnyBtn) ~= nil then
  156. tolua.setpeer(self.AnyBtn, nil)
  157. end
  158. self.AnyBtn = nil
  159. if tolua.getpeer(self.rewardNode) ~= nil then
  160. tolua.setpeer(self.rewardNode, nil)
  161. end
  162. self.rewardNode = nil
  163. if tolua.getpeer(self.ItemScrollView) ~= nil then
  164. tolua.setpeer(self.ItemScrollView, nil)
  165. end
  166. self.ItemScrollView = nil
  167. if tolua.getpeer(self.ItemContent) ~= nil then
  168. tolua.setpeer(self.ItemContent, nil)
  169. end
  170. self.ItemContent = nil
  171. if tolua.getpeer(self.btnNextTower) ~= nil then
  172. tolua.setpeer(self.btnNextTower, nil)
  173. end
  174. self.btnNextTower = nil
  175. if tolua.getpeer(self.autoPlay) ~= nil then
  176. tolua.setpeer(self.autoPlay, nil)
  177. end
  178. self.autoPlay = nil
  179. if tolua.getpeer(self.timersTxt) ~= nil then
  180. tolua.setpeer(self.timersTxt, nil)
  181. end
  182. self.timersTxt = nil
  183. self.transform = nil
  184. self.gameObject = nil
  185. self.inited = false
  186. end
  187. return UIClimbingTowerBattleWinView