UIGuildWarBuffView_Generate.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. ---@class UIGuildWarBuff__Generate_questionTxt
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public uILocalizeScript UILocalizeScript
  4. ---@class UIGuildWarBuff__Generate_noticeTitle
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UIGuildWarBuff__Generate_btnClose
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIGuildWarBuff__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIGuildWarBuff__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIGuildWarBuff__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIGuildWarBuff__Generate_uIAnimator
  20. ---@field private AnyBtn UIGuildWarBuff__Generate_AnyBtn
  21. ---@field private window UnityEngine.GameObject
  22. ---@field private btnClose UIGuildWarBuff__Generate_btnClose
  23. ---@field private noticeTitle UIGuildWarBuff__Generate_noticeTitle
  24. ---@field private dscBox UnityEngine.GameObject
  25. ---@field private guildWarBuyBuffItem UnityEngine.GameObject
  26. ---@field private btnBox UnityEngine.GameObject
  27. ---@field private title UnityEngine.GameObject
  28. ---@field private questionTxt UIGuildWarBuff__Generate_questionTxt
  29. local UIGuildWarBuffView = class("UIGuildWarBuffView", require("UIViewBase"))
  30. function UIGuildWarBuffView:ctor()
  31. end
  32. ---@private
  33. function UIGuildWarBuffView:SetActive(result)
  34. self.gameObject:SetActive(result)
  35. end
  36. ---@private
  37. function UIGuildWarBuffView:InitGenerate(Root, data)
  38. self.transform = Root
  39. self.inited = true
  40. if self.super.Init then
  41. self.super.Init(self)
  42. end
  43. local tmp
  44. self:InitGenerate__1(Root,data)
  45. self:InitGenerate__2(Root,data)
  46. self:InitGenerate__3(Root,data)
  47. self:InitGenerate__4(Root,data)
  48. self:InitGenerate__5(Root,data)
  49. self:InitGenerate__6(Root,data)
  50. self:InitGenerate__7(Root,data)
  51. self:InitGenerate__8(Root,data)
  52. self:InitGenerate__9(Root,data)
  53. self:InitGenerate__10(Root,data)
  54. end
  55. ---@private
  56. function UIGuildWarBuffView:InitGenerate__1(Root, data)
  57. --[[
  58. UIAnimator
  59. --]]
  60. local tmp = Root:Find("UIAnimator").gameObject
  61. if tolua.getpeer(tmp) == nil then
  62. tolua.setpeer(tmp, {})
  63. end
  64. self.uIAnimator = tmp
  65. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  66. tmp.animator.logWarnings = false
  67. end
  68. ---@private
  69. function UIGuildWarBuffView:InitGenerate__2(Root, data)
  70. --[[
  71. UIAnimator/Alpha
  72. --]]
  73. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.AnyBtn = tmp
  78. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  79. end
  80. ---@private
  81. function UIGuildWarBuffView:InitGenerate__3(Root, data)
  82. --[[
  83. UIAnimator/Window
  84. --]]
  85. local tmp = Root:Find("UIAnimator/Window").gameObject
  86. if tolua.getpeer(tmp) == nil then
  87. tolua.setpeer(tmp, {})
  88. end
  89. self.window = tmp
  90. end
  91. ---@private
  92. function UIGuildWarBuffView:InitGenerate__4(Root, data)
  93. --[[
  94. UIAnimator/Window/BtnClose
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.btnClose = tmp
  101. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  102. end
  103. ---@private
  104. function UIGuildWarBuffView:InitGenerate__5(Root, data)
  105. --[[
  106. UIAnimator/Window/NoticeTitle
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/NoticeTitle").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.noticeTitle = tmp
  113. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  114. end
  115. ---@private
  116. function UIGuildWarBuffView:InitGenerate__6(Root, data)
  117. --[[
  118. UIAnimator/Window/DscBox
  119. --]]
  120. local tmp = Root:Find("UIAnimator/Window/DscBox").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.dscBox = tmp
  125. end
  126. ---@private
  127. function UIGuildWarBuffView:InitGenerate__7(Root, data)
  128. --[[
  129. UIAnimator/Window/DscBox/GuildWarBuyBuffItem
  130. --]]
  131. local tmp = Root:Find("UIAnimator/Window/DscBox/GuildWarBuyBuffItem").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.guildWarBuyBuffItem = CommonUtil.BindGridViewItem2LuaStatic("GuildWarBuyBuffItem", tmp)
  136. self.guildWarBuyBuffItem.prefabName = "GuildWarBuyBuffItem"
  137. end
  138. ---@private
  139. function UIGuildWarBuffView:InitGenerate__8(Root, data)
  140. --[[
  141. UIAnimator/Window/BtnBox
  142. --]]
  143. local tmp = Root:Find("UIAnimator/Window/BtnBox").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.btnBox = tmp
  148. end
  149. ---@private
  150. function UIGuildWarBuffView:InitGenerate__9(Root, data)
  151. --[[
  152. UIAnimator/Window/BtnBox/Title
  153. --]]
  154. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.title = tmp
  159. end
  160. ---@private
  161. function UIGuildWarBuffView:InitGenerate__10(Root, data)
  162. --[[
  163. UIAnimator/Window/BtnBox/Title/QuestionTxt
  164. --]]
  165. local tmp = Root:Find("UIAnimator/Window/BtnBox/Title/QuestionTxt").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.questionTxt = tmp
  170. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  171. end
  172. ---@private
  173. function UIGuildWarBuffView:GenerateDestroy()
  174. if tolua.getpeer(self.uIAnimator) ~= nil then
  175. tolua.setpeer(self.uIAnimator, nil)
  176. end
  177. self.uIAnimator = nil
  178. if tolua.getpeer(self.AnyBtn) ~= nil then
  179. tolua.setpeer(self.AnyBtn, nil)
  180. end
  181. self.AnyBtn = nil
  182. if tolua.getpeer(self.window) ~= nil then
  183. tolua.setpeer(self.window, nil)
  184. end
  185. self.window = nil
  186. if tolua.getpeer(self.btnClose) ~= nil then
  187. tolua.setpeer(self.btnClose, nil)
  188. end
  189. self.btnClose = nil
  190. if tolua.getpeer(self.noticeTitle) ~= nil then
  191. tolua.setpeer(self.noticeTitle, nil)
  192. end
  193. self.noticeTitle = nil
  194. if tolua.getpeer(self.dscBox) ~= nil then
  195. tolua.setpeer(self.dscBox, nil)
  196. end
  197. self.dscBox = nil
  198. if self.guildWarBuyBuffItem.GenerateDestroy ~= nil then
  199. self.guildWarBuyBuffItem:GenerateDestroy()
  200. end
  201. if tolua.getpeer(self.guildWarBuyBuffItem) ~= nil then
  202. tolua.setpeer(self.guildWarBuyBuffItem, nil)
  203. end
  204. self.guildWarBuyBuffItem = nil
  205. if tolua.getpeer(self.btnBox) ~= nil then
  206. tolua.setpeer(self.btnBox, nil)
  207. end
  208. self.btnBox = nil
  209. if tolua.getpeer(self.title) ~= nil then
  210. tolua.setpeer(self.title, nil)
  211. end
  212. self.title = nil
  213. if tolua.getpeer(self.questionTxt) ~= nil then
  214. tolua.setpeer(self.questionTxt, nil)
  215. end
  216. self.questionTxt = nil
  217. self.transform = nil
  218. self.gameObject = nil
  219. self.inited = false
  220. end
  221. return UIGuildWarBuffView