UISettingsView_Generate.lua 12 KB

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