UIBuyTimesView_Generate.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. ---@class UIBuyTimes__Generate_buyBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIBuyTimes__Generate_costText
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIBuyTimes__Generate_btnPlus
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIBuyTimes__Generate_btnMinus
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIBuyTimes__Generate_slider
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public slider UnityEngine.UI.Slider
  16. ---@class UIBuyTimes__Generate_leftTimesText
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class UIBuyTimes__Generate_number
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIBuyTimes__Generate_closeBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIBuyTimes__Generate_AnyBtn
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIBuyTimes__Generate_uIAnimator
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public animator UnityEngine.Animator
  31. ---@class UIBuyTimes__Generate
  32. ---@field private gameObject UnityEngine.GameObject
  33. ---@field private transform UnityEngine.Transform
  34. ---@field private uIAnimator UIBuyTimes__Generate_uIAnimator
  35. ---@field private AnyBtn UIBuyTimes__Generate_AnyBtn
  36. ---@field private window UnityEngine.GameObject
  37. ---@field private closeBtn UIBuyTimes__Generate_closeBtn
  38. ---@field private number UIBuyTimes__Generate_number
  39. ---@field private leftTimesText UIBuyTimes__Generate_leftTimesText
  40. ---@field private slider UIBuyTimes__Generate_slider
  41. ---@field private btnMinus UIBuyTimes__Generate_btnMinus
  42. ---@field private btnPlus UIBuyTimes__Generate_btnPlus
  43. ---@field private costText UIBuyTimes__Generate_costText
  44. ---@field private buyBtn UIBuyTimes__Generate_buyBtn
  45. local UIBuyTimesView = class("UIBuyTimesView", require("UIViewBase"))
  46. function UIBuyTimesView:ctor()
  47. end
  48. ---@private
  49. function UIBuyTimesView:SetActive(result)
  50. self.gameObject:SetActive(result)
  51. end
  52. ---@private
  53. function UIBuyTimesView:InitGenerate(Root, data)
  54. self.transform = Root
  55. self.inited = true
  56. if self.super.Init then
  57. self.super.Init(self)
  58. end
  59. local tmp
  60. self:InitGenerate__1(Root,data)
  61. self:InitGenerate__2(Root,data)
  62. self:InitGenerate__3(Root,data)
  63. self:InitGenerate__4(Root,data)
  64. self:InitGenerate__5(Root,data)
  65. self:InitGenerate__6(Root,data)
  66. self:InitGenerate__7(Root,data)
  67. self:InitGenerate__8(Root,data)
  68. self:InitGenerate__9(Root,data)
  69. self:InitGenerate__10(Root,data)
  70. self:InitGenerate__11(Root,data)
  71. self:InitGenerate__12(Root,data)
  72. end
  73. ---@private
  74. function UIBuyTimesView:InitGenerate__1(Root, data)
  75. --[[
  76. Root
  77. --]]
  78. end
  79. ---@private
  80. function UIBuyTimesView:InitGenerate__2(Root, data)
  81. --[[
  82. UIAnimator
  83. --]]
  84. local tmp = Root:Find("UIAnimator").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.uIAnimator = tmp
  89. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  90. tmp.animator.logWarnings = false
  91. end
  92. ---@private
  93. function UIBuyTimesView:InitGenerate__3(Root, data)
  94. --[[
  95. UIAnimator/Alpha
  96. --]]
  97. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.AnyBtn = tmp
  102. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  103. end
  104. ---@private
  105. function UIBuyTimesView:InitGenerate__4(Root, data)
  106. --[[
  107. UIAnimator/Window
  108. --]]
  109. local tmp = Root:Find("UIAnimator/Window").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.window = tmp
  114. end
  115. ---@private
  116. function UIBuyTimesView:InitGenerate__5(Root, data)
  117. --[[
  118. UIAnimator/Window/Bg/CloseBox/BtnClose
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.closeBtn = tmp
  125. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  126. end
  127. ---@private
  128. function UIBuyTimesView:InitGenerate__6(Root, data)
  129. --[[
  130. UIAnimator/Window/Bg/Center/Bg/Text/Times/Number
  131. --]]
  132. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/Times/Number").gameObject
  133. if tolua.getpeer(tmp) == nil then
  134. tolua.setpeer(tmp, {})
  135. end
  136. self.number = tmp
  137. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  138. end
  139. ---@private
  140. function UIBuyTimesView:InitGenerate__7(Root, data)
  141. --[[
  142. UIAnimator/Window/Bg/Center/Bg/Text/Times/LeftTimes
  143. --]]
  144. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/Times/LeftTimes").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.leftTimesText = tmp
  149. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  150. end
  151. ---@private
  152. function UIBuyTimesView:InitGenerate__8(Root, data)
  153. --[[
  154. UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/Slider
  155. --]]
  156. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/Slider").gameObject
  157. if tolua.getpeer(tmp) == nil then
  158. tolua.setpeer(tmp, {})
  159. end
  160. self.slider = tmp
  161. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  162. end
  163. ---@private
  164. function UIBuyTimesView:InitGenerate__9(Root, data)
  165. --[[
  166. UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/BtnMinus
  167. --]]
  168. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/BtnMinus").gameObject
  169. if tolua.getpeer(tmp) == nil then
  170. tolua.setpeer(tmp, {})
  171. end
  172. self.btnMinus = tmp
  173. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  174. end
  175. ---@private
  176. function UIBuyTimesView:InitGenerate__10(Root, data)
  177. --[[
  178. UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/BtnPlus
  179. --]]
  180. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/QtyBox/BtnPlus").gameObject
  181. if tolua.getpeer(tmp) == nil then
  182. tolua.setpeer(tmp, {})
  183. end
  184. self.btnPlus = tmp
  185. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  186. end
  187. ---@private
  188. function UIBuyTimesView:InitGenerate__11(Root, data)
  189. --[[
  190. UIAnimator/Window/Bg/Bottom/Cost/Cost
  191. --]]
  192. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/Cost/Cost").gameObject
  193. if tolua.getpeer(tmp) == nil then
  194. tolua.setpeer(tmp, {})
  195. end
  196. self.costText = tmp
  197. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  198. end
  199. ---@private
  200. function UIBuyTimesView:InitGenerate__12(Root, data)
  201. --[[
  202. UIAnimator/Window/Bg/Bottom/BuyBtn
  203. --]]
  204. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/BuyBtn").gameObject
  205. if tolua.getpeer(tmp) == nil then
  206. tolua.setpeer(tmp, {})
  207. end
  208. self.buyBtn = tmp
  209. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  210. end
  211. ---@private
  212. function UIBuyTimesView:GenerateDestroy()
  213. if tolua.getpeer(self.uIAnimator) ~= nil then
  214. tolua.setpeer(self.uIAnimator, nil)
  215. end
  216. self.uIAnimator = nil
  217. if tolua.getpeer(self.AnyBtn) ~= nil then
  218. tolua.setpeer(self.AnyBtn, nil)
  219. end
  220. self.AnyBtn = nil
  221. if tolua.getpeer(self.window) ~= nil then
  222. tolua.setpeer(self.window, nil)
  223. end
  224. self.window = nil
  225. if tolua.getpeer(self.closeBtn) ~= nil then
  226. tolua.setpeer(self.closeBtn, nil)
  227. end
  228. self.closeBtn = nil
  229. if tolua.getpeer(self.number) ~= nil then
  230. tolua.setpeer(self.number, nil)
  231. end
  232. self.number = nil
  233. if tolua.getpeer(self.leftTimesText) ~= nil then
  234. tolua.setpeer(self.leftTimesText, nil)
  235. end
  236. self.leftTimesText = nil
  237. if tolua.getpeer(self.slider) ~= nil then
  238. tolua.setpeer(self.slider, nil)
  239. end
  240. self.slider = nil
  241. if tolua.getpeer(self.btnMinus) ~= nil then
  242. tolua.setpeer(self.btnMinus, nil)
  243. end
  244. self.btnMinus = nil
  245. if tolua.getpeer(self.btnPlus) ~= nil then
  246. tolua.setpeer(self.btnPlus, nil)
  247. end
  248. self.btnPlus = nil
  249. if tolua.getpeer(self.costText) ~= nil then
  250. tolua.setpeer(self.costText, nil)
  251. end
  252. self.costText = nil
  253. if tolua.getpeer(self.buyBtn) ~= nil then
  254. tolua.setpeer(self.buyBtn, nil)
  255. end
  256. self.buyBtn = nil
  257. self.transform = nil
  258. self.gameObject = nil
  259. self.inited = false
  260. end
  261. return UIBuyTimesView