UISkillExpCostView_Generate.lua 6.3 KB

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