UIGuildCreateView_Generate.lua 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. ---@class UIGuildCreate__Generate_desTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIGuildCreate__Generate_icon
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class UIGuildCreate__Generate_createBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIGuildCreate__Generate_input
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public inputField UnityEngine.UI.InputField
  13. ---@class UIGuildCreate__Generate_changeBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIGuildCreate__Generate_guildBadgeItem
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public layoutElement UnityEngine.UI.LayoutElement
  19. ---@class UIGuildCreate__Generate_btnClose
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIGuildCreate__Generate_AnyBtn
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public button UnityEngine.UI.Button
  25. ---@class UIGuildCreate__Generate
  26. ---@field private gameObject UnityEngine.GameObject
  27. ---@field private transform UnityEngine.Transform
  28. ---@field private AnyBtn UIGuildCreate__Generate_AnyBtn
  29. ---@field private btnClose UIGuildCreate__Generate_btnClose
  30. ---@field private guildBadgeItem UIGuildCreate__Generate_guildBadgeItem
  31. ---@field private changeBtn UIGuildCreate__Generate_changeBtn
  32. ---@field private input UIGuildCreate__Generate_input
  33. ---@field private createBtn UIGuildCreate__Generate_createBtn
  34. ---@field private icon UIGuildCreate__Generate_icon
  35. ---@field private desTxt UIGuildCreate__Generate_desTxt
  36. local UIGuildCreateView = class("UIGuildCreateView", require("UIViewBase"))
  37. function UIGuildCreateView:ctor()
  38. end
  39. ---@private
  40. function UIGuildCreateView:SetActive(result)
  41. self.gameObject:SetActive(result)
  42. end
  43. ---@private
  44. function UIGuildCreateView:InitGenerate(Root, data)
  45. self.transform = Root
  46. self.inited = true
  47. if self.super.Init then
  48. self.super.Init(self)
  49. end
  50. local tmp
  51. self:InitGenerate__1(Root,data)
  52. self:InitGenerate__2(Root,data)
  53. self:InitGenerate__3(Root,data)
  54. self:InitGenerate__4(Root,data)
  55. self:InitGenerate__5(Root,data)
  56. self:InitGenerate__6(Root,data)
  57. self:InitGenerate__7(Root,data)
  58. self:InitGenerate__8(Root,data)
  59. end
  60. ---@private
  61. function UIGuildCreateView:InitGenerate__1(Root, data)
  62. --[[
  63. UIAnimator/Alpha
  64. --]]
  65. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  66. if tolua.getpeer(tmp) == nil then
  67. tolua.setpeer(tmp, {})
  68. end
  69. self.AnyBtn = tmp
  70. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  71. end
  72. ---@private
  73. function UIGuildCreateView:InitGenerate__2(Root, data)
  74. --[[
  75. UIAnimator/Window/CloseBox/BtnClose
  76. --]]
  77. local tmp = Root:Find("UIAnimator/Window/CloseBox/BtnClose").gameObject
  78. if tolua.getpeer(tmp) == nil then
  79. tolua.setpeer(tmp, {})
  80. end
  81. self.btnClose = tmp
  82. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  83. end
  84. ---@private
  85. function UIGuildCreateView:InitGenerate__3(Root, data)
  86. --[[
  87. UIAnimator/Window/ChangeList/GuildBadgeItem
  88. --]]
  89. local tmp = Root:Find("UIAnimator/Window/ChangeList/GuildBadgeItem").gameObject
  90. if tolua.getpeer(tmp) == nil then
  91. tolua.setpeer(tmp, {})
  92. end
  93. self.guildBadgeItem = CommonUtil.BindGridViewItem2LuaStatic("GuildBadgeItem", tmp)
  94. self.guildBadgeItem.prefabName = "GuildBadgeItem"
  95. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  96. end
  97. ---@private
  98. function UIGuildCreateView:InitGenerate__4(Root, data)
  99. --[[
  100. UIAnimator/Window/ChangeList/ChangeBtn
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Window/ChangeList/ChangeBtn").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.changeBtn = tmp
  107. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  108. end
  109. ---@private
  110. function UIGuildCreateView:InitGenerate__5(Root, data)
  111. --[[
  112. UIAnimator/Window/ChangeList/Input
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Window/ChangeList/Input").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.input = tmp
  119. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  120. end
  121. ---@private
  122. function UIGuildCreateView:InitGenerate__6(Root, data)
  123. --[[
  124. UIAnimator/Window/Bottom/CreateBtn
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window/Bottom/CreateBtn").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.createBtn = tmp
  131. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  132. end
  133. ---@private
  134. function UIGuildCreateView:InitGenerate__7(Root, data)
  135. --[[
  136. UIAnimator/Window/Bottom/CreateBtn/Content/Consume/Icon
  137. --]]
  138. local tmp = Root:Find("UIAnimator/Window/Bottom/CreateBtn/Content/Consume/Icon").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.icon = tmp
  143. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  144. end
  145. ---@private
  146. function UIGuildCreateView:InitGenerate__8(Root, data)
  147. --[[
  148. UIAnimator/Window/Bottom/CreateBtn/Content/Consume/DesTxt
  149. --]]
  150. local tmp = Root:Find("UIAnimator/Window/Bottom/CreateBtn/Content/Consume/DesTxt").gameObject
  151. if tolua.getpeer(tmp) == nil then
  152. tolua.setpeer(tmp, {})
  153. end
  154. self.desTxt = tmp
  155. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  156. end
  157. ---@private
  158. function UIGuildCreateView:GenerateDestroy()
  159. if tolua.getpeer(self.AnyBtn) ~= nil then
  160. tolua.setpeer(self.AnyBtn, nil)
  161. end
  162. self.AnyBtn = nil
  163. if tolua.getpeer(self.btnClose) ~= nil then
  164. tolua.setpeer(self.btnClose, nil)
  165. end
  166. self.btnClose = nil
  167. if self.guildBadgeItem.GenerateDestroy ~= nil then
  168. self.guildBadgeItem:GenerateDestroy()
  169. end
  170. if tolua.getpeer(self.guildBadgeItem) ~= nil then
  171. tolua.setpeer(self.guildBadgeItem, nil)
  172. end
  173. self.guildBadgeItem = nil
  174. if tolua.getpeer(self.changeBtn) ~= nil then
  175. tolua.setpeer(self.changeBtn, nil)
  176. end
  177. self.changeBtn = nil
  178. if tolua.getpeer(self.input) ~= nil then
  179. tolua.setpeer(self.input, nil)
  180. end
  181. self.input = nil
  182. if tolua.getpeer(self.createBtn) ~= nil then
  183. tolua.setpeer(self.createBtn, nil)
  184. end
  185. self.createBtn = nil
  186. if tolua.getpeer(self.icon) ~= nil then
  187. tolua.setpeer(self.icon, nil)
  188. end
  189. self.icon = nil
  190. if tolua.getpeer(self.desTxt) ~= nil then
  191. tolua.setpeer(self.desTxt, nil)
  192. end
  193. self.desTxt = nil
  194. self.transform = nil
  195. self.gameObject = nil
  196. self.inited = false
  197. end
  198. return UIGuildCreateView