UIDojoBuyTimesView_Generate.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 costText UIDojoBuyTimes__Generate_costText
  27. ---@field private title UnityEngine.GameObject
  28. ---@field private leftTimesText UIDojoBuyTimes__Generate_leftTimesText
  29. ---@field private buyBtn UIDojoBuyTimes__Generate_buyBtn
  30. local UIDojoBuyTimesView = class("UIDojoBuyTimesView", require("UIViewBase"))
  31. function UIDojoBuyTimesView:ctor()
  32. end
  33. ---@private
  34. function UIDojoBuyTimesView:SetActive(result)
  35. self.gameObject:SetActive(result)
  36. end
  37. ---@private
  38. function UIDojoBuyTimesView:InitGenerate(Root, data)
  39. self.transform = Root
  40. self.inited = true
  41. if self.super.Init then
  42. self.super.Init(self)
  43. end
  44. local tmp
  45. self:InitGenerate__1(Root,data)
  46. self:InitGenerate__2(Root,data)
  47. self:InitGenerate__3(Root,data)
  48. self:InitGenerate__4(Root,data)
  49. self:InitGenerate__5(Root,data)
  50. self:InitGenerate__6(Root,data)
  51. self:InitGenerate__7(Root,data)
  52. self:InitGenerate__8(Root,data)
  53. self:InitGenerate__9(Root,data)
  54. end
  55. ---@private
  56. function UIDojoBuyTimesView:InitGenerate__1(Root, data)
  57. --[[
  58. Root
  59. --]]
  60. end
  61. ---@private
  62. function UIDojoBuyTimesView:InitGenerate__2(Root, data)
  63. --[[
  64. UIAnimator
  65. --]]
  66. local tmp = Root:Find("UIAnimator").gameObject
  67. if tolua.getpeer(tmp) == nil then
  68. tolua.setpeer(tmp, {})
  69. end
  70. self.uIAnimator = tmp
  71. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  72. tmp.animator.logWarnings = false
  73. end
  74. ---@private
  75. function UIDojoBuyTimesView:InitGenerate__3(Root, data)
  76. --[[
  77. UIAnimator/Alpha
  78. --]]
  79. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  80. if tolua.getpeer(tmp) == nil then
  81. tolua.setpeer(tmp, {})
  82. end
  83. self.AnyBtn = tmp
  84. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  85. end
  86. ---@private
  87. function UIDojoBuyTimesView:InitGenerate__4(Root, data)
  88. --[[
  89. UIAnimator/Window
  90. --]]
  91. local tmp = Root:Find("UIAnimator/Window").gameObject
  92. if tolua.getpeer(tmp) == nil then
  93. tolua.setpeer(tmp, {})
  94. end
  95. self.window = tmp
  96. end
  97. ---@private
  98. function UIDojoBuyTimesView:InitGenerate__5(Root, data)
  99. --[[
  100. UIAnimator/Window/Bg/CloseBox/BtnClose
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.closeBtn = tmp
  107. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  108. end
  109. ---@private
  110. function UIDojoBuyTimesView:InitGenerate__6(Root, data)
  111. --[[
  112. UIAnimator/Window/Bg/Center/Bg/Text/Cost
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Window/Bg/Center/Bg/Text/Cost").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.costText = tmp
  119. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  120. end
  121. ---@private
  122. function UIDojoBuyTimesView:InitGenerate__7(Root, data)
  123. --[[
  124. UIAnimator/Window/Bg/Bottom/Title
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/Title").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.title = tmp
  131. end
  132. ---@private
  133. function UIDojoBuyTimesView:InitGenerate__8(Root, data)
  134. --[[
  135. UIAnimator/Window/Bg/Bottom/Title/LeftTimes
  136. --]]
  137. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/Title/LeftTimes").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.leftTimesText = tmp
  142. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  143. end
  144. ---@private
  145. function UIDojoBuyTimesView:InitGenerate__9(Root, data)
  146. --[[
  147. UIAnimator/Window/Bg/Bottom/BuyBtn
  148. --]]
  149. local tmp = Root:Find("UIAnimator/Window/Bg/Bottom/BuyBtn").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.buyBtn = tmp
  154. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  155. end
  156. ---@private
  157. function UIDojoBuyTimesView:GenerateDestroy()
  158. if tolua.getpeer(self.uIAnimator) ~= nil then
  159. tolua.setpeer(self.uIAnimator, nil)
  160. end
  161. self.uIAnimator = nil
  162. if tolua.getpeer(self.AnyBtn) ~= nil then
  163. tolua.setpeer(self.AnyBtn, nil)
  164. end
  165. self.AnyBtn = nil
  166. if tolua.getpeer(self.window) ~= nil then
  167. tolua.setpeer(self.window, nil)
  168. end
  169. self.window = nil
  170. if tolua.getpeer(self.closeBtn) ~= nil then
  171. tolua.setpeer(self.closeBtn, nil)
  172. end
  173. self.closeBtn = nil
  174. if tolua.getpeer(self.costText) ~= nil then
  175. tolua.setpeer(self.costText, nil)
  176. end
  177. self.costText = nil
  178. if tolua.getpeer(self.title) ~= nil then
  179. tolua.setpeer(self.title, nil)
  180. end
  181. self.title = nil
  182. if tolua.getpeer(self.leftTimesText) ~= nil then
  183. tolua.setpeer(self.leftTimesText, nil)
  184. end
  185. self.leftTimesText = nil
  186. if tolua.getpeer(self.buyBtn) ~= nil then
  187. tolua.setpeer(self.buyBtn, nil)
  188. end
  189. self.buyBtn = nil
  190. self.transform = nil
  191. self.gameObject = nil
  192. self.inited = false
  193. end
  194. return UIDojoBuyTimesView