UICardProduceNoticeView_Generate.lua 6.7 KB

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