UIChipRoomView_Generate.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. ---@class UIChipRoom__Generate_btnDecompose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public image UnityEngine.UI.Image
  4. ---@field public button UnityEngine.UI.Button
  5. ---@class UIChipRoom__Generate_btnOneKeyDecompose
  6. ---@field public gameObject UnityEngine.GameObject
  7. ---@field public image UnityEngine.UI.Image
  8. ---@field public button UnityEngine.UI.Button
  9. ---@class UIChipRoom__Generate_btnBack
  10. ---@field public gameObject UnityEngine.GameObject
  11. ---@field public button UnityEngine.UI.Button
  12. ---@class UIChipRoom__Generate_DscNoChip2
  13. ---@field public gameObject UnityEngine.GameObject
  14. ---@field public text UnityEngine.UI.Text
  15. ---@class UIChipRoom__Generate_decompose_content
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  18. ---@class UIChipRoom__Generate_decompose
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  21. ---@field public content UIChipRoom__Generate_decompose_content
  22. ---@field public noChips UnityEngine.GameObject
  23. ---@class UIChipRoom__Generate_toggleGroup
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  26. ---@class UIChipRoom__Generate
  27. ---@field private gameObject UnityEngine.GameObject
  28. ---@field private transform UnityEngine.Transform
  29. ---@field private toggleGroup UIChipRoom__Generate_toggleGroup
  30. ---@field private redPoint2 UnityEngine.GameObject
  31. ---@field private decompose UIChipRoom__Generate_decompose
  32. ---@field private DscNoChip2 UIChipRoom__Generate_DscNoChip2
  33. ---@field private btnBack UIChipRoom__Generate_btnBack
  34. ---@field private btnOneKeyDecompose UIChipRoom__Generate_btnOneKeyDecompose
  35. ---@field private btnDecompose UIChipRoom__Generate_btnDecompose
  36. local UIChipRoomView = class("UIChipRoomView", require("UIViewBase"))
  37. function UIChipRoomView:ctor()
  38. end
  39. ---@private
  40. function UIChipRoomView:SetActive(result)
  41. self.gameObject:SetActive(result)
  42. end
  43. ---@private
  44. function UIChipRoomView:InitGenerate(Root, data)
  45. self.transform = Root
  46. self.inited = true
  47. if self.super.Init then
  48. self.super.Init(self)
  49. end
  50. local tmp
  51. self:InitGenerate__1(Root,data)
  52. self:InitGenerate__2(Root,data)
  53. self:InitGenerate__3(Root,data)
  54. self:InitGenerate__4(Root,data)
  55. self:InitGenerate__5(Root,data)
  56. self:InitGenerate__6(Root,data)
  57. self:InitGenerate__7(Root,data)
  58. self:InitGenerate__8(Root,data)
  59. self:InitGenerate__9(Root,data)
  60. end
  61. ---@private
  62. function UIChipRoomView:InitGenerate__1(Root, data)
  63. --[[
  64. ListRoot/Window/ToggleGroup
  65. --]]
  66. local tmp = Root:Find("ListRoot/Window/ToggleGroup").gameObject
  67. if tolua.getpeer(tmp) == nil then
  68. tolua.setpeer(tmp, {})
  69. end
  70. self.toggleGroup = tmp
  71. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  72. end
  73. ---@private
  74. function UIChipRoomView:InitGenerate__2(Root, data)
  75. --[[
  76. ListRoot/Window/ToggleGroup/Decompose/RedPoint
  77. --]]
  78. local tmp = Root:Find("ListRoot/Window/ToggleGroup/Decompose/RedPoint").gameObject
  79. if tolua.getpeer(tmp) == nil then
  80. tolua.setpeer(tmp, {})
  81. end
  82. self.redPoint2 = tmp
  83. end
  84. ---@private
  85. function UIChipRoomView:InitGenerate__3(Root, data)
  86. --[[
  87. ListRoot/Window/Decompose
  88. --]]
  89. local tmp = Root:Find("ListRoot/Window/Decompose").gameObject
  90. if tolua.getpeer(tmp) == nil then
  91. tolua.setpeer(tmp, {})
  92. end
  93. self.decompose = tmp
  94. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  95. end
  96. ---@private
  97. function UIChipRoomView:InitGenerate__4(Root, data)
  98. --[[
  99. ListRoot/Window/Decompose/Viewport/Content
  100. --]]
  101. local tmp = Root:Find("ListRoot/Window/Decompose/Viewport/Content").gameObject
  102. if tolua.getpeer(tmp) == nil then
  103. tolua.setpeer(tmp, {})
  104. end
  105. self.decompose.content = tmp
  106. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  107. end
  108. ---@private
  109. function UIChipRoomView:InitGenerate__5(Root, data)
  110. --[[
  111. ListRoot/Window/Decompose/NoChips
  112. --]]
  113. local tmp = Root:Find("ListRoot/Window/Decompose/NoChips").gameObject
  114. if tolua.getpeer(tmp) == nil then
  115. tolua.setpeer(tmp, {})
  116. end
  117. self.decompose.noChips = tmp
  118. end
  119. ---@private
  120. function UIChipRoomView:InitGenerate__6(Root, data)
  121. --[[
  122. ListRoot/Window/Decompose/NoChips/DesTxt
  123. --]]
  124. local tmp = Root:Find("ListRoot/Window/Decompose/NoChips/DesTxt").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.DscNoChip2 = tmp
  129. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  130. end
  131. ---@private
  132. function UIChipRoomView:InitGenerate__7(Root, data)
  133. --[[
  134. ListRoot/Window/BtnBack
  135. --]]
  136. local tmp = Root:Find("ListRoot/Window/BtnBack").gameObject
  137. if tolua.getpeer(tmp) == nil then
  138. tolua.setpeer(tmp, {})
  139. end
  140. self.btnBack = tmp
  141. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  142. end
  143. ---@private
  144. function UIChipRoomView:InitGenerate__8(Root, data)
  145. --[[
  146. ListRoot/Window/BtnOneKeyDecompose
  147. --]]
  148. local tmp = Root:Find("ListRoot/Window/BtnOneKeyDecompose").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.btnOneKeyDecompose = tmp
  153. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  154. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  155. end
  156. ---@private
  157. function UIChipRoomView:InitGenerate__9(Root, data)
  158. --[[
  159. ListRoot/Window/BtnDecompose
  160. --]]
  161. local tmp = Root:Find("ListRoot/Window/BtnDecompose").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.btnDecompose = tmp
  166. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  167. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  168. end
  169. ---@private
  170. function UIChipRoomView:GenerateDestroy()
  171. if tolua.getpeer(self.decompose.noChips) ~= nil then
  172. tolua.setpeer(self.decompose.noChips, nil)
  173. end
  174. if tolua.getpeer(self.decompose.content) ~= nil then
  175. tolua.setpeer(self.decompose.content, nil)
  176. end
  177. if tolua.getpeer(self.toggleGroup) ~= nil then
  178. tolua.setpeer(self.toggleGroup, nil)
  179. end
  180. self.toggleGroup = nil
  181. if tolua.getpeer(self.redPoint2) ~= nil then
  182. tolua.setpeer(self.redPoint2, nil)
  183. end
  184. self.redPoint2 = nil
  185. if tolua.getpeer(self.decompose) ~= nil then
  186. tolua.setpeer(self.decompose, nil)
  187. end
  188. self.decompose = nil
  189. if tolua.getpeer(self.DscNoChip2) ~= nil then
  190. tolua.setpeer(self.DscNoChip2, nil)
  191. end
  192. self.DscNoChip2 = nil
  193. if tolua.getpeer(self.btnBack) ~= nil then
  194. tolua.setpeer(self.btnBack, nil)
  195. end
  196. self.btnBack = nil
  197. if tolua.getpeer(self.btnOneKeyDecompose) ~= nil then
  198. tolua.setpeer(self.btnOneKeyDecompose, nil)
  199. end
  200. self.btnOneKeyDecompose = nil
  201. if tolua.getpeer(self.btnDecompose) ~= nil then
  202. tolua.setpeer(self.btnDecompose, nil)
  203. end
  204. self.btnDecompose = nil
  205. self.transform = nil
  206. self.gameObject = nil
  207. self.inited = false
  208. end
  209. return UIChipRoomView