UIClimbingTowerBattleWinView_Generate.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. ---@class UIClimbingTowerBattleWin__Generate_btnNextTower
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIClimbingTowerBattleWin__Generate_ItemContent
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  7. ---@class UIClimbingTowerBattleWin__Generate_ItemScrollView
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  10. ---@class UIClimbingTowerBattleWin__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIClimbingTowerBattleWin__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIClimbingTowerBattleWin__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIClimbingTowerBattleWin__Generate_uIAnimator
  20. ---@field private AnyBtn UIClimbingTowerBattleWin__Generate_AnyBtn
  21. ---@field private rewardNode UnityEngine.GameObject
  22. ---@field private ItemScrollView UIClimbingTowerBattleWin__Generate_ItemScrollView
  23. ---@field private ItemContent UIClimbingTowerBattleWin__Generate_ItemContent
  24. ---@field private btnNextTower UIClimbingTowerBattleWin__Generate_btnNextTower
  25. local UIClimbingTowerBattleWinView = class("UIClimbingTowerBattleWinView", require("UIViewBase"))
  26. function UIClimbingTowerBattleWinView:ctor()
  27. end
  28. ---@private
  29. function UIClimbingTowerBattleWinView:SetActive(result)
  30. self.gameObject:SetActive(result)
  31. end
  32. ---@private
  33. function UIClimbingTowerBattleWinView:InitGenerate(Root, data)
  34. self.transform = Root
  35. self.inited = true
  36. if self.super.Init then
  37. self.super.Init(self)
  38. end
  39. local tmp
  40. self:InitGenerate__1(Root,data)
  41. self:InitGenerate__2(Root,data)
  42. self:InitGenerate__3(Root,data)
  43. self:InitGenerate__4(Root,data)
  44. self:InitGenerate__5(Root,data)
  45. self:InitGenerate__6(Root,data)
  46. end
  47. ---@private
  48. function UIClimbingTowerBattleWinView:InitGenerate__1(Root, data)
  49. --[[
  50. UIAnimator
  51. --]]
  52. local tmp = Root:Find("UIAnimator").gameObject
  53. if tolua.getpeer(tmp) == nil then
  54. tolua.setpeer(tmp, {})
  55. end
  56. self.uIAnimator = tmp
  57. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  58. tmp.animator.logWarnings = false
  59. end
  60. ---@private
  61. function UIClimbingTowerBattleWinView:InitGenerate__2(Root, data)
  62. --[[
  63. UIAnimator/Alpha
  64. --]]
  65. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  66. if tolua.getpeer(tmp) == nil then
  67. tolua.setpeer(tmp, {})
  68. end
  69. self.AnyBtn = tmp
  70. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  71. end
  72. ---@private
  73. function UIClimbingTowerBattleWinView:InitGenerate__3(Root, data)
  74. --[[
  75. UIAnimator/Window/BG/RewardsIcons
  76. --]]
  77. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons").gameObject
  78. if tolua.getpeer(tmp) == nil then
  79. tolua.setpeer(tmp, {})
  80. end
  81. self.rewardNode = tmp
  82. end
  83. ---@private
  84. function UIClimbingTowerBattleWinView:InitGenerate__4(Root, data)
  85. --[[
  86. UIAnimator/Window/BG/RewardsIcons/ItemScrollView
  87. --]]
  88. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons/ItemScrollView").gameObject
  89. if tolua.getpeer(tmp) == nil then
  90. tolua.setpeer(tmp, {})
  91. end
  92. self.ItemScrollView = tmp
  93. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  94. end
  95. ---@private
  96. function UIClimbingTowerBattleWinView:InitGenerate__5(Root, data)
  97. --[[
  98. UIAnimator/Window/BG/RewardsIcons/ItemScrollView/Viewport/Content
  99. --]]
  100. local tmp = Root:Find("UIAnimator/Window/BG/RewardsIcons/ItemScrollView/Viewport/Content").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.ItemContent = tmp
  105. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  106. end
  107. ---@private
  108. function UIClimbingTowerBattleWinView:InitGenerate__6(Root, data)
  109. --[[
  110. UIAnimator/Window/BG/BtnNextTower
  111. --]]
  112. local tmp = Root:Find("UIAnimator/Window/BG/BtnNextTower").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.btnNextTower = tmp
  117. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  118. end
  119. ---@private
  120. function UIClimbingTowerBattleWinView:GenerateDestroy()
  121. if tolua.getpeer(self.uIAnimator) ~= nil then
  122. tolua.setpeer(self.uIAnimator, nil)
  123. end
  124. self.uIAnimator = nil
  125. if tolua.getpeer(self.AnyBtn) ~= nil then
  126. tolua.setpeer(self.AnyBtn, nil)
  127. end
  128. self.AnyBtn = nil
  129. if tolua.getpeer(self.rewardNode) ~= nil then
  130. tolua.setpeer(self.rewardNode, nil)
  131. end
  132. self.rewardNode = nil
  133. if tolua.getpeer(self.ItemScrollView) ~= nil then
  134. tolua.setpeer(self.ItemScrollView, nil)
  135. end
  136. self.ItemScrollView = nil
  137. if tolua.getpeer(self.ItemContent) ~= nil then
  138. tolua.setpeer(self.ItemContent, nil)
  139. end
  140. self.ItemContent = nil
  141. if tolua.getpeer(self.btnNextTower) ~= nil then
  142. tolua.setpeer(self.btnNextTower, nil)
  143. end
  144. self.btnNextTower = nil
  145. self.transform = nil
  146. self.gameObject = nil
  147. self.inited = false
  148. end
  149. return UIClimbingTowerBattleWinView