UIWJTowerRewardInfoView_Generate.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. ---@class UIWJTowerRewardInfo__Generate_rewardContent
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  4. ---@class UIWJTowerRewardInfo__Generate_rewardScroll
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@class UIWJTowerRewardInfo__Generate_closeBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIWJTowerRewardInfo__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIWJTowerRewardInfo__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIWJTowerRewardInfo__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIWJTowerRewardInfo__Generate_uIAnimator
  20. ---@field private AnyBtn UIWJTowerRewardInfo__Generate_AnyBtn
  21. ---@field private closeBtn UIWJTowerRewardInfo__Generate_closeBtn
  22. ---@field private rewardScroll UIWJTowerRewardInfo__Generate_rewardScroll
  23. ---@field private rewardContent UIWJTowerRewardInfo__Generate_rewardContent
  24. ---@field private emptyNode UnityEngine.GameObject
  25. local UIWJTowerRewardInfoView = class("UIWJTowerRewardInfoView", require("UIViewBase"))
  26. function UIWJTowerRewardInfoView:ctor()
  27. end
  28. ---@private
  29. function UIWJTowerRewardInfoView:SetActive(result)
  30. self.gameObject:SetActive(result)
  31. end
  32. ---@private
  33. function UIWJTowerRewardInfoView: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. self:InitGenerate__7(Root,data)
  47. end
  48. ---@private
  49. function UIWJTowerRewardInfoView:InitGenerate__1(Root, data)
  50. --[[
  51. Root
  52. --]]
  53. end
  54. ---@private
  55. function UIWJTowerRewardInfoView:InitGenerate__2(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 UIWJTowerRewardInfoView:InitGenerate__3(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 UIWJTowerRewardInfoView:InitGenerate__4(Root, data)
  81. --[[
  82. UIAnimator/Window/Bg/CloseBox/BtnClose
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.closeBtn = tmp
  89. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  90. end
  91. ---@private
  92. function UIWJTowerRewardInfoView:InitGenerate__5(Root, data)
  93. --[[
  94. UIAnimator/Window/Bg/CenterView/PlayerScroll
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/PlayerScroll").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.rewardScroll = tmp
  101. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  102. end
  103. ---@private
  104. function UIWJTowerRewardInfoView:InitGenerate__6(Root, data)
  105. --[[
  106. UIAnimator/Window/Bg/CenterView/PlayerScroll/Viewport/Content
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/PlayerScroll/Viewport/Content").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.rewardContent = tmp
  113. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  114. end
  115. ---@private
  116. function UIWJTowerRewardInfoView:InitGenerate__7(Root, data)
  117. --[[
  118. UIAnimator/Window/Bg/CenterView/Empty
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/Bg/CenterView/Empty").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.emptyNode = tmp
  125. end
  126. ---@private
  127. function UIWJTowerRewardInfoView:GenerateDestroy()
  128. if tolua.getpeer(self.uIAnimator) ~= nil then
  129. tolua.setpeer(self.uIAnimator, nil)
  130. end
  131. self.uIAnimator = nil
  132. if tolua.getpeer(self.AnyBtn) ~= nil then
  133. tolua.setpeer(self.AnyBtn, nil)
  134. end
  135. self.AnyBtn = nil
  136. if tolua.getpeer(self.closeBtn) ~= nil then
  137. tolua.setpeer(self.closeBtn, nil)
  138. end
  139. self.closeBtn = nil
  140. if tolua.getpeer(self.rewardScroll) ~= nil then
  141. tolua.setpeer(self.rewardScroll, nil)
  142. end
  143. self.rewardScroll = nil
  144. if tolua.getpeer(self.rewardContent) ~= nil then
  145. tolua.setpeer(self.rewardContent, nil)
  146. end
  147. self.rewardContent = nil
  148. if tolua.getpeer(self.emptyNode) ~= nil then
  149. tolua.setpeer(self.emptyNode, nil)
  150. end
  151. self.emptyNode = nil
  152. self.transform = nil
  153. self.gameObject = nil
  154. self.inited = false
  155. end
  156. return UIWJTowerRewardInfoView