UIMainCity1View_Generate.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. ---@class UIMainCity1__Generate_redEnvelope_text
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIMainCity1__Generate_redEnvelope_btnSmall
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIMainCity1__Generate_redEnvelope
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public btnSmall UIMainCity1__Generate_redEnvelope_btnSmall
  10. ---@field public text UIMainCity1__Generate_redEnvelope_text
  11. ---@class UIMainCity1__Generate_btnNotifyActivity
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIMainCity1__Generate_btnMail
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class UIMainCity1__Generate_btnSummon
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIMainCity1__Generate_btnEquipForge
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public button UnityEngine.UI.Button
  23. ---@class UIMainCity1__Generate_btnFashion
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public button UnityEngine.UI.Button
  26. ---@class UIMainCity1__Generate_btnGuild
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UIMainCity1__Generate_btnCard
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public button UnityEngine.UI.Button
  32. ---@class UIMainCity1__Generate_btnFriend
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public button UnityEngine.UI.Button
  35. ---@class UIMainCity1__Generate_btnKapula
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public button UnityEngine.UI.Button
  38. ---@class UIMainCity1__Generate_btnSign
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public button UnityEngine.UI.Button
  41. ---@class UIMainCity1__Generate_btnExpedition
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public button UnityEngine.UI.Button
  44. ---@class UIMainCity1__Generate_btnWorldBoss
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public button UnityEngine.UI.Button
  47. ---@class UIMainCity1__Generate_btnEvil
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public button UnityEngine.UI.Button
  50. ---@class UIMainCity1__Generate_btnAirship
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public button UnityEngine.UI.Button
  53. ---@class UIMainCity1__Generate_btnArena
  54. ---@field public gameObject UnityEngine.GameObject
  55. ---@field public button UnityEngine.UI.Button
  56. ---@class UIMainCity1__Generate_btnDojo
  57. ---@field public gameObject UnityEngine.GameObject
  58. ---@field public button UnityEngine.UI.Button
  59. ---@class UIMainCity1__Generate_btnClimbingTower
  60. ---@field public gameObject UnityEngine.GameObject
  61. ---@field public button UnityEngine.UI.Button
  62. ---@class UIMainCity1__Generate_cityRoot
  63. ---@field public gameObject UnityEngine.GameObject
  64. ---@field public scrollRect UnityEngine.UI.ScrollRect
  65. ---@class UIMainCity1__Generate
  66. ---@field private gameObject UnityEngine.GameObject
  67. ---@field private transform UnityEngine.Transform
  68. ---@field private cityRoot UIMainCity1__Generate_cityRoot
  69. ---@field private btnClimbingTower UIMainCity1__Generate_btnClimbingTower
  70. ---@field private btnDojo UIMainCity1__Generate_btnDojo
  71. ---@field private btnArena UIMainCity1__Generate_btnArena
  72. ---@field private btnAirship UIMainCity1__Generate_btnAirship
  73. ---@field private btnEvil UIMainCity1__Generate_btnEvil
  74. ---@field private btnWorldBoss UIMainCity1__Generate_btnWorldBoss
  75. ---@field private btnExpedition UIMainCity1__Generate_btnExpedition
  76. ---@field private btnSign UIMainCity1__Generate_btnSign
  77. ---@field private btnKapula UIMainCity1__Generate_btnKapula
  78. ---@field private btnFriend UIMainCity1__Generate_btnFriend
  79. ---@field private btnCard UIMainCity1__Generate_btnCard
  80. ---@field private btnGuild UIMainCity1__Generate_btnGuild
  81. ---@field private btnFashion UIMainCity1__Generate_btnFashion
  82. ---@field private imageEquip UnityEngine.GameObject
  83. ---@field private btnEquipForge UIMainCity1__Generate_btnEquipForge
  84. ---@field private btnSummon UIMainCity1__Generate_btnSummon
  85. ---@field private btnMail UIMainCity1__Generate_btnMail
  86. ---@field private btnNotifyActivity UIMainCity1__Generate_btnNotifyActivity
  87. ---@field private middleView UnityEngine.GameObject
  88. ---@field private redEnvelope UIMainCity1__Generate_redEnvelope
  89. local UIMainCity1View = class("UIMainCity1View", require("UIViewBase"))
  90. function UIMainCity1View:ctor()
  91. end
  92. ---@private
  93. function UIMainCity1View:SetActive(result)
  94. self.gameObject:SetActive(result)
  95. end
  96. ---@private
  97. function UIMainCity1View:InitGenerate(Root, data)
  98. self.transform = Root
  99. self.inited = true
  100. if self.super.Init then
  101. self.super.Init(self)
  102. end
  103. local tmp
  104. self:InitGenerate__1(Root,data)
  105. self:InitGenerate__2(Root,data)
  106. self:InitGenerate__3(Root,data)
  107. self:InitGenerate__4(Root,data)
  108. self:InitGenerate__5(Root,data)
  109. self:InitGenerate__6(Root,data)
  110. self:InitGenerate__7(Root,data)
  111. self:InitGenerate__8(Root,data)
  112. self:InitGenerate__9(Root,data)
  113. self:InitGenerate__10(Root,data)
  114. self:InitGenerate__11(Root,data)
  115. self:InitGenerate__12(Root,data)
  116. self:InitGenerate__13(Root,data)
  117. self:InitGenerate__14(Root,data)
  118. self:InitGenerate__15(Root,data)
  119. self:InitGenerate__16(Root,data)
  120. self:InitGenerate__17(Root,data)
  121. self:InitGenerate__18(Root,data)
  122. self:InitGenerate__19(Root,data)
  123. self:InitGenerate__20(Root,data)
  124. self:InitGenerate__21(Root,data)
  125. self:InitGenerate__22(Root,data)
  126. self:InitGenerate__23(Root,data)
  127. self:InitGenerate__24(Root,data)
  128. end
  129. ---@private
  130. function UIMainCity1View:InitGenerate__1(Root, data)
  131. --[[
  132. Root
  133. --]]
  134. end
  135. ---@private
  136. function UIMainCity1View:InitGenerate__2(Root, data)
  137. --[[
  138. MainCityRoot/CityRoot
  139. --]]
  140. local tmp = Root:Find("MainCityRoot/CityRoot").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.cityRoot = tmp
  145. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  146. end
  147. ---@private
  148. function UIMainCity1View:InitGenerate__3(Root, data)
  149. --[[
  150. MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image02/btnClimbingTower
  151. --]]
  152. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image02/btnClimbingTower").gameObject
  153. if tolua.getpeer(tmp) == nil then
  154. tolua.setpeer(tmp, {})
  155. end
  156. self.btnClimbingTower = tmp
  157. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  158. end
  159. ---@private
  160. function UIMainCity1View:InitGenerate__4(Root, data)
  161. --[[
  162. MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image03/btnDojo
  163. --]]
  164. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image03/btnDojo").gameObject
  165. if tolua.getpeer(tmp) == nil then
  166. tolua.setpeer(tmp, {})
  167. end
  168. self.btnDojo = tmp
  169. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  170. end
  171. ---@private
  172. function UIMainCity1View:InitGenerate__5(Root, data)
  173. --[[
  174. MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image04/Flot/btnArena
  175. --]]
  176. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image04/Flot/btnArena").gameObject
  177. if tolua.getpeer(tmp) == nil then
  178. tolua.setpeer(tmp, {})
  179. end
  180. self.btnArena = tmp
  181. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  182. end
  183. ---@private
  184. function UIMainCity1View:InitGenerate__6(Root, data)
  185. --[[
  186. MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image05/Flot/btnAirship
  187. --]]
  188. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor8/FloorRoot/Image05/Flot/btnAirship").gameObject
  189. if tolua.getpeer(tmp) == nil then
  190. tolua.setpeer(tmp, {})
  191. end
  192. self.btnAirship = tmp
  193. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  194. end
  195. ---@private
  196. function UIMainCity1View:InitGenerate__7(Root, data)
  197. --[[
  198. MainCityRoot/CityRoot/Viewport/bg/floor6/FloorRoot/Image01/btnEvil
  199. --]]
  200. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor6/FloorRoot/Image01/btnEvil").gameObject
  201. if tolua.getpeer(tmp) == nil then
  202. tolua.setpeer(tmp, {})
  203. end
  204. self.btnEvil = tmp
  205. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  206. end
  207. ---@private
  208. function UIMainCity1View:InitGenerate__8(Root, data)
  209. --[[
  210. MainCityRoot/CityRoot/Viewport/bg/floor6/FloorRoot/Image02/btnWorldBoss
  211. --]]
  212. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor6/FloorRoot/Image02/btnWorldBoss").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.btnWorldBoss = tmp
  217. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  218. end
  219. ---@private
  220. function UIMainCity1View:InitGenerate__9(Root, data)
  221. --[[
  222. MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnExpedition
  223. --]]
  224. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnExpedition").gameObject
  225. if tolua.getpeer(tmp) == nil then
  226. tolua.setpeer(tmp, {})
  227. end
  228. self.btnExpedition = tmp
  229. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  230. end
  231. ---@private
  232. function UIMainCity1View:InitGenerate__10(Root, data)
  233. --[[
  234. MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnSign
  235. --]]
  236. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnSign").gameObject
  237. if tolua.getpeer(tmp) == nil then
  238. tolua.setpeer(tmp, {})
  239. end
  240. self.btnSign = tmp
  241. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  242. end
  243. ---@private
  244. function UIMainCity1View:InitGenerate__11(Root, data)
  245. --[[
  246. MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnKapula
  247. --]]
  248. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnKapula").gameObject
  249. if tolua.getpeer(tmp) == nil then
  250. tolua.setpeer(tmp, {})
  251. end
  252. self.btnKapula = tmp
  253. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  254. end
  255. ---@private
  256. function UIMainCity1View:InitGenerate__12(Root, data)
  257. --[[
  258. MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnFriend
  259. --]]
  260. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor5/FloorRoot/btnFriend").gameObject
  261. if tolua.getpeer(tmp) == nil then
  262. tolua.setpeer(tmp, {})
  263. end
  264. self.btnFriend = tmp
  265. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  266. end
  267. ---@private
  268. function UIMainCity1View:InitGenerate__13(Root, data)
  269. --[[
  270. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseRight/btnCard
  271. --]]
  272. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseRight/btnCard").gameObject
  273. if tolua.getpeer(tmp) == nil then
  274. tolua.setpeer(tmp, {})
  275. end
  276. self.btnCard = tmp
  277. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  278. end
  279. ---@private
  280. function UIMainCity1View:InitGenerate__14(Root, data)
  281. --[[
  282. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseRight/btnGuild
  283. --]]
  284. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseRight/btnGuild").gameObject
  285. if tolua.getpeer(tmp) == nil then
  286. tolua.setpeer(tmp, {})
  287. end
  288. self.btnGuild = tmp
  289. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  290. end
  291. ---@private
  292. function UIMainCity1View:InitGenerate__15(Root, data)
  293. --[[
  294. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/btnFashion
  295. --]]
  296. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/btnFashion").gameObject
  297. if tolua.getpeer(tmp) == nil then
  298. tolua.setpeer(tmp, {})
  299. end
  300. self.btnFashion = tmp
  301. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  302. end
  303. ---@private
  304. function UIMainCity1View:InitGenerate__16(Root, data)
  305. --[[
  306. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/ImageEquip
  307. --]]
  308. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/ImageEquip").gameObject
  309. if tolua.getpeer(tmp) == nil then
  310. tolua.setpeer(tmp, {})
  311. end
  312. self.imageEquip = tmp
  313. end
  314. ---@private
  315. function UIMainCity1View:InitGenerate__17(Root, data)
  316. --[[
  317. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/btnEquipForge
  318. --]]
  319. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/HouseLeft/btnEquipForge").gameObject
  320. if tolua.getpeer(tmp) == nil then
  321. tolua.setpeer(tmp, {})
  322. end
  323. self.btnEquipForge = tmp
  324. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  325. end
  326. ---@private
  327. function UIMainCity1View:InitGenerate__18(Root, data)
  328. --[[
  329. MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/btnSummon
  330. --]]
  331. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor4/FloorRoot/btnSummon").gameObject
  332. if tolua.getpeer(tmp) == nil then
  333. tolua.setpeer(tmp, {})
  334. end
  335. self.btnSummon = tmp
  336. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  337. end
  338. ---@private
  339. function UIMainCity1View:InitGenerate__19(Root, data)
  340. --[[
  341. MainCityRoot/CityRoot/Viewport/bg/floor3/FloorRoot/btnMail
  342. --]]
  343. local tmp = Root:Find("MainCityRoot/CityRoot/Viewport/bg/floor3/FloorRoot/btnMail").gameObject
  344. if tolua.getpeer(tmp) == nil then
  345. tolua.setpeer(tmp, {})
  346. end
  347. self.btnMail = tmp
  348. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  349. end
  350. ---@private
  351. function UIMainCity1View:InitGenerate__20(Root, data)
  352. --[[
  353. TopView/TopBtns/BtnNotifyActivity
  354. --]]
  355. local tmp = Root:Find("TopView/TopBtns/BtnNotifyActivity").gameObject
  356. if tolua.getpeer(tmp) == nil then
  357. tolua.setpeer(tmp, {})
  358. end
  359. self.btnNotifyActivity = tmp
  360. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  361. end
  362. ---@private
  363. function UIMainCity1View:InitGenerate__21(Root, data)
  364. --[[
  365. MiddleView
  366. --]]
  367. local tmp = Root:Find("MiddleView").gameObject
  368. if tolua.getpeer(tmp) == nil then
  369. tolua.setpeer(tmp, {})
  370. end
  371. self.middleView = tmp
  372. end
  373. ---@private
  374. function UIMainCity1View:InitGenerate__22(Root, data)
  375. --[[
  376. MiddleView/RedEnvelope
  377. --]]
  378. local tmp = Root:Find("MiddleView/RedEnvelope").gameObject
  379. if tolua.getpeer(tmp) == nil then
  380. tolua.setpeer(tmp, {})
  381. end
  382. self.redEnvelope = tmp
  383. end
  384. ---@private
  385. function UIMainCity1View:InitGenerate__23(Root, data)
  386. --[[
  387. MiddleView/RedEnvelope/BtnSmall
  388. --]]
  389. local tmp = Root:Find("MiddleView/RedEnvelope/BtnSmall").gameObject
  390. if tolua.getpeer(tmp) == nil then
  391. tolua.setpeer(tmp, {})
  392. end
  393. self.redEnvelope.btnSmall = tmp
  394. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  395. end
  396. ---@private
  397. function UIMainCity1View:InitGenerate__24(Root, data)
  398. --[[
  399. MiddleView/RedEnvelope/BtnSmall/Timer/Text
  400. --]]
  401. local tmp = Root:Find("MiddleView/RedEnvelope/BtnSmall/Timer/Text").gameObject
  402. if tolua.getpeer(tmp) == nil then
  403. tolua.setpeer(tmp, {})
  404. end
  405. self.redEnvelope.text = tmp
  406. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  407. end
  408. ---@private
  409. function UIMainCity1View:GenerateDestroy()
  410. if tolua.getpeer(self.redEnvelope.text) ~= nil then
  411. tolua.setpeer(self.redEnvelope.text, nil)
  412. end
  413. if tolua.getpeer(self.redEnvelope.btnSmall) ~= nil then
  414. tolua.setpeer(self.redEnvelope.btnSmall, nil)
  415. end
  416. if tolua.getpeer(self.cityRoot) ~= nil then
  417. tolua.setpeer(self.cityRoot, nil)
  418. end
  419. self.cityRoot = nil
  420. if tolua.getpeer(self.btnClimbingTower) ~= nil then
  421. tolua.setpeer(self.btnClimbingTower, nil)
  422. end
  423. self.btnClimbingTower = nil
  424. if tolua.getpeer(self.btnDojo) ~= nil then
  425. tolua.setpeer(self.btnDojo, nil)
  426. end
  427. self.btnDojo = nil
  428. if tolua.getpeer(self.btnArena) ~= nil then
  429. tolua.setpeer(self.btnArena, nil)
  430. end
  431. self.btnArena = nil
  432. if tolua.getpeer(self.btnAirship) ~= nil then
  433. tolua.setpeer(self.btnAirship, nil)
  434. end
  435. self.btnAirship = nil
  436. if tolua.getpeer(self.btnEvil) ~= nil then
  437. tolua.setpeer(self.btnEvil, nil)
  438. end
  439. self.btnEvil = nil
  440. if tolua.getpeer(self.btnWorldBoss) ~= nil then
  441. tolua.setpeer(self.btnWorldBoss, nil)
  442. end
  443. self.btnWorldBoss = nil
  444. if tolua.getpeer(self.btnExpedition) ~= nil then
  445. tolua.setpeer(self.btnExpedition, nil)
  446. end
  447. self.btnExpedition = nil
  448. if tolua.getpeer(self.btnSign) ~= nil then
  449. tolua.setpeer(self.btnSign, nil)
  450. end
  451. self.btnSign = nil
  452. if tolua.getpeer(self.btnKapula) ~= nil then
  453. tolua.setpeer(self.btnKapula, nil)
  454. end
  455. self.btnKapula = nil
  456. if tolua.getpeer(self.btnFriend) ~= nil then
  457. tolua.setpeer(self.btnFriend, nil)
  458. end
  459. self.btnFriend = nil
  460. if tolua.getpeer(self.btnCard) ~= nil then
  461. tolua.setpeer(self.btnCard, nil)
  462. end
  463. self.btnCard = nil
  464. if tolua.getpeer(self.btnGuild) ~= nil then
  465. tolua.setpeer(self.btnGuild, nil)
  466. end
  467. self.btnGuild = nil
  468. if tolua.getpeer(self.btnFashion) ~= nil then
  469. tolua.setpeer(self.btnFashion, nil)
  470. end
  471. self.btnFashion = nil
  472. if tolua.getpeer(self.imageEquip) ~= nil then
  473. tolua.setpeer(self.imageEquip, nil)
  474. end
  475. self.imageEquip = nil
  476. if tolua.getpeer(self.btnEquipForge) ~= nil then
  477. tolua.setpeer(self.btnEquipForge, nil)
  478. end
  479. self.btnEquipForge = nil
  480. if tolua.getpeer(self.btnSummon) ~= nil then
  481. tolua.setpeer(self.btnSummon, nil)
  482. end
  483. self.btnSummon = nil
  484. if tolua.getpeer(self.btnMail) ~= nil then
  485. tolua.setpeer(self.btnMail, nil)
  486. end
  487. self.btnMail = nil
  488. if tolua.getpeer(self.btnNotifyActivity) ~= nil then
  489. tolua.setpeer(self.btnNotifyActivity, nil)
  490. end
  491. self.btnNotifyActivity = nil
  492. if tolua.getpeer(self.middleView) ~= nil then
  493. tolua.setpeer(self.middleView, nil)
  494. end
  495. self.middleView = nil
  496. if tolua.getpeer(self.redEnvelope) ~= nil then
  497. tolua.setpeer(self.redEnvelope, nil)
  498. end
  499. self.redEnvelope = nil
  500. self.transform = nil
  501. self.gameObject = nil
  502. self.inited = false
  503. end
  504. return UIMainCity1View