UIGuildHuntMasterRewardView_Generate.lua 7.7 KB

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