UISettingsView_Generate.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. ---@class UISettings__Generate_verText
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UISettings__Generate_sound_toggle
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public toggle UnityEngine.UI.Toggle
  7. ---@class UISettings__Generate_sound_slider
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public slider UnityEngine.UI.Slider
  10. ---@class UISettings__Generate_sound
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public slider UISettings__Generate_sound_slider
  13. ---@field public toggle UISettings__Generate_sound_toggle
  14. ---@class UISettings__Generate_music_toggle
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public toggle UnityEngine.UI.Toggle
  17. ---@class UISettings__Generate_music_slider
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public slider UnityEngine.UI.Slider
  20. ---@class UISettings__Generate_music
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public slider UISettings__Generate_music_slider
  23. ---@field public toggle UISettings__Generate_music_toggle
  24. ---@class UISettings__Generate_deleteTimeTxt
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public text TMPro.TextMeshProUGUI
  27. ---@class UISettings__Generate_cancelBtn
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public button UnityEngine.UI.Button
  30. ---@class UISettings__Generate_deleteBtn
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public button UnityEngine.UI.Button
  33. ---@class UISettings__Generate_deleteTxt
  34. ---@field public gameObject UnityEngine.GameObject
  35. ---@field public text UnityEngine.UI.Text
  36. ---@class UISettings__Generate_changeServerButton
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public button UnityEngine.UI.Button
  39. ---@class UISettings__Generate_serverNameTxt
  40. ---@field public gameObject UnityEngine.GameObject
  41. ---@field public text UnityEngine.UI.Text
  42. ---@class UISettings__Generate_btnClose
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public button UnityEngine.UI.Button
  45. ---@class UISettings__Generate_alpha
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public button UnityEngine.UI.Button
  48. ---@class UISettings__Generate_uIAnimator
  49. ---@field public gameObject UnityEngine.GameObject
  50. ---@field public animator UnityEngine.Animator
  51. ---@class UISettings__Generate
  52. ---@field private gameObject UnityEngine.GameObject
  53. ---@field private transform UnityEngine.Transform
  54. ---@field private uIAnimator UISettings__Generate_uIAnimator
  55. ---@field private alpha UISettings__Generate_alpha
  56. ---@field private window UnityEngine.GameObject
  57. ---@field private btnClose UISettings__Generate_btnClose
  58. ---@field private serverNameTxt UISettings__Generate_serverNameTxt
  59. ---@field private changeServerButton UISettings__Generate_changeServerButton
  60. ---@field private accountSetting UnityEngine.GameObject
  61. ---@field private deleteTxt UISettings__Generate_deleteTxt
  62. ---@field private deleteBtn UISettings__Generate_deleteBtn
  63. ---@field private cancelBtn UISettings__Generate_cancelBtn
  64. ---@field private deleteTime UnityEngine.GameObject
  65. ---@field private deleteTimeTxt UISettings__Generate_deleteTimeTxt
  66. ---@field private music UISettings__Generate_music
  67. ---@field private sound UISettings__Generate_sound
  68. ---@field private verText UISettings__Generate_verText
  69. local UISettingsView = class("UISettingsView", require("UIViewBase"))
  70. function UISettingsView:ctor()
  71. end
  72. ---@private
  73. function UISettingsView:SetActive(result)
  74. self.gameObject:SetActive(result)
  75. end
  76. ---@private
  77. function UISettingsView:InitGenerate(Root, data)
  78. self.transform = Root
  79. self.inited = true
  80. if self.super.Init then
  81. self.super.Init(self)
  82. end
  83. local tmp
  84. self:InitGenerate__1(Root,data)
  85. self:InitGenerate__2(Root,data)
  86. self:InitGenerate__3(Root,data)
  87. self:InitGenerate__4(Root,data)
  88. self:InitGenerate__5(Root,data)
  89. self:InitGenerate__6(Root,data)
  90. self:InitGenerate__7(Root,data)
  91. self:InitGenerate__8(Root,data)
  92. self:InitGenerate__9(Root,data)
  93. self:InitGenerate__10(Root,data)
  94. self:InitGenerate__11(Root,data)
  95. self:InitGenerate__12(Root,data)
  96. self:InitGenerate__13(Root,data)
  97. self:InitGenerate__14(Root,data)
  98. self:InitGenerate__15(Root,data)
  99. self:InitGenerate__16(Root,data)
  100. self:InitGenerate__17(Root,data)
  101. self:InitGenerate__18(Root,data)
  102. self:InitGenerate__19(Root,data)
  103. self:InitGenerate__20(Root,data)
  104. end
  105. ---@private
  106. function UISettingsView:InitGenerate__1(Root, data)
  107. --[[
  108. Root
  109. --]]
  110. end
  111. ---@private
  112. function UISettingsView:InitGenerate__2(Root, data)
  113. --[[
  114. UIAnimator
  115. --]]
  116. local tmp = Root:Find("UIAnimator").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.uIAnimator = tmp
  121. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  122. tmp.animator.logWarnings = false
  123. end
  124. ---@private
  125. function UISettingsView:InitGenerate__3(Root, data)
  126. --[[
  127. UIAnimator/Alpha
  128. --]]
  129. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  130. if tolua.getpeer(tmp) == nil then
  131. tolua.setpeer(tmp, {})
  132. end
  133. self.alpha = tmp
  134. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  135. end
  136. ---@private
  137. function UISettingsView:InitGenerate__4(Root, data)
  138. --[[
  139. UIAnimator/Window
  140. --]]
  141. local tmp = Root:Find("UIAnimator/Window").gameObject
  142. if tolua.getpeer(tmp) == nil then
  143. tolua.setpeer(tmp, {})
  144. end
  145. self.window = tmp
  146. end
  147. ---@private
  148. function UISettingsView:InitGenerate__5(Root, data)
  149. --[[
  150. UIAnimator/Window/Bg/CloseBox/BtnClose
  151. --]]
  152. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  153. if tolua.getpeer(tmp) == nil then
  154. tolua.setpeer(tmp, {})
  155. end
  156. self.btnClose = tmp
  157. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  158. end
  159. ---@private
  160. function UISettingsView:InitGenerate__6(Root, data)
  161. --[[
  162. UIAnimator/Window/Bg/ServerInfo/ServerNameTxt
  163. --]]
  164. local tmp = Root:Find("UIAnimator/Window/Bg/ServerInfo/ServerNameTxt").gameObject
  165. if tolua.getpeer(tmp) == nil then
  166. tolua.setpeer(tmp, {})
  167. end
  168. self.serverNameTxt = tmp
  169. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  170. end
  171. ---@private
  172. function UISettingsView:InitGenerate__7(Root, data)
  173. --[[
  174. UIAnimator/Window/Bg/ServerInfo/ChangeServerButton
  175. --]]
  176. local tmp = Root:Find("UIAnimator/Window/Bg/ServerInfo/ChangeServerButton").gameObject
  177. if tolua.getpeer(tmp) == nil then
  178. tolua.setpeer(tmp, {})
  179. end
  180. self.changeServerButton = tmp
  181. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  182. end
  183. ---@private
  184. function UISettingsView:InitGenerate__8(Root, data)
  185. --[[
  186. UIAnimator/Window/Bg/AccountSetting
  187. --]]
  188. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting").gameObject
  189. if tolua.getpeer(tmp) == nil then
  190. tolua.setpeer(tmp, {})
  191. end
  192. self.accountSetting = tmp
  193. end
  194. ---@private
  195. function UISettingsView:InitGenerate__9(Root, data)
  196. --[[
  197. UIAnimator/Window/Bg/AccountSetting/DeleteTxt
  198. --]]
  199. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting/DeleteTxt").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.deleteTxt = tmp
  204. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  205. end
  206. ---@private
  207. function UISettingsView:InitGenerate__10(Root, data)
  208. --[[
  209. UIAnimator/Window/Bg/AccountSetting/DeleteBtn
  210. --]]
  211. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting/DeleteBtn").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.deleteBtn = tmp
  216. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  217. end
  218. ---@private
  219. function UISettingsView:InitGenerate__11(Root, data)
  220. --[[
  221. UIAnimator/Window/Bg/AccountSetting/CancelBtn
  222. --]]
  223. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting/CancelBtn").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.cancelBtn = tmp
  228. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  229. end
  230. ---@private
  231. function UISettingsView:InitGenerate__12(Root, data)
  232. --[[
  233. UIAnimator/Window/Bg/AccountSetting/DeleteTime
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting/DeleteTime").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.deleteTime = tmp
  240. end
  241. ---@private
  242. function UISettingsView:InitGenerate__13(Root, data)
  243. --[[
  244. UIAnimator/Window/Bg/AccountSetting/DeleteTime/DeleteTimeTxt
  245. --]]
  246. local tmp = Root:Find("UIAnimator/Window/Bg/AccountSetting/DeleteTime/DeleteTimeTxt").gameObject
  247. if tolua.getpeer(tmp) == nil then
  248. tolua.setpeer(tmp, {})
  249. end
  250. self.deleteTimeTxt = tmp
  251. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  252. end
  253. ---@private
  254. function UISettingsView:InitGenerate__14(Root, data)
  255. --[[
  256. UIAnimator/Window/Bg/VolumeSettings/Music
  257. --]]
  258. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Music").gameObject
  259. if tolua.getpeer(tmp) == nil then
  260. tolua.setpeer(tmp, {})
  261. end
  262. self.music = tmp
  263. end
  264. ---@private
  265. function UISettingsView:InitGenerate__15(Root, data)
  266. --[[
  267. UIAnimator/Window/Bg/VolumeSettings/Music/Slider
  268. --]]
  269. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Music/Slider").gameObject
  270. if tolua.getpeer(tmp) == nil then
  271. tolua.setpeer(tmp, {})
  272. end
  273. self.music.slider = tmp
  274. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  275. end
  276. ---@private
  277. function UISettingsView:InitGenerate__16(Root, data)
  278. --[[
  279. UIAnimator/Window/Bg/VolumeSettings/Music/Toggle
  280. --]]
  281. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Music/Toggle").gameObject
  282. if tolua.getpeer(tmp) == nil then
  283. tolua.setpeer(tmp, {})
  284. end
  285. self.music.toggle = tmp
  286. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  287. end
  288. ---@private
  289. function UISettingsView:InitGenerate__17(Root, data)
  290. --[[
  291. UIAnimator/Window/Bg/VolumeSettings/Sound
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Sound").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.sound = tmp
  298. end
  299. ---@private
  300. function UISettingsView:InitGenerate__18(Root, data)
  301. --[[
  302. UIAnimator/Window/Bg/VolumeSettings/Sound/Slider
  303. --]]
  304. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Sound/Slider").gameObject
  305. if tolua.getpeer(tmp) == nil then
  306. tolua.setpeer(tmp, {})
  307. end
  308. self.sound.slider = tmp
  309. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  310. end
  311. ---@private
  312. function UISettingsView:InitGenerate__19(Root, data)
  313. --[[
  314. UIAnimator/Window/Bg/VolumeSettings/Sound/Toggle
  315. --]]
  316. local tmp = Root:Find("UIAnimator/Window/Bg/VolumeSettings/Sound/Toggle").gameObject
  317. if tolua.getpeer(tmp) == nil then
  318. tolua.setpeer(tmp, {})
  319. end
  320. self.sound.toggle = tmp
  321. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  322. end
  323. ---@private
  324. function UISettingsView:InitGenerate__20(Root, data)
  325. --[[
  326. UIAnimator/Window/Bg/VerBox/VerText
  327. --]]
  328. local tmp = Root:Find("UIAnimator/Window/Bg/VerBox/VerText").gameObject
  329. if tolua.getpeer(tmp) == nil then
  330. tolua.setpeer(tmp, {})
  331. end
  332. self.verText = tmp
  333. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  334. end
  335. ---@private
  336. function UISettingsView:GenerateDestroy()
  337. if tolua.getpeer(self.sound.toggle) ~= nil then
  338. tolua.setpeer(self.sound.toggle, nil)
  339. end
  340. if tolua.getpeer(self.sound.slider) ~= nil then
  341. tolua.setpeer(self.sound.slider, nil)
  342. end
  343. if tolua.getpeer(self.music.toggle) ~= nil then
  344. tolua.setpeer(self.music.toggle, nil)
  345. end
  346. if tolua.getpeer(self.music.slider) ~= nil then
  347. tolua.setpeer(self.music.slider, nil)
  348. end
  349. if tolua.getpeer(self.uIAnimator) ~= nil then
  350. tolua.setpeer(self.uIAnimator, nil)
  351. end
  352. self.uIAnimator = nil
  353. if tolua.getpeer(self.alpha) ~= nil then
  354. tolua.setpeer(self.alpha, nil)
  355. end
  356. self.alpha = nil
  357. if tolua.getpeer(self.window) ~= nil then
  358. tolua.setpeer(self.window, nil)
  359. end
  360. self.window = nil
  361. if tolua.getpeer(self.btnClose) ~= nil then
  362. tolua.setpeer(self.btnClose, nil)
  363. end
  364. self.btnClose = nil
  365. if tolua.getpeer(self.serverNameTxt) ~= nil then
  366. tolua.setpeer(self.serverNameTxt, nil)
  367. end
  368. self.serverNameTxt = nil
  369. if tolua.getpeer(self.changeServerButton) ~= nil then
  370. tolua.setpeer(self.changeServerButton, nil)
  371. end
  372. self.changeServerButton = nil
  373. if tolua.getpeer(self.accountSetting) ~= nil then
  374. tolua.setpeer(self.accountSetting, nil)
  375. end
  376. self.accountSetting = nil
  377. if tolua.getpeer(self.deleteTxt) ~= nil then
  378. tolua.setpeer(self.deleteTxt, nil)
  379. end
  380. self.deleteTxt = nil
  381. if tolua.getpeer(self.deleteBtn) ~= nil then
  382. tolua.setpeer(self.deleteBtn, nil)
  383. end
  384. self.deleteBtn = nil
  385. if tolua.getpeer(self.cancelBtn) ~= nil then
  386. tolua.setpeer(self.cancelBtn, nil)
  387. end
  388. self.cancelBtn = nil
  389. if tolua.getpeer(self.deleteTime) ~= nil then
  390. tolua.setpeer(self.deleteTime, nil)
  391. end
  392. self.deleteTime = nil
  393. if tolua.getpeer(self.deleteTimeTxt) ~= nil then
  394. tolua.setpeer(self.deleteTimeTxt, nil)
  395. end
  396. self.deleteTimeTxt = nil
  397. if tolua.getpeer(self.music) ~= nil then
  398. tolua.setpeer(self.music, nil)
  399. end
  400. self.music = nil
  401. if tolua.getpeer(self.sound) ~= nil then
  402. tolua.setpeer(self.sound, nil)
  403. end
  404. self.sound = nil
  405. if tolua.getpeer(self.verText) ~= nil then
  406. tolua.setpeer(self.verText, nil)
  407. end
  408. self.verText = nil
  409. self.transform = nil
  410. self.gameObject = nil
  411. self.inited = false
  412. end
  413. return UISettingsView