UIGMView_Generate.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. ---@class UIGM__Generate_hideUIBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGM__Generate_dropdown
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public dropdown UnityEngine.UI.Dropdown
  7. ---@class UIGM__Generate_rollEffectBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIGM__Generate_forceGuideBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIGM__Generate_friendBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIGM__Generate_storyBtn
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIGM__Generate_userNameBtn
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIGM__Generate_newbieBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIGM__Generate_oneKeyGm
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public button UnityEngine.UI.Button
  28. ---@class UIGM__Generate_btnBack
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public button UnityEngine.UI.Button
  31. ---@class UIGM__Generate_send
  32. ---@field public gameObject UnityEngine.GameObject
  33. ---@field public button UnityEngine.UI.Button
  34. ---@class UIGM__Generate_inputField
  35. ---@field public gameObject UnityEngine.GameObject
  36. ---@field public inputField UnityEngine.UI.InputField
  37. ---@class UIGM__Generate_addFashion
  38. ---@field public gameObject UnityEngine.GameObject
  39. ---@field public button UnityEngine.UI.Button
  40. ---@class UIGM__Generate_addEquip
  41. ---@field public gameObject UnityEngine.GameObject
  42. ---@field public button UnityEngine.UI.Button
  43. ---@class UIGM__Generate_addPartnerExp
  44. ---@field public gameObject UnityEngine.GameObject
  45. ---@field public button UnityEngine.UI.Button
  46. ---@class UIGM__Generate_addHeroJobLv
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public button UnityEngine.UI.Button
  49. ---@class UIGM__Generate_addHeroLv
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public button UnityEngine.UI.Button
  52. ---@class UIGM__Generate_addGold
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public button UnityEngine.UI.Button
  55. ---@class UIGM__Generate
  56. ---@field private gameObject UnityEngine.GameObject
  57. ---@field private transform UnityEngine.Transform
  58. ---@field private addGold UIGM__Generate_addGold
  59. ---@field private addHeroLv UIGM__Generate_addHeroLv
  60. ---@field private addHeroJobLv UIGM__Generate_addHeroJobLv
  61. ---@field private addPartnerExp UIGM__Generate_addPartnerExp
  62. ---@field private addEquip UIGM__Generate_addEquip
  63. ---@field private addFashion UIGM__Generate_addFashion
  64. ---@field private inputField UIGM__Generate_inputField
  65. ---@field private send UIGM__Generate_send
  66. ---@field private btnBack UIGM__Generate_btnBack
  67. ---@field private oneKeyGm UIGM__Generate_oneKeyGm
  68. ---@field private newbieBtn UIGM__Generate_newbieBtn
  69. ---@field private userNameBtn UIGM__Generate_userNameBtn
  70. ---@field private storyBtn UIGM__Generate_storyBtn
  71. ---@field private friendBtn UIGM__Generate_friendBtn
  72. ---@field private forceGuideBtn UIGM__Generate_forceGuideBtn
  73. ---@field private rollEffectBtn UIGM__Generate_rollEffectBtn
  74. ---@field private dropdown UIGM__Generate_dropdown
  75. ---@field private hideUIBtn UIGM__Generate_hideUIBtn
  76. local UIGMView = class("UIGMView", require("UIViewBase"))
  77. function UIGMView:ctor()
  78. end
  79. ---@private
  80. function UIGMView:SetActive(result)
  81. self.gameObject:SetActive(result)
  82. end
  83. ---@private
  84. function UIGMView: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. end
  110. ---@private
  111. function UIGMView:InitGenerate__1(Root, data)
  112. --[[
  113. AddGold
  114. --]]
  115. local tmp = Root:Find("AddGold").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.addGold = tmp
  120. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  121. end
  122. ---@private
  123. function UIGMView:InitGenerate__2(Root, data)
  124. --[[
  125. AddHeroLv
  126. --]]
  127. local tmp = Root:Find("AddHeroLv").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.addHeroLv = tmp
  132. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  133. end
  134. ---@private
  135. function UIGMView:InitGenerate__3(Root, data)
  136. --[[
  137. AddHeroJobLv
  138. --]]
  139. local tmp = Root:Find("AddHeroJobLv").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.addHeroJobLv = tmp
  144. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  145. end
  146. ---@private
  147. function UIGMView:InitGenerate__4(Root, data)
  148. --[[
  149. AddPartnerExp
  150. --]]
  151. local tmp = Root:Find("AddPartnerExp").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.addPartnerExp = tmp
  156. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  157. end
  158. ---@private
  159. function UIGMView:InitGenerate__5(Root, data)
  160. --[[
  161. AddEquip
  162. --]]
  163. local tmp = Root:Find("AddEquip").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.addEquip = tmp
  168. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  169. end
  170. ---@private
  171. function UIGMView:InitGenerate__6(Root, data)
  172. --[[
  173. AddFashion
  174. --]]
  175. local tmp = Root:Find("AddFashion").gameObject
  176. if tolua.getpeer(tmp) == nil then
  177. tolua.setpeer(tmp, {})
  178. end
  179. self.addFashion = tmp
  180. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  181. end
  182. ---@private
  183. function UIGMView:InitGenerate__7(Root, data)
  184. --[[
  185. InputField
  186. --]]
  187. local tmp = Root:Find("InputField").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.inputField = tmp
  192. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  193. end
  194. ---@private
  195. function UIGMView:InitGenerate__8(Root, data)
  196. --[[
  197. Send
  198. --]]
  199. local tmp = Root:Find("Send").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.send = tmp
  204. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  205. end
  206. ---@private
  207. function UIGMView:InitGenerate__9(Root, data)
  208. --[[
  209. BtnBack
  210. --]]
  211. local tmp = Root:Find("BtnBack").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.btnBack = tmp
  216. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  217. end
  218. ---@private
  219. function UIGMView:InitGenerate__10(Root, data)
  220. --[[
  221. OneKeyGm
  222. --]]
  223. local tmp = Root:Find("OneKeyGm").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.oneKeyGm = tmp
  228. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  229. end
  230. ---@private
  231. function UIGMView:InitGenerate__11(Root, data)
  232. --[[
  233. NewbieBtn
  234. --]]
  235. local tmp = Root:Find("NewbieBtn").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.newbieBtn = tmp
  240. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  241. end
  242. ---@private
  243. function UIGMView:InitGenerate__12(Root, data)
  244. --[[
  245. UserNameBtn
  246. --]]
  247. local tmp = Root:Find("UserNameBtn").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.userNameBtn = tmp
  252. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  253. end
  254. ---@private
  255. function UIGMView:InitGenerate__13(Root, data)
  256. --[[
  257. StoryBtn
  258. --]]
  259. local tmp = Root:Find("StoryBtn").gameObject
  260. if tolua.getpeer(tmp) == nil then
  261. tolua.setpeer(tmp, {})
  262. end
  263. self.storyBtn = tmp
  264. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  265. end
  266. ---@private
  267. function UIGMView:InitGenerate__14(Root, data)
  268. --[[
  269. FriendBtn
  270. --]]
  271. local tmp = Root:Find("FriendBtn").gameObject
  272. if tolua.getpeer(tmp) == nil then
  273. tolua.setpeer(tmp, {})
  274. end
  275. self.friendBtn = tmp
  276. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  277. end
  278. ---@private
  279. function UIGMView:InitGenerate__15(Root, data)
  280. --[[
  281. ForceGuideBtn
  282. --]]
  283. local tmp = Root:Find("ForceGuideBtn").gameObject
  284. if tolua.getpeer(tmp) == nil then
  285. tolua.setpeer(tmp, {})
  286. end
  287. self.forceGuideBtn = tmp
  288. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  289. end
  290. ---@private
  291. function UIGMView:InitGenerate__16(Root, data)
  292. --[[
  293. RollEffectBtn
  294. --]]
  295. local tmp = Root:Find("RollEffectBtn").gameObject
  296. if tolua.getpeer(tmp) == nil then
  297. tolua.setpeer(tmp, {})
  298. end
  299. self.rollEffectBtn = tmp
  300. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  301. end
  302. ---@private
  303. function UIGMView:InitGenerate__17(Root, data)
  304. --[[
  305. Dropdown
  306. --]]
  307. local tmp = Root:Find("Dropdown").gameObject
  308. if tolua.getpeer(tmp) == nil then
  309. tolua.setpeer(tmp, {})
  310. end
  311. self.dropdown = tmp
  312. tmp.dropdown = tmp:GetComponent(Enum.TypeInfo.Dropdown)
  313. end
  314. ---@private
  315. function UIGMView:InitGenerate__18(Root, data)
  316. --[[
  317. HideUIBtn
  318. --]]
  319. local tmp = Root:Find("HideUIBtn").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.hideUIBtn = tmp
  324. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  325. end
  326. ---@private
  327. function UIGMView:GenerateDestroy()
  328. if tolua.getpeer(self.addGold) ~= nil then
  329. tolua.setpeer(self.addGold, nil)
  330. end
  331. self.addGold = nil
  332. if tolua.getpeer(self.addHeroLv) ~= nil then
  333. tolua.setpeer(self.addHeroLv, nil)
  334. end
  335. self.addHeroLv = nil
  336. if tolua.getpeer(self.addHeroJobLv) ~= nil then
  337. tolua.setpeer(self.addHeroJobLv, nil)
  338. end
  339. self.addHeroJobLv = nil
  340. if tolua.getpeer(self.addPartnerExp) ~= nil then
  341. tolua.setpeer(self.addPartnerExp, nil)
  342. end
  343. self.addPartnerExp = nil
  344. if tolua.getpeer(self.addEquip) ~= nil then
  345. tolua.setpeer(self.addEquip, nil)
  346. end
  347. self.addEquip = nil
  348. if tolua.getpeer(self.addFashion) ~= nil then
  349. tolua.setpeer(self.addFashion, nil)
  350. end
  351. self.addFashion = nil
  352. if tolua.getpeer(self.inputField) ~= nil then
  353. tolua.setpeer(self.inputField, nil)
  354. end
  355. self.inputField = nil
  356. if tolua.getpeer(self.send) ~= nil then
  357. tolua.setpeer(self.send, nil)
  358. end
  359. self.send = nil
  360. if tolua.getpeer(self.btnBack) ~= nil then
  361. tolua.setpeer(self.btnBack, nil)
  362. end
  363. self.btnBack = nil
  364. if tolua.getpeer(self.oneKeyGm) ~= nil then
  365. tolua.setpeer(self.oneKeyGm, nil)
  366. end
  367. self.oneKeyGm = nil
  368. if tolua.getpeer(self.newbieBtn) ~= nil then
  369. tolua.setpeer(self.newbieBtn, nil)
  370. end
  371. self.newbieBtn = nil
  372. if tolua.getpeer(self.userNameBtn) ~= nil then
  373. tolua.setpeer(self.userNameBtn, nil)
  374. end
  375. self.userNameBtn = nil
  376. if tolua.getpeer(self.storyBtn) ~= nil then
  377. tolua.setpeer(self.storyBtn, nil)
  378. end
  379. self.storyBtn = nil
  380. if tolua.getpeer(self.friendBtn) ~= nil then
  381. tolua.setpeer(self.friendBtn, nil)
  382. end
  383. self.friendBtn = nil
  384. if tolua.getpeer(self.forceGuideBtn) ~= nil then
  385. tolua.setpeer(self.forceGuideBtn, nil)
  386. end
  387. self.forceGuideBtn = nil
  388. if tolua.getpeer(self.rollEffectBtn) ~= nil then
  389. tolua.setpeer(self.rollEffectBtn, nil)
  390. end
  391. self.rollEffectBtn = nil
  392. if tolua.getpeer(self.dropdown) ~= nil then
  393. tolua.setpeer(self.dropdown, nil)
  394. end
  395. self.dropdown = nil
  396. if tolua.getpeer(self.hideUIBtn) ~= nil then
  397. tolua.setpeer(self.hideUIBtn, nil)
  398. end
  399. self.hideUIBtn = nil
  400. self.transform = nil
  401. self.gameObject = nil
  402. self.inited = false
  403. end
  404. return UIGMView