UIExpeditionArrangeView_Generate.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. ---@class UIExpeditionArrange__Generate_backBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIExpeditionArrange__Generate_helpLogBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIExpeditionArrange__Generate_helpBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIExpeditionArrange__Generate_hero6
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public rectTransform UnityEngine.RectTransform
  13. ---@class UIExpeditionArrange__Generate_hero5
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public rectTransform UnityEngine.RectTransform
  16. ---@class UIExpeditionArrange__Generate_hero4
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public rectTransform UnityEngine.RectTransform
  19. ---@class UIExpeditionArrange__Generate_hero3
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public rectTransform UnityEngine.RectTransform
  22. ---@class UIExpeditionArrange__Generate_hero2
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public rectTransform UnityEngine.RectTransform
  25. ---@class UIExpeditionArrange__Generate_hero1
  26. ---@field public gameObject UnityEngine.GameObject
  27. ---@field public rectTransform UnityEngine.RectTransform
  28. ---@class UIExpeditionArrange__Generate_fighterPowerText
  29. ---@field public gameObject UnityEngine.GameObject
  30. ---@field public text UnityEngine.UI.Text
  31. ---@class UIExpeditionArrange__Generate
  32. ---@field private gameObject UnityEngine.GameObject
  33. ---@field private transform UnityEngine.Transform
  34. ---@field private selectedHero1 UnityEngine.GameObject
  35. ---@field private selectedHero2 UnityEngine.GameObject
  36. ---@field private selectedHero3 UnityEngine.GameObject
  37. ---@field private selectedHero4 UnityEngine.GameObject
  38. ---@field private fighterPowerText UIExpeditionArrange__Generate_fighterPowerText
  39. ---@field private roleList UnityEngine.GameObject
  40. ---@field private roleListAnim UnityEngine.GameObject
  41. ---@field private hero1 UIExpeditionArrange__Generate_hero1
  42. ---@field private hero2 UIExpeditionArrange__Generate_hero2
  43. ---@field private hero3 UIExpeditionArrange__Generate_hero3
  44. ---@field private hero4 UIExpeditionArrange__Generate_hero4
  45. ---@field private hero5 UIExpeditionArrange__Generate_hero5
  46. ---@field private hero6 UIExpeditionArrange__Generate_hero6
  47. ---@field private helpBtn UIExpeditionArrange__Generate_helpBtn
  48. ---@field private helpLogBtn UIExpeditionArrange__Generate_helpLogBtn
  49. ---@field private backBtn UIExpeditionArrange__Generate_backBtn
  50. local UIExpeditionArrangeView = class("UIExpeditionArrangeView", require("UIViewBase"))
  51. function UIExpeditionArrangeView:ctor()
  52. end
  53. ---@private
  54. function UIExpeditionArrangeView:SetActive(result)
  55. self.gameObject:SetActive(result)
  56. end
  57. ---@private
  58. function UIExpeditionArrangeView:InitGenerate(Root, data)
  59. self.transform = Root
  60. self.inited = true
  61. if self.super.Init then
  62. self.super.Init(self)
  63. end
  64. local tmp
  65. self:InitGenerate__1(Root,data)
  66. self:InitGenerate__2(Root,data)
  67. self:InitGenerate__3(Root,data)
  68. self:InitGenerate__4(Root,data)
  69. self:InitGenerate__5(Root,data)
  70. self:InitGenerate__6(Root,data)
  71. self:InitGenerate__7(Root,data)
  72. self:InitGenerate__8(Root,data)
  73. self:InitGenerate__9(Root,data)
  74. self:InitGenerate__10(Root,data)
  75. self:InitGenerate__11(Root,data)
  76. self:InitGenerate__12(Root,data)
  77. self:InitGenerate__13(Root,data)
  78. self:InitGenerate__14(Root,data)
  79. self:InitGenerate__15(Root,data)
  80. self:InitGenerate__16(Root,data)
  81. end
  82. ---@private
  83. function UIExpeditionArrangeView:InitGenerate__1(Root, data)
  84. --[[
  85. Window/CenterView/Character1
  86. --]]
  87. local tmp = Root:Find("Window/CenterView/Character1").gameObject
  88. if tolua.getpeer(tmp) == nil then
  89. tolua.setpeer(tmp, {})
  90. end
  91. self.selectedHero1 = tmp
  92. end
  93. ---@private
  94. function UIExpeditionArrangeView:InitGenerate__2(Root, data)
  95. --[[
  96. Window/CenterView/Character2
  97. --]]
  98. local tmp = Root:Find("Window/CenterView/Character2").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.selectedHero2 = tmp
  103. end
  104. ---@private
  105. function UIExpeditionArrangeView:InitGenerate__3(Root, data)
  106. --[[
  107. Window/CenterView/Character3
  108. --]]
  109. local tmp = Root:Find("Window/CenterView/Character3").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.selectedHero3 = tmp
  114. end
  115. ---@private
  116. function UIExpeditionArrangeView:InitGenerate__4(Root, data)
  117. --[[
  118. Window/CenterView/Character4
  119. --]]
  120. local tmp = Root:Find("Window/CenterView/Character4").gameObject
  121. if tolua.getpeer(tmp) == nil then
  122. tolua.setpeer(tmp, {})
  123. end
  124. self.selectedHero4 = tmp
  125. end
  126. ---@private
  127. function UIExpeditionArrangeView:InitGenerate__5(Root, data)
  128. --[[
  129. Window/CenterView/FightPowerInfo/Val
  130. --]]
  131. local tmp = Root:Find("Window/CenterView/FightPowerInfo/Val").gameObject
  132. if tolua.getpeer(tmp) == nil then
  133. tolua.setpeer(tmp, {})
  134. end
  135. self.fighterPowerText = tmp
  136. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  137. end
  138. ---@private
  139. function UIExpeditionArrangeView:InitGenerate__6(Root, data)
  140. --[[
  141. Window/BottomView/RoleList
  142. --]]
  143. local tmp = Root:Find("Window/BottomView/RoleList").gameObject
  144. if tolua.getpeer(tmp) == nil then
  145. tolua.setpeer(tmp, {})
  146. end
  147. self.roleList = tmp
  148. end
  149. ---@private
  150. function UIExpeditionArrangeView:InitGenerate__7(Root, data)
  151. --[[
  152. Window/BottomView/RoleList/RoleListAnim
  153. --]]
  154. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.roleListAnim = tmp
  159. end
  160. ---@private
  161. function UIExpeditionArrangeView:InitGenerate__8(Root, data)
  162. --[[
  163. Window/BottomView/RoleList/RoleListAnim/Role1
  164. --]]
  165. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role1").gameObject
  166. if tolua.getpeer(tmp) == nil then
  167. tolua.setpeer(tmp, {})
  168. end
  169. self.hero1 = tmp
  170. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  171. end
  172. ---@private
  173. function UIExpeditionArrangeView:InitGenerate__9(Root, data)
  174. --[[
  175. Window/BottomView/RoleList/RoleListAnim/Role2
  176. --]]
  177. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role2").gameObject
  178. if tolua.getpeer(tmp) == nil then
  179. tolua.setpeer(tmp, {})
  180. end
  181. self.hero2 = tmp
  182. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  183. end
  184. ---@private
  185. function UIExpeditionArrangeView:InitGenerate__10(Root, data)
  186. --[[
  187. Window/BottomView/RoleList/RoleListAnim/Role3
  188. --]]
  189. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role3").gameObject
  190. if tolua.getpeer(tmp) == nil then
  191. tolua.setpeer(tmp, {})
  192. end
  193. self.hero3 = tmp
  194. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  195. end
  196. ---@private
  197. function UIExpeditionArrangeView:InitGenerate__11(Root, data)
  198. --[[
  199. Window/BottomView/RoleList/RoleListAnim/Role4
  200. --]]
  201. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role4").gameObject
  202. if tolua.getpeer(tmp) == nil then
  203. tolua.setpeer(tmp, {})
  204. end
  205. self.hero4 = tmp
  206. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  207. end
  208. ---@private
  209. function UIExpeditionArrangeView:InitGenerate__12(Root, data)
  210. --[[
  211. Window/BottomView/RoleList/RoleListAnim/Role5
  212. --]]
  213. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role5").gameObject
  214. if tolua.getpeer(tmp) == nil then
  215. tolua.setpeer(tmp, {})
  216. end
  217. self.hero5 = tmp
  218. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  219. end
  220. ---@private
  221. function UIExpeditionArrangeView:InitGenerate__13(Root, data)
  222. --[[
  223. Window/BottomView/RoleList/RoleListAnim/Role6
  224. --]]
  225. local tmp = Root:Find("Window/BottomView/RoleList/RoleListAnim/Role6").gameObject
  226. if tolua.getpeer(tmp) == nil then
  227. tolua.setpeer(tmp, {})
  228. end
  229. self.hero6 = tmp
  230. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  231. end
  232. ---@private
  233. function UIExpeditionArrangeView:InitGenerate__14(Root, data)
  234. --[[
  235. Window/BottomView/Content/BtnCall
  236. --]]
  237. local tmp = Root:Find("Window/BottomView/Content/BtnCall").gameObject
  238. if tolua.getpeer(tmp) == nil then
  239. tolua.setpeer(tmp, {})
  240. end
  241. self.helpBtn = tmp
  242. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  243. end
  244. ---@private
  245. function UIExpeditionArrangeView:InitGenerate__15(Root, data)
  246. --[[
  247. Window/BottomView/Content/BtnLog
  248. --]]
  249. local tmp = Root:Find("Window/BottomView/Content/BtnLog").gameObject
  250. if tolua.getpeer(tmp) == nil then
  251. tolua.setpeer(tmp, {})
  252. end
  253. self.helpLogBtn = tmp
  254. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  255. end
  256. ---@private
  257. function UIExpeditionArrangeView:InitGenerate__16(Root, data)
  258. --[[
  259. Window/BottomView/Content/BtnBack
  260. --]]
  261. local tmp = Root:Find("Window/BottomView/Content/BtnBack").gameObject
  262. if tolua.getpeer(tmp) == nil then
  263. tolua.setpeer(tmp, {})
  264. end
  265. self.backBtn = tmp
  266. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  267. end
  268. ---@private
  269. function UIExpeditionArrangeView:GenerateDestroy()
  270. if tolua.getpeer(self.selectedHero1) ~= nil then
  271. tolua.setpeer(self.selectedHero1, nil)
  272. end
  273. self.selectedHero1 = nil
  274. if tolua.getpeer(self.selectedHero2) ~= nil then
  275. tolua.setpeer(self.selectedHero2, nil)
  276. end
  277. self.selectedHero2 = nil
  278. if tolua.getpeer(self.selectedHero3) ~= nil then
  279. tolua.setpeer(self.selectedHero3, nil)
  280. end
  281. self.selectedHero3 = nil
  282. if tolua.getpeer(self.selectedHero4) ~= nil then
  283. tolua.setpeer(self.selectedHero4, nil)
  284. end
  285. self.selectedHero4 = nil
  286. if tolua.getpeer(self.fighterPowerText) ~= nil then
  287. tolua.setpeer(self.fighterPowerText, nil)
  288. end
  289. self.fighterPowerText = nil
  290. if tolua.getpeer(self.roleList) ~= nil then
  291. tolua.setpeer(self.roleList, nil)
  292. end
  293. self.roleList = nil
  294. if tolua.getpeer(self.roleListAnim) ~= nil then
  295. tolua.setpeer(self.roleListAnim, nil)
  296. end
  297. self.roleListAnim = nil
  298. if tolua.getpeer(self.hero1) ~= nil then
  299. tolua.setpeer(self.hero1, nil)
  300. end
  301. self.hero1 = nil
  302. if tolua.getpeer(self.hero2) ~= nil then
  303. tolua.setpeer(self.hero2, nil)
  304. end
  305. self.hero2 = nil
  306. if tolua.getpeer(self.hero3) ~= nil then
  307. tolua.setpeer(self.hero3, nil)
  308. end
  309. self.hero3 = nil
  310. if tolua.getpeer(self.hero4) ~= nil then
  311. tolua.setpeer(self.hero4, nil)
  312. end
  313. self.hero4 = nil
  314. if tolua.getpeer(self.hero5) ~= nil then
  315. tolua.setpeer(self.hero5, nil)
  316. end
  317. self.hero5 = nil
  318. if tolua.getpeer(self.hero6) ~= nil then
  319. tolua.setpeer(self.hero6, nil)
  320. end
  321. self.hero6 = nil
  322. if tolua.getpeer(self.helpBtn) ~= nil then
  323. tolua.setpeer(self.helpBtn, nil)
  324. end
  325. self.helpBtn = nil
  326. if tolua.getpeer(self.helpLogBtn) ~= nil then
  327. tolua.setpeer(self.helpLogBtn, nil)
  328. end
  329. self.helpLogBtn = nil
  330. if tolua.getpeer(self.backBtn) ~= nil then
  331. tolua.setpeer(self.backBtn, nil)
  332. end
  333. self.backBtn = nil
  334. self.transform = nil
  335. self.gameObject = nil
  336. self.inited = false
  337. end
  338. return UIExpeditionArrangeView