UIIdolSupportTipsView_Generate.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. ---@class UIIdolSupportTips__Generate_btnSupport_number
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIIdolSupportTips__Generate_btnSupport
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@field public number UIIdolSupportTips__Generate_btnSupport_number
  8. ---@class UIIdolSupportTips__Generate_box_numBox_btnPlus
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class UIIdolSupportTips__Generate_box_numBox_btnMinus
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIIdolSupportTips__Generate_box_numBox_slider
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public slider UnityEngine.UI.Slider
  17. ---@class UIIdolSupportTips__Generate_box_numBox_num
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public text UnityEngine.UI.Text
  20. ---@class UIIdolSupportTips__Generate_box_numBox
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public num UIIdolSupportTips__Generate_box_numBox_num
  23. ---@field public slider UIIdolSupportTips__Generate_box_numBox_slider
  24. ---@field public btnMinus UIIdolSupportTips__Generate_box_numBox_btnMinus
  25. ---@field public btnPlus UIIdolSupportTips__Generate_box_numBox_btnPlus
  26. ---@class UIIdolSupportTips__Generate_box
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public dscInfo UnityEngine.GameObject
  29. ---@field public numBox UIIdolSupportTips__Generate_box_numBox
  30. ---@class UIIdolSupportTips__Generate_btnClose
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public button UnityEngine.UI.Button
  33. ---@class UIIdolSupportTips__Generate_AnyBtn
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public button UnityEngine.UI.Button
  36. ---@class UIIdolSupportTips__Generate_uIAnimator
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public animator UnityEngine.Animator
  39. ---@class UIIdolSupportTips__Generate
  40. ---@field private gameObject UnityEngine.GameObject
  41. ---@field private transform UnityEngine.Transform
  42. ---@field private uIAnimator UIIdolSupportTips__Generate_uIAnimator
  43. ---@field private AnyBtn UIIdolSupportTips__Generate_AnyBtn
  44. ---@field private btnClose UIIdolSupportTips__Generate_btnClose
  45. ---@field private idolRank UnityEngine.GameObject
  46. ---@field private box UIIdolSupportTips__Generate_box
  47. ---@field private boxSliderHande UnityEngine.GameObject
  48. ---@field private btnSupport UIIdolSupportTips__Generate_btnSupport
  49. local UIIdolSupportTipsView = class("UIIdolSupportTipsView", require("UIViewBase"))
  50. function UIIdolSupportTipsView:ctor()
  51. end
  52. ---@private
  53. function UIIdolSupportTipsView:SetActive(result)
  54. self.gameObject:SetActive(result)
  55. end
  56. ---@private
  57. function UIIdolSupportTipsView:InitGenerate(Root, data)
  58. self.transform = Root
  59. self.inited = true
  60. if self.super.Init then
  61. self.super.Init(self)
  62. end
  63. local tmp
  64. self:InitGenerate__1(Root,data)
  65. self:InitGenerate__2(Root,data)
  66. self:InitGenerate__3(Root,data)
  67. self:InitGenerate__4(Root,data)
  68. self:InitGenerate__5(Root,data)
  69. self:InitGenerate__6(Root,data)
  70. self:InitGenerate__7(Root,data)
  71. self:InitGenerate__8(Root,data)
  72. self:InitGenerate__9(Root,data)
  73. self:InitGenerate__10(Root,data)
  74. self:InitGenerate__11(Root,data)
  75. self:InitGenerate__12(Root,data)
  76. self:InitGenerate__13(Root,data)
  77. self:InitGenerate__14(Root,data)
  78. self:InitGenerate__15(Root,data)
  79. end
  80. ---@private
  81. function UIIdolSupportTipsView:InitGenerate__1(Root, data)
  82. --[[
  83. Root
  84. --]]
  85. end
  86. ---@private
  87. function UIIdolSupportTipsView:InitGenerate__2(Root, data)
  88. --[[
  89. UIAnimator
  90. --]]
  91. local tmp = Root:Find("UIAnimator").gameObject
  92. if tolua.getpeer(tmp) == nil then
  93. tolua.setpeer(tmp, {})
  94. end
  95. self.uIAnimator = tmp
  96. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  97. tmp.animator.logWarnings = false
  98. end
  99. ---@private
  100. function UIIdolSupportTipsView:InitGenerate__3(Root, data)
  101. --[[
  102. UIAnimator/Alpha
  103. --]]
  104. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  105. if tolua.getpeer(tmp) == nil then
  106. tolua.setpeer(tmp, {})
  107. end
  108. self.AnyBtn = tmp
  109. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  110. end
  111. ---@private
  112. function UIIdolSupportTipsView:InitGenerate__4(Root, data)
  113. --[[
  114. UIAnimator/Window/BtnClose/BtnClose
  115. --]]
  116. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.btnClose = tmp
  121. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  122. end
  123. ---@private
  124. function UIIdolSupportTipsView:InitGenerate__5(Root, data)
  125. --[[
  126. UIAnimator/Window/IdolRank
  127. --]]
  128. local tmp = Root:Find("UIAnimator/Window/IdolRank").gameObject
  129. if tolua.getpeer(tmp) == nil then
  130. tolua.setpeer(tmp, {})
  131. end
  132. self.idolRank = CommonUtil.BindGridViewItem2LuaStatic("UIIdolRankItem", tmp)
  133. self.idolRank.prefabName = "UIIdolRankItem"
  134. end
  135. ---@private
  136. function UIIdolSupportTipsView:InitGenerate__6(Root, data)
  137. --[[
  138. UIAnimator/Window/Bottom/Box
  139. --]]
  140. local tmp = Root:Find("UIAnimator/Window/Bottom/Box").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.box = tmp
  145. end
  146. ---@private
  147. function UIIdolSupportTipsView:InitGenerate__7(Root, data)
  148. --[[
  149. UIAnimator/Window/Bottom/Box/DscInfo
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/DscInfo").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.box.dscInfo = tmp
  156. end
  157. ---@private
  158. function UIIdolSupportTipsView:InitGenerate__8(Root, data)
  159. --[[
  160. UIAnimator/Window/Bottom/Box/NumBox
  161. --]]
  162. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.box.numBox = tmp
  167. end
  168. ---@private
  169. function UIIdolSupportTipsView:InitGenerate__9(Root, data)
  170. --[[
  171. UIAnimator/Window/Bottom/Box/NumBox/num
  172. --]]
  173. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox/num").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.box.numBox.num = tmp
  178. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  179. end
  180. ---@private
  181. function UIIdolSupportTipsView:InitGenerate__10(Root, data)
  182. --[[
  183. UIAnimator/Window/Bottom/Box/NumBox/Slider
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox/Slider").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.box.numBox.slider = tmp
  190. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  191. end
  192. ---@private
  193. function UIIdolSupportTipsView:InitGenerate__11(Root, data)
  194. --[[
  195. UIAnimator/Window/Bottom/Box/NumBox/Slider/Handle Slide Area
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox/Slider/Handle Slide Area").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.boxSliderHande = tmp
  202. end
  203. ---@private
  204. function UIIdolSupportTipsView:InitGenerate__12(Root, data)
  205. --[[
  206. UIAnimator/Window/Bottom/Box/NumBox/BtnMinus
  207. --]]
  208. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox/BtnMinus").gameObject
  209. if tolua.getpeer(tmp) == nil then
  210. tolua.setpeer(tmp, {})
  211. end
  212. self.box.numBox.btnMinus = tmp
  213. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  214. end
  215. ---@private
  216. function UIIdolSupportTipsView:InitGenerate__13(Root, data)
  217. --[[
  218. UIAnimator/Window/Bottom/Box/NumBox/BtnPlus
  219. --]]
  220. local tmp = Root:Find("UIAnimator/Window/Bottom/Box/NumBox/BtnPlus").gameObject
  221. if tolua.getpeer(tmp) == nil then
  222. tolua.setpeer(tmp, {})
  223. end
  224. self.box.numBox.btnPlus = tmp
  225. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  226. end
  227. ---@private
  228. function UIIdolSupportTipsView:InitGenerate__14(Root, data)
  229. --[[
  230. UIAnimator/Window/Bottom/BtnSupport
  231. --]]
  232. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnSupport").gameObject
  233. if tolua.getpeer(tmp) == nil then
  234. tolua.setpeer(tmp, {})
  235. end
  236. self.btnSupport = tmp
  237. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  238. end
  239. ---@private
  240. function UIIdolSupportTipsView:InitGenerate__15(Root, data)
  241. --[[
  242. UIAnimator/Window/Bottom/BtnSupport/Content/Number
  243. --]]
  244. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnSupport/Content/Number").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.btnSupport.number = tmp
  249. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  250. end
  251. ---@private
  252. function UIIdolSupportTipsView:GenerateDestroy()
  253. if tolua.getpeer(self.btnSupport.number) ~= nil then
  254. tolua.setpeer(self.btnSupport.number, nil)
  255. end
  256. if tolua.getpeer(self.box.numBox.btnPlus) ~= nil then
  257. tolua.setpeer(self.box.numBox.btnPlus, nil)
  258. end
  259. if tolua.getpeer(self.box.numBox.btnMinus) ~= nil then
  260. tolua.setpeer(self.box.numBox.btnMinus, nil)
  261. end
  262. if tolua.getpeer(self.box.numBox.slider) ~= nil then
  263. tolua.setpeer(self.box.numBox.slider, nil)
  264. end
  265. if tolua.getpeer(self.box.numBox.num) ~= nil then
  266. tolua.setpeer(self.box.numBox.num, nil)
  267. end
  268. if tolua.getpeer(self.box.numBox) ~= nil then
  269. tolua.setpeer(self.box.numBox, nil)
  270. end
  271. if tolua.getpeer(self.box.dscInfo) ~= nil then
  272. tolua.setpeer(self.box.dscInfo, nil)
  273. end
  274. if tolua.getpeer(self.uIAnimator) ~= nil then
  275. tolua.setpeer(self.uIAnimator, nil)
  276. end
  277. self.uIAnimator = nil
  278. if tolua.getpeer(self.AnyBtn) ~= nil then
  279. tolua.setpeer(self.AnyBtn, nil)
  280. end
  281. self.AnyBtn = nil
  282. if tolua.getpeer(self.btnClose) ~= nil then
  283. tolua.setpeer(self.btnClose, nil)
  284. end
  285. self.btnClose = nil
  286. if self.idolRank.GenerateDestroy ~= nil then
  287. self.idolRank:GenerateDestroy()
  288. end
  289. if tolua.getpeer(self.idolRank) ~= nil then
  290. tolua.setpeer(self.idolRank, nil)
  291. end
  292. self.idolRank = nil
  293. if tolua.getpeer(self.box) ~= nil then
  294. tolua.setpeer(self.box, nil)
  295. end
  296. self.box = nil
  297. if tolua.getpeer(self.boxSliderHande) ~= nil then
  298. tolua.setpeer(self.boxSliderHande, nil)
  299. end
  300. self.boxSliderHande = nil
  301. if tolua.getpeer(self.btnSupport) ~= nil then
  302. tolua.setpeer(self.btnSupport, nil)
  303. end
  304. self.btnSupport = nil
  305. self.transform = nil
  306. self.gameObject = nil
  307. self.inited = false
  308. end
  309. return UIIdolSupportTipsView