UIWjBattleBuffViewView_Generate.lua 4.8 KB

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