UIChipProduceNoticeView_Generate.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. ---@class UIChipProduceNotice__Generate_btnCancle
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIChipProduceNotice__Generate_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UIChipProduceNotice__Generate_btnProduce
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIChipProduceNotice__Generate_desTxt
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public uILocalizeScript UILocalizeScript
  13. ---@class UIChipProduceNotice__Generate_dscBox_notice
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class UIChipProduceNotice__Generate_dscBox
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public notice UIChipProduceNotice__Generate_dscBox_notice
  19. ---@class UIChipProduceNotice__Generate_btnClose
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIChipProduceNotice__Generate_window
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public animator UnityEngine.Animator
  25. ---@class UIChipProduceNotice__Generate_alpha
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIChipProduceNotice__Generate
  29. ---@field private gameObject UnityEngine.GameObject
  30. ---@field private transform UnityEngine.Transform
  31. ---@field private alpha UIChipProduceNotice__Generate_alpha
  32. ---@field private window UIChipProduceNotice__Generate_window
  33. ---@field private btnClose UIChipProduceNotice__Generate_btnClose
  34. ---@field private dscBox UIChipProduceNotice__Generate_dscBox
  35. ---@field private dscTxt UnityEngine.GameObject
  36. ---@field private desTxt UIChipProduceNotice__Generate_desTxt
  37. ---@field private btnBox UnityEngine.GameObject
  38. ---@field private btnProduce UIChipProduceNotice__Generate_btnProduce
  39. ---@field private text UIChipProduceNotice__Generate_text
  40. ---@field private btnCancle UIChipProduceNotice__Generate_btnCancle
  41. local UIChipProduceNoticeView = class("UIChipProduceNoticeView", require("UIViewBase"))
  42. function UIChipProduceNoticeView:ctor()
  43. end
  44. ---@private
  45. function UIChipProduceNoticeView:SetActive(result)
  46. self.gameObject:SetActive(result)
  47. end
  48. ---@private
  49. function UIChipProduceNoticeView: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 UIChipProduceNoticeView:InitGenerate__1(Root, data)
  70. --[[
  71. Alpha
  72. --]]
  73. local tmp = Root:Find("Alpha").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.alpha = tmp
  78. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  79. end
  80. ---@private
  81. function UIChipProduceNoticeView:InitGenerate__2(Root, data)
  82. --[[
  83. Window
  84. --]]
  85. local tmp = Root:Find("Window").gameObject
  86. if tolua.getpeer(tmp) == nil then
  87. tolua.setpeer(tmp, {})
  88. end
  89. self.window = tmp
  90. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  91. tmp.animator.logWarnings = false
  92. end
  93. ---@private
  94. function UIChipProduceNoticeView:InitGenerate__3(Root, data)
  95. --[[
  96. Window/Bg/BtnClose
  97. --]]
  98. local tmp = Root:Find("Window/Bg/BtnClose").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.btnClose = tmp
  103. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  104. end
  105. ---@private
  106. function UIChipProduceNoticeView:InitGenerate__4(Root, data)
  107. --[[
  108. Window/Bg/DscBox
  109. --]]
  110. local tmp = Root:Find("Window/Bg/DscBox").gameObject
  111. if tolua.getpeer(tmp) == nil then
  112. tolua.setpeer(tmp, {})
  113. end
  114. self.dscBox = tmp
  115. end
  116. ---@private
  117. function UIChipProduceNoticeView:InitGenerate__5(Root, data)
  118. --[[
  119. Window/Bg/DscBox/DesTxt
  120. --]]
  121. local tmp = Root:Find("Window/Bg/DscBox/DesTxt").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.dscBox.notice = tmp
  126. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  127. end
  128. ---@private
  129. function UIChipProduceNoticeView:InitGenerate__6(Root, data)
  130. --[[
  131. Window/Bg/DscTxt
  132. --]]
  133. local tmp = Root:Find("Window/Bg/DscTxt").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.dscTxt = tmp
  138. end
  139. ---@private
  140. function UIChipProduceNoticeView:InitGenerate__7(Root, data)
  141. --[[
  142. Window/Bg/DscTxt/DesTxt
  143. --]]
  144. local tmp = Root:Find("Window/Bg/DscTxt/DesTxt").gameObject
  145. if tolua.getpeer(tmp) == nil then
  146. tolua.setpeer(tmp, {})
  147. end
  148. self.desTxt = tmp
  149. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  150. end
  151. ---@private
  152. function UIChipProduceNoticeView:InitGenerate__8(Root, data)
  153. --[[
  154. Window/Bg/BtnBox
  155. --]]
  156. local tmp = Root:Find("Window/Bg/BtnBox").gameObject
  157. if tolua.getpeer(tmp) == nil then
  158. tolua.setpeer(tmp, {})
  159. end
  160. self.btnBox = tmp
  161. end
  162. ---@private
  163. function UIChipProduceNoticeView:InitGenerate__9(Root, data)
  164. --[[
  165. Window/Bg/BtnBox/BtnProduce
  166. --]]
  167. local tmp = Root:Find("Window/Bg/BtnBox/BtnProduce").gameObject
  168. if tolua.getpeer(tmp) == nil then
  169. tolua.setpeer(tmp, {})
  170. end
  171. self.btnProduce = tmp
  172. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  173. end
  174. ---@private
  175. function UIChipProduceNoticeView:InitGenerate__10(Root, data)
  176. --[[
  177. Window/Bg/BtnBox/BtnProduce/Text
  178. --]]
  179. local tmp = Root:Find("Window/Bg/BtnBox/BtnProduce/Text").gameObject
  180. if tolua.getpeer(tmp) == nil then
  181. tolua.setpeer(tmp, {})
  182. end
  183. self.text = tmp
  184. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  185. end
  186. ---@private
  187. function UIChipProduceNoticeView:InitGenerate__11(Root, data)
  188. --[[
  189. Window/Bg/BtnBox/BtnCancle
  190. --]]
  191. local tmp = Root:Find("Window/Bg/BtnBox/BtnCancle").gameObject
  192. if tolua.getpeer(tmp) == nil then
  193. tolua.setpeer(tmp, {})
  194. end
  195. self.btnCancle = tmp
  196. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  197. end
  198. ---@private
  199. function UIChipProduceNoticeView:GenerateDestroy()
  200. if tolua.getpeer(self.dscBox.notice) ~= nil then
  201. tolua.setpeer(self.dscBox.notice, nil)
  202. end
  203. if tolua.getpeer(self.alpha) ~= nil then
  204. tolua.setpeer(self.alpha, nil)
  205. end
  206. self.alpha = nil
  207. if tolua.getpeer(self.window) ~= nil then
  208. tolua.setpeer(self.window, nil)
  209. end
  210. self.window = nil
  211. if tolua.getpeer(self.btnClose) ~= nil then
  212. tolua.setpeer(self.btnClose, nil)
  213. end
  214. self.btnClose = nil
  215. if tolua.getpeer(self.dscBox) ~= nil then
  216. tolua.setpeer(self.dscBox, nil)
  217. end
  218. self.dscBox = nil
  219. if tolua.getpeer(self.dscTxt) ~= nil then
  220. tolua.setpeer(self.dscTxt, nil)
  221. end
  222. self.dscTxt = nil
  223. if tolua.getpeer(self.desTxt) ~= nil then
  224. tolua.setpeer(self.desTxt, nil)
  225. end
  226. self.desTxt = nil
  227. if tolua.getpeer(self.btnBox) ~= nil then
  228. tolua.setpeer(self.btnBox, nil)
  229. end
  230. self.btnBox = nil
  231. if tolua.getpeer(self.btnProduce) ~= nil then
  232. tolua.setpeer(self.btnProduce, nil)
  233. end
  234. self.btnProduce = nil
  235. if tolua.getpeer(self.text) ~= nil then
  236. tolua.setpeer(self.text, nil)
  237. end
  238. self.text = nil
  239. if tolua.getpeer(self.btnCancle) ~= nil then
  240. tolua.setpeer(self.btnCancle, nil)
  241. end
  242. self.btnCancle = nil
  243. self.transform = nil
  244. self.gameObject = nil
  245. self.inited = false
  246. end
  247. return UIChipProduceNoticeView