UIVoyageRobberyView_Generate.lua 15 KB

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