UIDojoBattleFailView_Generate.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. ---@class UIDojoBattleFail__Generate_deltaScoreText
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIDojoBattleFail__Generate_newScoreText
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIDojoBattleFail__Generate_oldScoreText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIDojoBattleFail__Generate_CruiseVipTag_number
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text TMPro.TextMeshProUGUI
  13. ---@class UIDojoBattleFail__Generate_CruiseVipTag_icon
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public image UnityEngine.UI.Image
  16. ---@class UIDojoBattleFail__Generate_CruiseVipTag
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public icon UIDojoBattleFail__Generate_CruiseVipTag_icon
  19. ---@field public number UIDojoBattleFail__Generate_CruiseVipTag_number
  20. ---@class UIDojoBattleFail__Generate_CruiseLbl
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public text UnityEngine.UI.Text
  23. ---@class UIDojoBattleFail__Generate_ZenyLbl
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public text UnityEngine.UI.Text
  26. ---@class UIDojoBattleFail__Generate_AnyBtn
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UIDojoBattleFail__Generate
  30. ---@field private gameObject UnityEngine.GameObject
  31. ---@field private transform UnityEngine.Transform
  32. ---@field private popWinAnim UnityEngine.GameObject
  33. ---@field private AnyBtn UIDojoBattleFail__Generate_AnyBtn
  34. ---@field private window UnityEngine.GameObject
  35. ---@field private ZenyLbl UIDojoBattleFail__Generate_ZenyLbl
  36. ---@field private CruiseLbl UIDojoBattleFail__Generate_CruiseLbl
  37. ---@field private CruiseVipTag UIDojoBattleFail__Generate_CruiseVipTag
  38. ---@field private oldScoreText UIDojoBattleFail__Generate_oldScoreText
  39. ---@field private newScoreText UIDojoBattleFail__Generate_newScoreText
  40. ---@field private deltaScoreText UIDojoBattleFail__Generate_deltaScoreText
  41. local UIDojoBattleFailView = class("UIDojoBattleFailView", require("UIViewBase"))
  42. function UIDojoBattleFailView:ctor()
  43. end
  44. ---@private
  45. function UIDojoBattleFailView:SetActive(result)
  46. self.gameObject:SetActive(result)
  47. end
  48. ---@private
  49. function UIDojoBattleFailView:InitGenerate(Root, data)
  50. self.transform = Root
  51. self.inited = true
  52. if self.super.Init then
  53. self.super.Init(self)
  54. end
  55. local tmp
  56. self:InitGenerate__1(Root,data)
  57. self:InitGenerate__2(Root,data)
  58. self:InitGenerate__3(Root,data)
  59. self:InitGenerate__4(Root,data)
  60. self:InitGenerate__5(Root,data)
  61. self:InitGenerate__6(Root,data)
  62. self:InitGenerate__7(Root,data)
  63. self:InitGenerate__8(Root,data)
  64. self:InitGenerate__9(Root,data)
  65. self:InitGenerate__10(Root,data)
  66. self:InitGenerate__11(Root,data)
  67. end
  68. ---@private
  69. function UIDojoBattleFailView:InitGenerate__1(Root, data)
  70. --[[
  71. PopWinAnim
  72. --]]
  73. local tmp = Root:Find("PopWinAnim").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.popWinAnim = tmp
  78. end
  79. ---@private
  80. function UIDojoBattleFailView:InitGenerate__2(Root, data)
  81. --[[
  82. PopWinAnim/Alpha
  83. --]]
  84. local tmp = Root:Find("PopWinAnim/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 UIDojoBattleFailView:InitGenerate__3(Root, data)
  93. --[[
  94. PopWinAnim/Window
  95. --]]
  96. local tmp = Root:Find("PopWinAnim/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 UIDojoBattleFailView:InitGenerate__4(Root, data)
  104. --[[
  105. PopWinAnim/Window/BG/ReceiveRes/Zeny/Text
  106. --]]
  107. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Zeny/Text").gameObject
  108. if tolua.getpeer(tmp) == nil then
  109. tolua.setpeer(tmp, {})
  110. end
  111. self.ZenyLbl = tmp
  112. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  113. end
  114. ---@private
  115. function UIDojoBattleFailView:InitGenerate__5(Root, data)
  116. --[[
  117. PopWinAnim/Window/BG/ReceiveRes/Cruise/Text
  118. --]]
  119. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/Text").gameObject
  120. if tolua.getpeer(tmp) == nil then
  121. tolua.setpeer(tmp, {})
  122. end
  123. self.CruiseLbl = tmp
  124. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  125. end
  126. ---@private
  127. function UIDojoBattleFailView:InitGenerate__6(Root, data)
  128. --[[
  129. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag
  130. --]]
  131. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.CruiseVipTag = tmp
  136. end
  137. ---@private
  138. function UIDojoBattleFailView:InitGenerate__7(Root, data)
  139. --[[
  140. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Icon
  141. --]]
  142. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Icon").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.CruiseVipTag.icon = tmp
  147. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  148. end
  149. ---@private
  150. function UIDojoBattleFailView:InitGenerate__8(Root, data)
  151. --[[
  152. PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Number
  153. --]]
  154. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Cruise/VipTag/Number").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.CruiseVipTag.number = tmp
  159. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  160. end
  161. ---@private
  162. function UIDojoBattleFailView:InitGenerate__9(Root, data)
  163. --[[
  164. PopWinAnim/Window/BG/ReceiveRes/Score/Val
  165. --]]
  166. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/Val").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.oldScoreText = tmp
  171. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  172. end
  173. ---@private
  174. function UIDojoBattleFailView:InitGenerate__10(Root, data)
  175. --[[
  176. PopWinAnim/Window/BG/ReceiveRes/Score/NewVal
  177. --]]
  178. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/NewVal").gameObject
  179. if tolua.getpeer(tmp) == nil then
  180. tolua.setpeer(tmp, {})
  181. end
  182. self.newScoreText = tmp
  183. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  184. end
  185. ---@private
  186. function UIDojoBattleFailView:InitGenerate__11(Root, data)
  187. --[[
  188. PopWinAnim/Window/BG/ReceiveRes/Score/AddVal
  189. --]]
  190. local tmp = Root:Find("PopWinAnim/Window/BG/ReceiveRes/Score/AddVal").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.deltaScoreText = tmp
  195. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  196. end
  197. ---@private
  198. function UIDojoBattleFailView:GenerateDestroy()
  199. if tolua.getpeer(self.CruiseVipTag.number) ~= nil then
  200. tolua.setpeer(self.CruiseVipTag.number, nil)
  201. end
  202. if tolua.getpeer(self.CruiseVipTag.icon) ~= nil then
  203. tolua.setpeer(self.CruiseVipTag.icon, nil)
  204. end
  205. if tolua.getpeer(self.popWinAnim) ~= nil then
  206. tolua.setpeer(self.popWinAnim, nil)
  207. end
  208. self.popWinAnim = nil
  209. if tolua.getpeer(self.AnyBtn) ~= nil then
  210. tolua.setpeer(self.AnyBtn, nil)
  211. end
  212. self.AnyBtn = nil
  213. if tolua.getpeer(self.window) ~= nil then
  214. tolua.setpeer(self.window, nil)
  215. end
  216. self.window = nil
  217. if tolua.getpeer(self.ZenyLbl) ~= nil then
  218. tolua.setpeer(self.ZenyLbl, nil)
  219. end
  220. self.ZenyLbl = nil
  221. if tolua.getpeer(self.CruiseLbl) ~= nil then
  222. tolua.setpeer(self.CruiseLbl, nil)
  223. end
  224. self.CruiseLbl = nil
  225. if tolua.getpeer(self.CruiseVipTag) ~= nil then
  226. tolua.setpeer(self.CruiseVipTag, nil)
  227. end
  228. self.CruiseVipTag = nil
  229. if tolua.getpeer(self.oldScoreText) ~= nil then
  230. tolua.setpeer(self.oldScoreText, nil)
  231. end
  232. self.oldScoreText = nil
  233. if tolua.getpeer(self.newScoreText) ~= nil then
  234. tolua.setpeer(self.newScoreText, nil)
  235. end
  236. self.newScoreText = nil
  237. if tolua.getpeer(self.deltaScoreText) ~= nil then
  238. tolua.setpeer(self.deltaScoreText, nil)
  239. end
  240. self.deltaScoreText = nil
  241. self.transform = nil
  242. self.gameObject = nil
  243. self.inited = false
  244. end
  245. return UIDojoBattleFailView