UIExpeditionView_Generate.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. ---@class UIExpedition__Generate_ruleBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIExpedition__Generate_helpLogBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIExpedition__Generate_timesNode_leftTimesTxt
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIExpedition__Generate_timesNode
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public leftTimesTxt UIExpedition__Generate_timesNode_leftTimesTxt
  13. ---@class UIExpedition__Generate_backBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIExpedition__Generate_BtnRank
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIExpedition__Generate_text
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public text UnityEngine.UI.Text
  22. ---@class UIExpedition__Generate_dungeonGroupScrollList_content
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  25. ---@class UIExpedition__Generate_dungeonGroupScrollList
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public rectTransform UnityEngine.RectTransform
  28. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  29. ---@field public content UIExpedition__Generate_dungeonGroupScrollList_content
  30. ---@class UIExpedition__Generate_AnyBtn
  31. ---@field public gameObject UnityEngine.GameObject
  32. ---@field public button UnityEngine.UI.Button
  33. ---@class UIExpedition__Generate
  34. ---@field private gameObject UnityEngine.GameObject
  35. ---@field private transform UnityEngine.Transform
  36. ---@field private AnyBtn UIExpedition__Generate_AnyBtn
  37. ---@field private dungeonGroupScrollList UIExpedition__Generate_dungeonGroupScrollList
  38. ---@field private text UIExpedition__Generate_text
  39. ---@field private BtnRank UIExpedition__Generate_BtnRank
  40. ---@field private backBtn UIExpedition__Generate_backBtn
  41. ---@field private timesNode UIExpedition__Generate_timesNode
  42. ---@field private helpLogBtn UIExpedition__Generate_helpLogBtn
  43. ---@field private ruleBtn UIExpedition__Generate_ruleBtn
  44. local UIExpeditionView = class("UIExpeditionView", require("UIViewBase"))
  45. function UIExpeditionView:ctor()
  46. end
  47. ---@private
  48. function UIExpeditionView:SetActive(result)
  49. self.gameObject:SetActive(result)
  50. end
  51. ---@private
  52. function UIExpeditionView:InitGenerate(Root, data)
  53. self.transform = Root
  54. self.inited = true
  55. if self.super.Init then
  56. self.super.Init(self)
  57. end
  58. local tmp
  59. self:InitGenerate__1(Root,data)
  60. self:InitGenerate__2(Root,data)
  61. self:InitGenerate__3(Root,data)
  62. self:InitGenerate__4(Root,data)
  63. self:InitGenerate__5(Root,data)
  64. self:InitGenerate__6(Root,data)
  65. self:InitGenerate__7(Root,data)
  66. self:InitGenerate__8(Root,data)
  67. self:InitGenerate__9(Root,data)
  68. self:InitGenerate__10(Root,data)
  69. end
  70. ---@private
  71. function UIExpeditionView:InitGenerate__1(Root, data)
  72. --[[
  73. UIAnimator/Alpha
  74. --]]
  75. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  76. if tolua.getpeer(tmp) == nil then
  77. tolua.setpeer(tmp, {})
  78. end
  79. self.AnyBtn = tmp
  80. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  81. end
  82. ---@private
  83. function UIExpeditionView:InitGenerate__2(Root, data)
  84. --[[
  85. UIAnimator/Window/DungeonGroup
  86. --]]
  87. local tmp = Root:Find("UIAnimator/Window/DungeonGroup").gameObject
  88. if tolua.getpeer(tmp) == nil then
  89. tolua.setpeer(tmp, {})
  90. end
  91. self.dungeonGroupScrollList = tmp
  92. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  93. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  94. end
  95. ---@private
  96. function UIExpeditionView:InitGenerate__3(Root, data)
  97. --[[
  98. UIAnimator/Window/DungeonGroup/Viewport/Content
  99. --]]
  100. local tmp = Root:Find("UIAnimator/Window/DungeonGroup/Viewport/Content").gameObject
  101. if tolua.getpeer(tmp) == nil then
  102. tolua.setpeer(tmp, {})
  103. end
  104. self.dungeonGroupScrollList.content = tmp
  105. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  106. end
  107. ---@private
  108. function UIExpeditionView:InitGenerate__4(Root, data)
  109. --[[
  110. UIAnimator/Window/Top/Image/Image/Text
  111. --]]
  112. local tmp = Root:Find("UIAnimator/Window/Top/Image/Image/Text").gameObject
  113. if tolua.getpeer(tmp) == nil then
  114. tolua.setpeer(tmp, {})
  115. end
  116. self.text = tmp
  117. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  118. end
  119. ---@private
  120. function UIExpeditionView:InitGenerate__5(Root, data)
  121. --[[
  122. UIAnimator/Window/Top/Image/BtnRank
  123. --]]
  124. local tmp = Root:Find("UIAnimator/Window/Top/Image/BtnRank").gameObject
  125. if tolua.getpeer(tmp) == nil then
  126. tolua.setpeer(tmp, {})
  127. end
  128. self.BtnRank = tmp
  129. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  130. end
  131. ---@private
  132. function UIExpeditionView:InitGenerate__6(Root, data)
  133. --[[
  134. UIAnimator/Window/BtnBack
  135. --]]
  136. local tmp = Root:Find("UIAnimator/Window/BtnBack").gameObject
  137. if tolua.getpeer(tmp) == nil then
  138. tolua.setpeer(tmp, {})
  139. end
  140. self.backBtn = tmp
  141. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  142. end
  143. ---@private
  144. function UIExpeditionView:InitGenerate__7(Root, data)
  145. --[[
  146. UIAnimator/Window/Times
  147. --]]
  148. local tmp = Root:Find("UIAnimator/Window/Times").gameObject
  149. if tolua.getpeer(tmp) == nil then
  150. tolua.setpeer(tmp, {})
  151. end
  152. self.timesNode = tmp
  153. end
  154. ---@private
  155. function UIExpeditionView:InitGenerate__8(Root, data)
  156. --[[
  157. UIAnimator/Window/Times/Number
  158. --]]
  159. local tmp = Root:Find("UIAnimator/Window/Times/Number").gameObject
  160. if tolua.getpeer(tmp) == nil then
  161. tolua.setpeer(tmp, {})
  162. end
  163. self.timesNode.leftTimesTxt = tmp
  164. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  165. end
  166. ---@private
  167. function UIExpeditionView:InitGenerate__9(Root, data)
  168. --[[
  169. UIAnimator/Window/BtnHelpLog
  170. --]]
  171. local tmp = Root:Find("UIAnimator/Window/BtnHelpLog").gameObject
  172. if tolua.getpeer(tmp) == nil then
  173. tolua.setpeer(tmp, {})
  174. end
  175. self.helpLogBtn = tmp
  176. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  177. end
  178. ---@private
  179. function UIExpeditionView:InitGenerate__10(Root, data)
  180. --[[
  181. UIAnimator/Window/BtnInfo
  182. --]]
  183. local tmp = Root:Find("UIAnimator/Window/BtnInfo").gameObject
  184. if tolua.getpeer(tmp) == nil then
  185. tolua.setpeer(tmp, {})
  186. end
  187. self.ruleBtn = tmp
  188. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  189. end
  190. ---@private
  191. function UIExpeditionView:GenerateDestroy()
  192. if tolua.getpeer(self.timesNode.leftTimesTxt) ~= nil then
  193. tolua.setpeer(self.timesNode.leftTimesTxt, nil)
  194. end
  195. if tolua.getpeer(self.dungeonGroupScrollList.content) ~= nil then
  196. tolua.setpeer(self.dungeonGroupScrollList.content, nil)
  197. end
  198. if tolua.getpeer(self.AnyBtn) ~= nil then
  199. tolua.setpeer(self.AnyBtn, nil)
  200. end
  201. self.AnyBtn = nil
  202. if tolua.getpeer(self.dungeonGroupScrollList) ~= nil then
  203. tolua.setpeer(self.dungeonGroupScrollList, nil)
  204. end
  205. self.dungeonGroupScrollList = nil
  206. if tolua.getpeer(self.text) ~= nil then
  207. tolua.setpeer(self.text, nil)
  208. end
  209. self.text = nil
  210. if tolua.getpeer(self.BtnRank) ~= nil then
  211. tolua.setpeer(self.BtnRank, nil)
  212. end
  213. self.BtnRank = nil
  214. if tolua.getpeer(self.backBtn) ~= nil then
  215. tolua.setpeer(self.backBtn, nil)
  216. end
  217. self.backBtn = nil
  218. if tolua.getpeer(self.timesNode) ~= nil then
  219. tolua.setpeer(self.timesNode, nil)
  220. end
  221. self.timesNode = nil
  222. if tolua.getpeer(self.helpLogBtn) ~= nil then
  223. tolua.setpeer(self.helpLogBtn, nil)
  224. end
  225. self.helpLogBtn = nil
  226. if tolua.getpeer(self.ruleBtn) ~= nil then
  227. tolua.setpeer(self.ruleBtn, nil)
  228. end
  229. self.ruleBtn = nil
  230. self.transform = nil
  231. self.gameObject = nil
  232. self.inited = false
  233. end
  234. return UIExpeditionView