UIVoyageRobberyView_Generate.lua 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. ---@class UIVoyageRobbery__Generate_robNum
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIVoyageRobbery__Generate_btnChallenge
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIVoyageRobbery__Generate_btnCancleText
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UIVoyageRobbery__Generate_btnCancle
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIVoyageRobbery__Generate_timerTxt
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UIVoyageRobbery__Generate_currency3_text
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class UIVoyageRobbery__Generate_currency3_icon
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public image UnityEngine.UI.Image
  22. ---@class UIVoyageRobbery__Generate_currency3
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public icon UIVoyageRobbery__Generate_currency3_icon
  25. ---@field public text UIVoyageRobbery__Generate_currency3_text
  26. ---@class UIVoyageRobbery__Generate_currency2_text
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public text UnityEngine.UI.Text
  29. ---@class UIVoyageRobbery__Generate_currency2_icon
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public image UnityEngine.UI.Image
  32. ---@class UIVoyageRobbery__Generate_currency2
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public icon UIVoyageRobbery__Generate_currency2_icon
  35. ---@field public text UIVoyageRobbery__Generate_currency2_text
  36. ---@class UIVoyageRobbery__Generate_currency1_text
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public text UnityEngine.UI.Text
  39. ---@class UIVoyageRobbery__Generate_currency1_icon
  40. ---@field public gameObject UnityEngine.GameObject
  41. ---@field public image UnityEngine.UI.Image
  42. ---@class UIVoyageRobbery__Generate_currency1
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public icon UIVoyageRobbery__Generate_currency1_icon
  45. ---@field public text UIVoyageRobbery__Generate_currency1_text
  46. ---@class UIVoyageRobbery__Generate_nameTxt
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public text UnityEngine.UI.Text
  49. ---@class UIVoyageRobbery__Generate_beRobNum
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public text UnityEngine.UI.Text
  52. ---@class UIVoyageRobbery__Generate_btnClose
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public button UnityEngine.UI.Button
  55. ---@class UIVoyageRobbery__Generate_AnyBtn
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public button UnityEngine.UI.Button
  58. ---@class UIVoyageRobbery__Generate
  59. ---@field private gameObject UnityEngine.GameObject
  60. ---@field private transform UnityEngine.Transform
  61. ---@field private AnyBtn UIVoyageRobbery__Generate_AnyBtn
  62. ---@field private btnClose UIVoyageRobbery__Generate_btnClose
  63. ---@field private beRobNum UIVoyageRobbery__Generate_beRobNum
  64. ---@field private nameSp UnityEngine.GameObject
  65. ---@field private nameTxt UIVoyageRobbery__Generate_nameTxt
  66. ---@field private currency1 UIVoyageRobbery__Generate_currency1
  67. ---@field private currency2 UIVoyageRobbery__Generate_currency2
  68. ---@field private currency3 UIVoyageRobbery__Generate_currency3
  69. ---@field private timer UnityEngine.GameObject
  70. ---@field private timerTxt UIVoyageRobbery__Generate_timerTxt
  71. ---@field private box UnityEngine.GameObject
  72. ---@field private btnCancle UIVoyageRobbery__Generate_btnCancle
  73. ---@field private btnCancleText UIVoyageRobbery__Generate_btnCancleText
  74. ---@field private btnChallenge UIVoyageRobbery__Generate_btnChallenge
  75. ---@field private robNum UIVoyageRobbery__Generate_robNum
  76. local UIVoyageRobberyView = class("UIVoyageRobberyView", require("UIViewBase"))
  77. function UIVoyageRobberyView:ctor()
  78. end
  79. ---@private
  80. function UIVoyageRobberyView:SetActive(result)
  81. self.gameObject:SetActive(result)
  82. end
  83. ---@private
  84. function UIVoyageRobberyView:InitGenerate(Root, data)
  85. self.transform = Root
  86. self.inited = true
  87. if self.super.Init then
  88. self.super.Init(self)
  89. end
  90. local tmp
  91. self:InitGenerate__1(Root,data)
  92. self:InitGenerate__2(Root,data)
  93. self:InitGenerate__3(Root,data)
  94. self:InitGenerate__4(Root,data)
  95. self:InitGenerate__5(Root,data)
  96. self:InitGenerate__6(Root,data)
  97. self:InitGenerate__7(Root,data)
  98. self:InitGenerate__8(Root,data)
  99. self:InitGenerate__9(Root,data)
  100. self:InitGenerate__10(Root,data)
  101. self:InitGenerate__11(Root,data)
  102. self:InitGenerate__12(Root,data)
  103. self:InitGenerate__13(Root,data)
  104. self:InitGenerate__14(Root,data)
  105. self:InitGenerate__15(Root,data)
  106. self:InitGenerate__16(Root,data)
  107. self:InitGenerate__17(Root,data)
  108. self:InitGenerate__18(Root,data)
  109. self:InitGenerate__19(Root,data)
  110. self:InitGenerate__20(Root,data)
  111. self:InitGenerate__21(Root,data)
  112. end
  113. ---@private
  114. function UIVoyageRobberyView:InitGenerate__1(Root, data)
  115. --[[
  116. UIAnimator/Alpha
  117. --]]
  118. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  119. if tolua.getpeer(tmp) == nil then
  120. tolua.setpeer(tmp, {})
  121. end
  122. self.AnyBtn = tmp
  123. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  124. end
  125. ---@private
  126. function UIVoyageRobberyView:InitGenerate__2(Root, data)
  127. --[[
  128. UIAnimator/Window/BG/BtnClose
  129. --]]
  130. local tmp = Root:Find("UIAnimator/Window/BG/BtnClose").gameObject
  131. if tolua.getpeer(tmp) == nil then
  132. tolua.setpeer(tmp, {})
  133. end
  134. self.btnClose = tmp
  135. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  136. end
  137. ---@private
  138. function UIVoyageRobberyView:InitGenerate__3(Root, data)
  139. --[[
  140. UIAnimator/Window/BG/Content/Tips/BeRobNum
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/BG/Content/Tips/BeRobNum").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.beRobNum = tmp
  147. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  148. end
  149. ---@private
  150. function UIVoyageRobberyView:InitGenerate__4(Root, data)
  151. --[[
  152. UIAnimator/Window/BG/Content/ShipHolder/NameSp
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/BG/Content/ShipHolder/NameSp").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.nameSp = tmp
  159. end
  160. ---@private
  161. function UIVoyageRobberyView:InitGenerate__5(Root, data)
  162. --[[
  163. UIAnimator/Window/BG/Content/ShipHolder/NameSp/NameTxt
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window/BG/Content/ShipHolder/NameSp/NameTxt").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.nameTxt = tmp
  170. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  171. end
  172. ---@private
  173. function UIVoyageRobberyView:InitGenerate__6(Root, data)
  174. --[[
  175. UIAnimator/Window/BG/Content/Profit/Currency1
  176. --]]
  177. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency1").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.currency1 = tmp
  182. end
  183. ---@private
  184. function UIVoyageRobberyView:InitGenerate__7(Root, data)
  185. --[[
  186. UIAnimator/Window/BG/Content/Profit/Currency1/Icon
  187. --]]
  188. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency1/Icon").gameObject
  189. if tolua.getpeer(tmp) == nil then
  190. tolua.setpeer(tmp, {})
  191. end
  192. self.currency1.icon = tmp
  193. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  194. end
  195. ---@private
  196. function UIVoyageRobberyView:InitGenerate__8(Root, data)
  197. --[[
  198. UIAnimator/Window/BG/Content/Profit/Currency1/Text
  199. --]]
  200. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency1/Text").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.currency1.text = tmp
  205. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  206. end
  207. ---@private
  208. function UIVoyageRobberyView:InitGenerate__9(Root, data)
  209. --[[
  210. UIAnimator/Window/BG/Content/Profit/Currency2
  211. --]]
  212. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency2").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.currency2 = tmp
  217. end
  218. ---@private
  219. function UIVoyageRobberyView:InitGenerate__10(Root, data)
  220. --[[
  221. UIAnimator/Window/BG/Content/Profit/Currency2/Icon
  222. --]]
  223. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency2/Icon").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.currency2.icon = tmp
  228. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  229. end
  230. ---@private
  231. function UIVoyageRobberyView:InitGenerate__11(Root, data)
  232. --[[
  233. UIAnimator/Window/BG/Content/Profit/Currency2/Text
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency2/Text").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.currency2.text = tmp
  240. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  241. end
  242. ---@private
  243. function UIVoyageRobberyView:InitGenerate__12(Root, data)
  244. --[[
  245. UIAnimator/Window/BG/Content/Profit/Currency3
  246. --]]
  247. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency3").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.currency3 = tmp
  252. end
  253. ---@private
  254. function UIVoyageRobberyView:InitGenerate__13(Root, data)
  255. --[[
  256. UIAnimator/Window/BG/Content/Profit/Currency3/Icon
  257. --]]
  258. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency3/Icon").gameObject
  259. if tolua.getpeer(tmp) == nil then
  260. tolua.setpeer(tmp, {})
  261. end
  262. self.currency3.icon = tmp
  263. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  264. end
  265. ---@private
  266. function UIVoyageRobberyView:InitGenerate__14(Root, data)
  267. --[[
  268. UIAnimator/Window/BG/Content/Profit/Currency3/Text
  269. --]]
  270. local tmp = Root:Find("UIAnimator/Window/BG/Content/Profit/Currency3/Text").gameObject
  271. if tolua.getpeer(tmp) == nil then
  272. tolua.setpeer(tmp, {})
  273. end
  274. self.currency3.text = tmp
  275. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  276. end
  277. ---@private
  278. function UIVoyageRobberyView:InitGenerate__15(Root, data)
  279. --[[
  280. UIAnimator/Window/BG/Content/Timer
  281. --]]
  282. local tmp = Root:Find("UIAnimator/Window/BG/Content/Timer").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.timer = tmp
  287. end
  288. ---@private
  289. function UIVoyageRobberyView:InitGenerate__16(Root, data)
  290. --[[
  291. UIAnimator/Window/BG/Content/Timer/TimerTxt
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/BG/Content/Timer/TimerTxt").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.timerTxt = tmp
  298. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  299. end
  300. ---@private
  301. function UIVoyageRobberyView:InitGenerate__17(Root, data)
  302. --[[
  303. UIAnimator/Window/BG/Box
  304. --]]
  305. local tmp = Root:Find("UIAnimator/Window/BG/Box").gameObject
  306. if tolua.getpeer(tmp) == nil then
  307. tolua.setpeer(tmp, {})
  308. end
  309. self.box = tmp
  310. end
  311. ---@private
  312. function UIVoyageRobberyView:InitGenerate__18(Root, data)
  313. --[[
  314. UIAnimator/Window/BG/Box/BtnCancle
  315. --]]
  316. local tmp = Root:Find("UIAnimator/Window/BG/Box/BtnCancle").gameObject
  317. if tolua.getpeer(tmp) == nil then
  318. tolua.setpeer(tmp, {})
  319. end
  320. self.btnCancle = tmp
  321. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  322. end
  323. ---@private
  324. function UIVoyageRobberyView:InitGenerate__19(Root, data)
  325. --[[
  326. UIAnimator/Window/BG/Box/BtnCancle/Text
  327. --]]
  328. local tmp = Root:Find("UIAnimator/Window/BG/Box/BtnCancle/Text").gameObject
  329. if tolua.getpeer(tmp) == nil then
  330. tolua.setpeer(tmp, {})
  331. end
  332. self.btnCancleText = tmp
  333. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  334. end
  335. ---@private
  336. function UIVoyageRobberyView:InitGenerate__20(Root, data)
  337. --[[
  338. UIAnimator/Window/BG/Box/BtnChallenge
  339. --]]
  340. local tmp = Root:Find("UIAnimator/Window/BG/Box/BtnChallenge").gameObject
  341. if tolua.getpeer(tmp) == nil then
  342. tolua.setpeer(tmp, {})
  343. end
  344. self.btnChallenge = tmp
  345. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  346. end
  347. ---@private
  348. function UIVoyageRobberyView:InitGenerate__21(Root, data)
  349. --[[
  350. UIAnimator/Window/BG/Title/RobNum
  351. --]]
  352. local tmp = Root:Find("UIAnimator/Window/BG/Title/RobNum").gameObject
  353. if tolua.getpeer(tmp) == nil then
  354. tolua.setpeer(tmp, {})
  355. end
  356. self.robNum = tmp
  357. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  358. end
  359. ---@private
  360. function UIVoyageRobberyView:GenerateDestroy()
  361. if tolua.getpeer(self.currency3.text) ~= nil then
  362. tolua.setpeer(self.currency3.text, nil)
  363. end
  364. if tolua.getpeer(self.currency3.icon) ~= nil then
  365. tolua.setpeer(self.currency3.icon, nil)
  366. end
  367. if tolua.getpeer(self.currency2.text) ~= nil then
  368. tolua.setpeer(self.currency2.text, nil)
  369. end
  370. if tolua.getpeer(self.currency2.icon) ~= nil then
  371. tolua.setpeer(self.currency2.icon, nil)
  372. end
  373. if tolua.getpeer(self.currency1.text) ~= nil then
  374. tolua.setpeer(self.currency1.text, nil)
  375. end
  376. if tolua.getpeer(self.currency1.icon) ~= nil then
  377. tolua.setpeer(self.currency1.icon, nil)
  378. end
  379. if tolua.getpeer(self.AnyBtn) ~= nil then
  380. tolua.setpeer(self.AnyBtn, nil)
  381. end
  382. self.AnyBtn = nil
  383. if tolua.getpeer(self.btnClose) ~= nil then
  384. tolua.setpeer(self.btnClose, nil)
  385. end
  386. self.btnClose = nil
  387. if tolua.getpeer(self.beRobNum) ~= nil then
  388. tolua.setpeer(self.beRobNum, nil)
  389. end
  390. self.beRobNum = nil
  391. if tolua.getpeer(self.nameSp) ~= nil then
  392. tolua.setpeer(self.nameSp, nil)
  393. end
  394. self.nameSp = nil
  395. if tolua.getpeer(self.nameTxt) ~= nil then
  396. tolua.setpeer(self.nameTxt, nil)
  397. end
  398. self.nameTxt = nil
  399. if tolua.getpeer(self.currency1) ~= nil then
  400. tolua.setpeer(self.currency1, nil)
  401. end
  402. self.currency1 = nil
  403. if tolua.getpeer(self.currency2) ~= nil then
  404. tolua.setpeer(self.currency2, nil)
  405. end
  406. self.currency2 = nil
  407. if tolua.getpeer(self.currency3) ~= nil then
  408. tolua.setpeer(self.currency3, nil)
  409. end
  410. self.currency3 = nil
  411. if tolua.getpeer(self.timer) ~= nil then
  412. tolua.setpeer(self.timer, nil)
  413. end
  414. self.timer = nil
  415. if tolua.getpeer(self.timerTxt) ~= nil then
  416. tolua.setpeer(self.timerTxt, nil)
  417. end
  418. self.timerTxt = nil
  419. if tolua.getpeer(self.box) ~= nil then
  420. tolua.setpeer(self.box, nil)
  421. end
  422. self.box = nil
  423. if tolua.getpeer(self.btnCancle) ~= nil then
  424. tolua.setpeer(self.btnCancle, nil)
  425. end
  426. self.btnCancle = nil
  427. if tolua.getpeer(self.btnCancleText) ~= nil then
  428. tolua.setpeer(self.btnCancleText, nil)
  429. end
  430. self.btnCancleText = nil
  431. if tolua.getpeer(self.btnChallenge) ~= nil then
  432. tolua.setpeer(self.btnChallenge, nil)
  433. end
  434. self.btnChallenge = nil
  435. if tolua.getpeer(self.robNum) ~= nil then
  436. tolua.setpeer(self.robNum, nil)
  437. end
  438. self.robNum = nil
  439. self.transform = nil
  440. self.gameObject = nil
  441. self.inited = false
  442. end
  443. return UIVoyageRobberyView