UIExpeditionBlessView_Generate.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. ---@class UIExpeditionBless__Generate_buffScrollList_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  4. ---@class UIExpeditionBless__Generate_buffScrollList
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@field public content UIExpeditionBless__Generate_buffScrollList_content
  8. ---@class UIExpeditionBless__Generate_closeBtn
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public button UnityEngine.UI.Button
  11. ---@class UIExpeditionBless__Generate_AnyBtn
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public button UnityEngine.UI.Button
  14. ---@class UIExpeditionBless__Generate
  15. ---@field private gameObject UnityEngine.GameObject
  16. ---@field private transform UnityEngine.Transform
  17. ---@field private AnyBtn UIExpeditionBless__Generate_AnyBtn
  18. ---@field private bottomRoot UnityEngine.GameObject
  19. ---@field private closeBtn UIExpeditionBless__Generate_closeBtn
  20. ---@field private buffScrollList UIExpeditionBless__Generate_buffScrollList
  21. ---@field private emptyNode UnityEngine.GameObject
  22. local UIExpeditionBlessView = class("UIExpeditionBlessView", require("UIViewBase"))
  23. function UIExpeditionBlessView:ctor()
  24. end
  25. ---@private
  26. function UIExpeditionBlessView:SetActive(result)
  27. self.gameObject:SetActive(result)
  28. end
  29. ---@private
  30. function UIExpeditionBlessView:InitGenerate(Root, data)
  31. self.transform = Root
  32. self.inited = true
  33. if self.super.Init then
  34. self.super.Init(self)
  35. end
  36. local tmp
  37. self:InitGenerate__1(Root,data)
  38. self:InitGenerate__2(Root,data)
  39. self:InitGenerate__3(Root,data)
  40. self:InitGenerate__4(Root,data)
  41. self:InitGenerate__5(Root,data)
  42. self:InitGenerate__6(Root,data)
  43. end
  44. ---@private
  45. function UIExpeditionBlessView:InitGenerate__1(Root, data)
  46. --[[
  47. UIAnimator/Alpha
  48. --]]
  49. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  50. if tolua.getpeer(tmp) == nil then
  51. tolua.setpeer(tmp, {})
  52. end
  53. self.AnyBtn = tmp
  54. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  55. end
  56. ---@private
  57. function UIExpeditionBlessView:InitGenerate__2(Root, data)
  58. --[[
  59. UIAnimator/Window/Bg/BottomRoot
  60. --]]
  61. local tmp = Root:Find("UIAnimator/Window/Bg/BottomRoot").gameObject
  62. if tolua.getpeer(tmp) == nil then
  63. tolua.setpeer(tmp, {})
  64. end
  65. self.bottomRoot = tmp
  66. end
  67. ---@private
  68. function UIExpeditionBlessView:InitGenerate__3(Root, data)
  69. --[[
  70. UIAnimator/Window/Bg/CloseBox/BtnClose
  71. --]]
  72. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  73. if tolua.getpeer(tmp) == nil then
  74. tolua.setpeer(tmp, {})
  75. end
  76. self.closeBtn = tmp
  77. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  78. end
  79. ---@private
  80. function UIExpeditionBlessView:InitGenerate__4(Root, data)
  81. --[[
  82. UIAnimator/Window/Content/Center/Scroll View
  83. --]]
  84. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View").gameObject
  85. if tolua.getpeer(tmp) == nil then
  86. tolua.setpeer(tmp, {})
  87. end
  88. self.buffScrollList = tmp
  89. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  90. end
  91. ---@private
  92. function UIExpeditionBlessView:InitGenerate__5(Root, data)
  93. --[[
  94. UIAnimator/Window/Content/Center/Scroll View/Viewport/Content
  95. --]]
  96. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View/Viewport/Content").gameObject
  97. if tolua.getpeer(tmp) == nil then
  98. tolua.setpeer(tmp, {})
  99. end
  100. self.buffScrollList.content = tmp
  101. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  102. end
  103. ---@private
  104. function UIExpeditionBlessView:InitGenerate__6(Root, data)
  105. --[[
  106. UIAnimator/Window/Content/Center/Empty
  107. --]]
  108. local tmp = Root:Find("UIAnimator/Window/Content/Center/Empty").gameObject
  109. if tolua.getpeer(tmp) == nil then
  110. tolua.setpeer(tmp, {})
  111. end
  112. self.emptyNode = tmp
  113. end
  114. ---@private
  115. function UIExpeditionBlessView:GenerateDestroy()
  116. if tolua.getpeer(self.buffScrollList.content) ~= nil then
  117. tolua.setpeer(self.buffScrollList.content, nil)
  118. end
  119. if tolua.getpeer(self.AnyBtn) ~= nil then
  120. tolua.setpeer(self.AnyBtn, nil)
  121. end
  122. self.AnyBtn = nil
  123. if tolua.getpeer(self.bottomRoot) ~= nil then
  124. tolua.setpeer(self.bottomRoot, nil)
  125. end
  126. self.bottomRoot = nil
  127. if tolua.getpeer(self.closeBtn) ~= nil then
  128. tolua.setpeer(self.closeBtn, nil)
  129. end
  130. self.closeBtn = nil
  131. if tolua.getpeer(self.buffScrollList) ~= nil then
  132. tolua.setpeer(self.buffScrollList, nil)
  133. end
  134. self.buffScrollList = nil
  135. if tolua.getpeer(self.emptyNode) ~= nil then
  136. tolua.setpeer(self.emptyNode, nil)
  137. end
  138. self.emptyNode = nil
  139. self.transform = nil
  140. self.gameObject = nil
  141. self.inited = false
  142. end
  143. return UIExpeditionBlessView