UIDojoBuyTimesView_Generate.lua 6.5 KB

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