UIGuildSettingsView_Generate.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. ---@class UIGuildSettings__Generate_sureBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildSettings__Generate_recruitInput
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public inputField UnityEngine.UI.InputField
  7. ---@class UIGuildSettings__Generate_btnPlus
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@field public repeatButton UnityEngine.UI.RepeatButton
  11. ---@class UIGuildSettings__Generate_btnMinus
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@field public repeatButton UnityEngine.UI.RepeatButton
  15. ---@class UIGuildSettings__Generate_lvSlider
  16. ---@field public gameObject UnityEngine.GameObject
  17. ---@field public slider UnityEngine.UI.Slider
  18. ---@class UIGuildSettings__Generate_lvInput
  19. ---@field public gameObject UnityEngine.GameObject
  20. ---@field public inputField UnityEngine.UI.InputField
  21. ---@class UIGuildSettings__Generate_toggleGroup_noToggle
  22. ---@field public gameObject UnityEngine.GameObject
  23. ---@field public toggle UnityEngine.UI.Toggle
  24. ---@class UIGuildSettings__Generate_toggleGroup_applyToggle
  25. ---@field public gameObject UnityEngine.GameObject
  26. ---@field public toggle UnityEngine.UI.Toggle
  27. ---@class UIGuildSettings__Generate_toggleGroup_allToggle
  28. ---@field public gameObject UnityEngine.GameObject
  29. ---@field public toggle UnityEngine.UI.Toggle
  30. ---@class UIGuildSettings__Generate_toggleGroup
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public toggleGroup UnityEngine.UI.ToggleGroup
  33. ---@field public allToggle UIGuildSettings__Generate_toggleGroup_allToggle
  34. ---@field public applyToggle UIGuildSettings__Generate_toggleGroup_applyToggle
  35. ---@field public noToggle UIGuildSettings__Generate_toggleGroup_noToggle
  36. ---@class UIGuildSettings__Generate_costTxt
  37. ---@field public gameObject UnityEngine.GameObject
  38. ---@field public text UnityEngine.UI.Text
  39. ---@class UIGuildSettings__Generate_name_text
  40. ---@field public gameObject UnityEngine.GameObject
  41. ---@field public text UnityEngine.UI.Text
  42. ---@class UIGuildSettings__Generate_name
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public button UnityEngine.UI.Button
  45. ---@field public text UIGuildSettings__Generate_name_text
  46. ---@class UIGuildSettings__Generate_changeBtn
  47. ---@field public gameObject UnityEngine.GameObject
  48. ---@field public button UnityEngine.UI.Button
  49. ---@class UIGuildSettings__Generate_guildBadgeItem
  50. ---@field public gameObject UnityEngine.GameObject
  51. ---@field public layoutElement UnityEngine.UI.LayoutElement
  52. ---@class UIGuildSettings__Generate_btnClose
  53. ---@field public gameObject UnityEngine.GameObject
  54. ---@field public button UnityEngine.UI.Button
  55. ---@class UIGuildSettings__Generate_AnyBtn
  56. ---@field public gameObject UnityEngine.GameObject
  57. ---@field public button UnityEngine.UI.Button
  58. ---@class UIGuildSettings__Generate
  59. ---@field private gameObject UnityEngine.GameObject
  60. ---@field private transform UnityEngine.Transform
  61. ---@field private AnyBtn UIGuildSettings__Generate_AnyBtn
  62. ---@field private btnClose UIGuildSettings__Generate_btnClose
  63. ---@field private guildBadgeItem UIGuildSettings__Generate_guildBadgeItem
  64. ---@field private changeBtn UIGuildSettings__Generate_changeBtn
  65. ---@field private name UIGuildSettings__Generate_name
  66. ---@field private costTxt UIGuildSettings__Generate_costTxt
  67. ---@field private toggleGroup UIGuildSettings__Generate_toggleGroup
  68. ---@field private lvInput UIGuildSettings__Generate_lvInput
  69. ---@field private lvSlider UIGuildSettings__Generate_lvSlider
  70. ---@field private btnMinus UIGuildSettings__Generate_btnMinus
  71. ---@field private btnPlus UIGuildSettings__Generate_btnPlus
  72. ---@field private recruitInput UIGuildSettings__Generate_recruitInput
  73. ---@field private sureBtn UIGuildSettings__Generate_sureBtn
  74. local UIGuildSettingsView = class("UIGuildSettingsView", require("UIViewBase"))
  75. function UIGuildSettingsView:ctor()
  76. end
  77. ---@private
  78. function UIGuildSettingsView:SetActive(result)
  79. self.gameObject:SetActive(result)
  80. end
  81. ---@private
  82. function UIGuildSettingsView:InitGenerate(Root, data)
  83. self.transform = Root
  84. self.inited = true
  85. if self.super.Init then
  86. self.super.Init(self)
  87. end
  88. local tmp
  89. self:InitGenerate__1(Root,data)
  90. self:InitGenerate__2(Root,data)
  91. self:InitGenerate__3(Root,data)
  92. self:InitGenerate__4(Root,data)
  93. self:InitGenerate__5(Root,data)
  94. self:InitGenerate__6(Root,data)
  95. self:InitGenerate__7(Root,data)
  96. self:InitGenerate__8(Root,data)
  97. self:InitGenerate__9(Root,data)
  98. self:InitGenerate__10(Root,data)
  99. self:InitGenerate__11(Root,data)
  100. self:InitGenerate__12(Root,data)
  101. self:InitGenerate__13(Root,data)
  102. self:InitGenerate__14(Root,data)
  103. self:InitGenerate__15(Root,data)
  104. self:InitGenerate__16(Root,data)
  105. self:InitGenerate__17(Root,data)
  106. end
  107. ---@private
  108. function UIGuildSettingsView:InitGenerate__1(Root, data)
  109. --[[
  110. UIAnimator/Alpha
  111. --]]
  112. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.AnyBtn = tmp
  117. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  118. end
  119. ---@private
  120. function UIGuildSettingsView:InitGenerate__2(Root, data)
  121. --[[
  122. UIAnimator/Window/CloseBox/BtnClose
  123. --]]
  124. local tmp = Root:Find("UIAnimator/Window/CloseBox/BtnClose").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.btnClose = tmp
  129. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  130. end
  131. ---@private
  132. function UIGuildSettingsView:InitGenerate__3(Root, data)
  133. --[[
  134. UIAnimator/Window/ChangeList/Image/GuildBadgeItem
  135. --]]
  136. local tmp = Root:Find("UIAnimator/Window/ChangeList/Image/GuildBadgeItem").gameObject
  137. if tolua.getpeer(tmp) == nil then
  138. tolua.setpeer(tmp, {})
  139. end
  140. self.guildBadgeItem = CommonUtil.BindGridViewItem2LuaStatic("GuildBadgeItem", tmp)
  141. self.guildBadgeItem.prefabName = "GuildBadgeItem"
  142. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  143. end
  144. ---@private
  145. function UIGuildSettingsView:InitGenerate__4(Root, data)
  146. --[[
  147. UIAnimator/Window/ChangeList/Image/ChangeBtn
  148. --]]
  149. local tmp = Root:Find("UIAnimator/Window/ChangeList/Image/ChangeBtn").gameObject
  150. if tolua.getpeer(tmp) == nil then
  151. tolua.setpeer(tmp, {})
  152. end
  153. self.changeBtn = tmp
  154. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  155. end
  156. ---@private
  157. function UIGuildSettingsView:InitGenerate__5(Root, data)
  158. --[[
  159. UIAnimator/Window/ChangeList/Image/Name
  160. --]]
  161. local tmp = Root:Find("UIAnimator/Window/ChangeList/Image/Name").gameObject
  162. if tolua.getpeer(tmp) == nil then
  163. tolua.setpeer(tmp, {})
  164. end
  165. self.name = tmp
  166. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  167. end
  168. ---@private
  169. function UIGuildSettingsView:InitGenerate__6(Root, data)
  170. --[[
  171. UIAnimator/Window/ChangeList/Image/Name/Text
  172. --]]
  173. local tmp = Root:Find("UIAnimator/Window/ChangeList/Image/Name/Text").gameObject
  174. if tolua.getpeer(tmp) == nil then
  175. tolua.setpeer(tmp, {})
  176. end
  177. self.name.text = tmp
  178. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  179. end
  180. ---@private
  181. function UIGuildSettingsView:InitGenerate__7(Root, data)
  182. --[[
  183. UIAnimator/Window/ChangeList/Image/CostTxt
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/ChangeList/Image/CostTxt").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.costTxt = tmp
  190. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  191. end
  192. ---@private
  193. function UIGuildSettingsView:InitGenerate__8(Root, data)
  194. --[[
  195. UIAnimator/Window/ChangeList/ToggleGroup
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/ChangeList/ToggleGroup").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.toggleGroup = tmp
  202. tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup)
  203. end
  204. ---@private
  205. function UIGuildSettingsView:InitGenerate__9(Root, data)
  206. --[[
  207. UIAnimator/Window/ChangeList/ToggleGroup/AllToggle
  208. --]]
  209. local tmp = Root:Find("UIAnimator/Window/ChangeList/ToggleGroup/AllToggle").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.toggleGroup.allToggle = tmp
  214. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  215. end
  216. ---@private
  217. function UIGuildSettingsView:InitGenerate__10(Root, data)
  218. --[[
  219. UIAnimator/Window/ChangeList/ToggleGroup/ApplyToggle
  220. --]]
  221. local tmp = Root:Find("UIAnimator/Window/ChangeList/ToggleGroup/ApplyToggle").gameObject
  222. if tolua.getpeer(tmp) == nil then
  223. tolua.setpeer(tmp, {})
  224. end
  225. self.toggleGroup.applyToggle = tmp
  226. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  227. end
  228. ---@private
  229. function UIGuildSettingsView:InitGenerate__11(Root, data)
  230. --[[
  231. UIAnimator/Window/ChangeList/ToggleGroup/NoToggle
  232. --]]
  233. local tmp = Root:Find("UIAnimator/Window/ChangeList/ToggleGroup/NoToggle").gameObject
  234. if tolua.getpeer(tmp) == nil then
  235. tolua.setpeer(tmp, {})
  236. end
  237. self.toggleGroup.noToggle = tmp
  238. tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle)
  239. end
  240. ---@private
  241. function UIGuildSettingsView:InitGenerate__12(Root, data)
  242. --[[
  243. UIAnimator/Window/ChangeList/LvGroup/LvInput
  244. --]]
  245. local tmp = Root:Find("UIAnimator/Window/ChangeList/LvGroup/LvInput").gameObject
  246. if tolua.getpeer(tmp) == nil then
  247. tolua.setpeer(tmp, {})
  248. end
  249. self.lvInput = tmp
  250. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  251. end
  252. ---@private
  253. function UIGuildSettingsView:InitGenerate__13(Root, data)
  254. --[[
  255. UIAnimator/Window/ChangeList/LvGroup/LvSlider
  256. --]]
  257. local tmp = Root:Find("UIAnimator/Window/ChangeList/LvGroup/LvSlider").gameObject
  258. if tolua.getpeer(tmp) == nil then
  259. tolua.setpeer(tmp, {})
  260. end
  261. self.lvSlider = tmp
  262. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  263. end
  264. ---@private
  265. function UIGuildSettingsView:InitGenerate__14(Root, data)
  266. --[[
  267. UIAnimator/Window/ChangeList/LvGroup/BtnMinus
  268. --]]
  269. local tmp = Root:Find("UIAnimator/Window/ChangeList/LvGroup/BtnMinus").gameObject
  270. if tolua.getpeer(tmp) == nil then
  271. tolua.setpeer(tmp, {})
  272. end
  273. self.btnMinus = tmp
  274. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  275. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  276. end
  277. ---@private
  278. function UIGuildSettingsView:InitGenerate__15(Root, data)
  279. --[[
  280. UIAnimator/Window/ChangeList/LvGroup/BtnPlus
  281. --]]
  282. local tmp = Root:Find("UIAnimator/Window/ChangeList/LvGroup/BtnPlus").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.btnPlus = tmp
  287. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  288. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  289. end
  290. ---@private
  291. function UIGuildSettingsView:InitGenerate__16(Root, data)
  292. --[[
  293. UIAnimator/Window/ChangeList/RecruitInput
  294. --]]
  295. local tmp = Root:Find("UIAnimator/Window/ChangeList/RecruitInput").gameObject
  296. if tolua.getpeer(tmp) == nil then
  297. tolua.setpeer(tmp, {})
  298. end
  299. self.recruitInput = tmp
  300. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  301. end
  302. ---@private
  303. function UIGuildSettingsView:InitGenerate__17(Root, data)
  304. --[[
  305. UIAnimator/Window/Bottom/SureBtn
  306. --]]
  307. local tmp = Root:Find("UIAnimator/Window/Bottom/SureBtn").gameObject
  308. if tolua.getpeer(tmp) == nil then
  309. tolua.setpeer(tmp, {})
  310. end
  311. self.sureBtn = tmp
  312. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  313. end
  314. ---@private
  315. function UIGuildSettingsView:GenerateDestroy()
  316. if tolua.getpeer(self.toggleGroup.noToggle) ~= nil then
  317. tolua.setpeer(self.toggleGroup.noToggle, nil)
  318. end
  319. if tolua.getpeer(self.toggleGroup.applyToggle) ~= nil then
  320. tolua.setpeer(self.toggleGroup.applyToggle, nil)
  321. end
  322. if tolua.getpeer(self.toggleGroup.allToggle) ~= nil then
  323. tolua.setpeer(self.toggleGroup.allToggle, nil)
  324. end
  325. if tolua.getpeer(self.name.text) ~= nil then
  326. tolua.setpeer(self.name.text, nil)
  327. end
  328. if tolua.getpeer(self.AnyBtn) ~= nil then
  329. tolua.setpeer(self.AnyBtn, nil)
  330. end
  331. self.AnyBtn = nil
  332. if tolua.getpeer(self.btnClose) ~= nil then
  333. tolua.setpeer(self.btnClose, nil)
  334. end
  335. self.btnClose = nil
  336. if self.guildBadgeItem.GenerateDestroy ~= nil then
  337. self.guildBadgeItem:GenerateDestroy()
  338. end
  339. if tolua.getpeer(self.guildBadgeItem) ~= nil then
  340. tolua.setpeer(self.guildBadgeItem, nil)
  341. end
  342. self.guildBadgeItem = nil
  343. if tolua.getpeer(self.changeBtn) ~= nil then
  344. tolua.setpeer(self.changeBtn, nil)
  345. end
  346. self.changeBtn = nil
  347. if tolua.getpeer(self.name) ~= nil then
  348. tolua.setpeer(self.name, nil)
  349. end
  350. self.name = nil
  351. if tolua.getpeer(self.costTxt) ~= nil then
  352. tolua.setpeer(self.costTxt, nil)
  353. end
  354. self.costTxt = nil
  355. if tolua.getpeer(self.toggleGroup) ~= nil then
  356. tolua.setpeer(self.toggleGroup, nil)
  357. end
  358. self.toggleGroup = nil
  359. if tolua.getpeer(self.lvInput) ~= nil then
  360. tolua.setpeer(self.lvInput, nil)
  361. end
  362. self.lvInput = nil
  363. if tolua.getpeer(self.lvSlider) ~= nil then
  364. tolua.setpeer(self.lvSlider, nil)
  365. end
  366. self.lvSlider = nil
  367. if tolua.getpeer(self.btnMinus) ~= nil then
  368. tolua.setpeer(self.btnMinus, nil)
  369. end
  370. self.btnMinus = nil
  371. if tolua.getpeer(self.btnPlus) ~= nil then
  372. tolua.setpeer(self.btnPlus, nil)
  373. end
  374. self.btnPlus = nil
  375. if tolua.getpeer(self.recruitInput) ~= nil then
  376. tolua.setpeer(self.recruitInput, nil)
  377. end
  378. self.recruitInput = nil
  379. if tolua.getpeer(self.sureBtn) ~= nil then
  380. tolua.setpeer(self.sureBtn, nil)
  381. end
  382. self.sureBtn = nil
  383. self.transform = nil
  384. self.gameObject = nil
  385. self.inited = false
  386. end
  387. return UIGuildSettingsView