UIExpeditionHelpView_Generate.lua 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. ---@class UIExpeditionHelp__Generate_friendScrollList_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  4. ---@class UIExpeditionHelp__Generate_friendScrollList
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@field public content UIExpeditionHelp__Generate_friendScrollList_content
  8. ---@class UIExpeditionHelp__Generate_leftTime
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public text UnityEngine.UI.Text
  11. ---@class UIExpeditionHelp__Generate_guildCDTxt
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIExpeditionHelp__Generate_btnSure
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public uILocalizeScript UILocalizeScript
  17. ---@class UIExpeditionHelp__Generate_guildHelpBtn
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIExpeditionHelp__Generate_leftRescuedNumTxt
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public text UnityEngine.UI.Text
  23. ---@class UIExpeditionHelp__Generate_guildImg
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public image UnityEngine.UI.Image
  26. ---@class UIExpeditionHelp__Generate_closeBtn
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public button UnityEngine.UI.Button
  29. ---@class UIExpeditionHelp__Generate_AnyBtn
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public button UnityEngine.UI.Button
  32. ---@class UIExpeditionHelp__Generate
  33. ---@field private gameObject UnityEngine.GameObject
  34. ---@field private transform UnityEngine.Transform
  35. ---@field private AnyBtn UIExpeditionHelp__Generate_AnyBtn
  36. ---@field private bottomRoot UnityEngine.GameObject
  37. ---@field private closeBtn UIExpeditionHelp__Generate_closeBtn
  38. ---@field private guildImg UIExpeditionHelp__Generate_guildImg
  39. ---@field private leftRescuedNumTxt UIExpeditionHelp__Generate_leftRescuedNumTxt
  40. ---@field private guildHelpBtn UIExpeditionHelp__Generate_guildHelpBtn
  41. ---@field private btnSure UIExpeditionHelp__Generate_btnSure
  42. ---@field private guildCDTxt UIExpeditionHelp__Generate_guildCDTxt
  43. ---@field private leftTime UIExpeditionHelp__Generate_leftTime
  44. ---@field private friendScrollList UIExpeditionHelp__Generate_friendScrollList
  45. ---@field private emptyNode UnityEngine.GameObject
  46. local UIExpeditionHelpView = class("UIExpeditionHelpView", require("UIViewBase"))
  47. function UIExpeditionHelpView:ctor()
  48. end
  49. ---@private
  50. function UIExpeditionHelpView:SetActive(result)
  51. self.gameObject:SetActive(result)
  52. end
  53. ---@private
  54. function UIExpeditionHelpView:InitGenerate(Root, data)
  55. self.transform = Root
  56. self.inited = true
  57. if self.super.Init then
  58. self.super.Init(self)
  59. end
  60. local tmp
  61. self:InitGenerate__1(Root,data)
  62. self:InitGenerate__2(Root,data)
  63. self:InitGenerate__3(Root,data)
  64. self:InitGenerate__4(Root,data)
  65. self:InitGenerate__5(Root,data)
  66. self:InitGenerate__6(Root,data)
  67. self:InitGenerate__7(Root,data)
  68. self:InitGenerate__8(Root,data)
  69. self:InitGenerate__9(Root,data)
  70. self:InitGenerate__10(Root,data)
  71. self:InitGenerate__11(Root,data)
  72. self:InitGenerate__12(Root,data)
  73. end
  74. ---@private
  75. function UIExpeditionHelpView:InitGenerate__1(Root, data)
  76. --[[
  77. UIAnimator/Alpha
  78. --]]
  79. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  80. if tolua.getpeer(tmp) == nil then
  81. tolua.setpeer(tmp, {})
  82. end
  83. self.AnyBtn = tmp
  84. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  85. end
  86. ---@private
  87. function UIExpeditionHelpView:InitGenerate__2(Root, data)
  88. --[[
  89. UIAnimator/Window/Bg/BottomRoot
  90. --]]
  91. local tmp = Root:Find("UIAnimator/Window/Bg/BottomRoot").gameObject
  92. if tolua.getpeer(tmp) == nil then
  93. tolua.setpeer(tmp, {})
  94. end
  95. self.bottomRoot = tmp
  96. end
  97. ---@private
  98. function UIExpeditionHelpView:InitGenerate__3(Root, data)
  99. --[[
  100. UIAnimator/Window/Bg/CloseBox/BtnClose
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.closeBtn = tmp
  107. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  108. end
  109. ---@private
  110. function UIExpeditionHelpView:InitGenerate__4(Root, data)
  111. --[[
  112. UIAnimator/Window/Content/Top/GuildIcon
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Window/Content/Top/GuildIcon").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.guildImg = tmp
  119. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  120. end
  121. ---@private
  122. function UIExpeditionHelpView:InitGenerate__5(Root, data)
  123. --[[
  124. UIAnimator/Window/Content/Top/Times
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window/Content/Top/Times").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.leftRescuedNumTxt = tmp
  131. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  132. end
  133. ---@private
  134. function UIExpeditionHelpView:InitGenerate__6(Root, data)
  135. --[[
  136. UIAnimator/Window/Content/Top/BtnHelp
  137. --]]
  138. local tmp = Root:Find("UIAnimator/Window/Content/Top/BtnHelp").gameObject
  139. if tolua.getpeer(tmp) == nil then
  140. tolua.setpeer(tmp, {})
  141. end
  142. self.guildHelpBtn = tmp
  143. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  144. end
  145. ---@private
  146. function UIExpeditionHelpView:InitGenerate__7(Root, data)
  147. --[[
  148. UIAnimator/Window/Content/Top/BtnHelp/Content/Text
  149. --]]
  150. local tmp = Root:Find("UIAnimator/Window/Content/Top/BtnHelp/Content/Text").gameObject
  151. if tolua.getpeer(tmp) == nil then
  152. tolua.setpeer(tmp, {})
  153. end
  154. self.btnSure = tmp
  155. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  156. end
  157. ---@private
  158. function UIExpeditionHelpView:InitGenerate__8(Root, data)
  159. --[[
  160. UIAnimator/Window/Content/Top/CD
  161. --]]
  162. local tmp = Root:Find("UIAnimator/Window/Content/Top/CD").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.guildCDTxt = tmp
  167. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  168. end
  169. ---@private
  170. function UIExpeditionHelpView:InitGenerate__9(Root, data)
  171. --[[
  172. UIAnimator/Window/Content/Top/CD/Text
  173. --]]
  174. local tmp = Root:Find("UIAnimator/Window/Content/Top/CD/Text").gameObject
  175. if tolua.getpeer(tmp) == nil then
  176. tolua.setpeer(tmp, {})
  177. end
  178. self.leftTime = tmp
  179. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  180. end
  181. ---@private
  182. function UIExpeditionHelpView:InitGenerate__10(Root, data)
  183. --[[
  184. UIAnimator/Window/Content/Center/Scroll View
  185. --]]
  186. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View").gameObject
  187. if tolua.getpeer(tmp) == nil then
  188. tolua.setpeer(tmp, {})
  189. end
  190. self.friendScrollList = tmp
  191. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  192. end
  193. ---@private
  194. function UIExpeditionHelpView:InitGenerate__11(Root, data)
  195. --[[
  196. UIAnimator/Window/Content/Center/Scroll View/Viewport/Content
  197. --]]
  198. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View/Viewport/Content").gameObject
  199. if tolua.getpeer(tmp) == nil then
  200. tolua.setpeer(tmp, {})
  201. end
  202. self.friendScrollList.content = tmp
  203. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  204. end
  205. ---@private
  206. function UIExpeditionHelpView:InitGenerate__12(Root, data)
  207. --[[
  208. UIAnimator/Window/Content/Center/Empty
  209. --]]
  210. local tmp = Root:Find("UIAnimator/Window/Content/Center/Empty").gameObject
  211. if tolua.getpeer(tmp) == nil then
  212. tolua.setpeer(tmp, {})
  213. end
  214. self.emptyNode = tmp
  215. end
  216. ---@private
  217. function UIExpeditionHelpView:GenerateDestroy()
  218. if tolua.getpeer(self.friendScrollList.content) ~= nil then
  219. tolua.setpeer(self.friendScrollList.content, nil)
  220. end
  221. if tolua.getpeer(self.AnyBtn) ~= nil then
  222. tolua.setpeer(self.AnyBtn, nil)
  223. end
  224. self.AnyBtn = nil
  225. if tolua.getpeer(self.bottomRoot) ~= nil then
  226. tolua.setpeer(self.bottomRoot, nil)
  227. end
  228. self.bottomRoot = nil
  229. if tolua.getpeer(self.closeBtn) ~= nil then
  230. tolua.setpeer(self.closeBtn, nil)
  231. end
  232. self.closeBtn = nil
  233. if tolua.getpeer(self.guildImg) ~= nil then
  234. tolua.setpeer(self.guildImg, nil)
  235. end
  236. self.guildImg = nil
  237. if tolua.getpeer(self.leftRescuedNumTxt) ~= nil then
  238. tolua.setpeer(self.leftRescuedNumTxt, nil)
  239. end
  240. self.leftRescuedNumTxt = nil
  241. if tolua.getpeer(self.guildHelpBtn) ~= nil then
  242. tolua.setpeer(self.guildHelpBtn, nil)
  243. end
  244. self.guildHelpBtn = nil
  245. if tolua.getpeer(self.btnSure) ~= nil then
  246. tolua.setpeer(self.btnSure, nil)
  247. end
  248. self.btnSure = nil
  249. if tolua.getpeer(self.guildCDTxt) ~= nil then
  250. tolua.setpeer(self.guildCDTxt, nil)
  251. end
  252. self.guildCDTxt = nil
  253. if tolua.getpeer(self.leftTime) ~= nil then
  254. tolua.setpeer(self.leftTime, nil)
  255. end
  256. self.leftTime = nil
  257. if tolua.getpeer(self.friendScrollList) ~= nil then
  258. tolua.setpeer(self.friendScrollList, nil)
  259. end
  260. self.friendScrollList = nil
  261. if tolua.getpeer(self.emptyNode) ~= nil then
  262. tolua.setpeer(self.emptyNode, nil)
  263. end
  264. self.emptyNode = nil
  265. self.transform = nil
  266. self.gameObject = nil
  267. self.inited = false
  268. end
  269. return UIExpeditionHelpView