UIExpiditionHelpLogView_Generate.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. ---@class UIExpiditionHelpLog__Generate_logScrollList_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  4. ---@class UIExpiditionHelpLog__Generate_logScrollList
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@field public content UIExpiditionHelpLog__Generate_logScrollList_content
  8. ---@class UIExpiditionHelpLog__Generate_leftAssistNumTxt
  9. ---@field public gameObject UnityEngine.GameObject
  10. ---@field public text UnityEngine.UI.Text
  11. ---@class UIExpiditionHelpLog__Generate_leftRescuedNumTxt
  12. ---@field public gameObject UnityEngine.GameObject
  13. ---@field public text UnityEngine.UI.Text
  14. ---@class UIExpiditionHelpLog__Generate_closeBtn
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class UIExpiditionHelpLog__Generate_AnyBtn
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public button UnityEngine.UI.Button
  20. ---@class UIExpiditionHelpLog__Generate
  21. ---@field private gameObject UnityEngine.GameObject
  22. ---@field private transform UnityEngine.Transform
  23. ---@field private AnyBtn UIExpiditionHelpLog__Generate_AnyBtn
  24. ---@field private bottomRoot UnityEngine.GameObject
  25. ---@field private closeBtn UIExpiditionHelpLog__Generate_closeBtn
  26. ---@field private leftRescuedNumTxt UIExpiditionHelpLog__Generate_leftRescuedNumTxt
  27. ---@field private leftAssistNumTxt UIExpiditionHelpLog__Generate_leftAssistNumTxt
  28. ---@field private logScrollList UIExpiditionHelpLog__Generate_logScrollList
  29. ---@field private emptyNode UnityEngine.GameObject
  30. local UIExpiditionHelpLogView = class("UIExpiditionHelpLogView", require("UIViewBase"))
  31. function UIExpiditionHelpLogView:ctor()
  32. end
  33. ---@private
  34. function UIExpiditionHelpLogView:SetActive(result)
  35. self.gameObject:SetActive(result)
  36. end
  37. ---@private
  38. function UIExpiditionHelpLogView:InitGenerate(Root, data)
  39. self.transform = Root
  40. self.inited = true
  41. if self.super.Init then
  42. self.super.Init(self)
  43. end
  44. local tmp
  45. self:InitGenerate__1(Root,data)
  46. self:InitGenerate__2(Root,data)
  47. self:InitGenerate__3(Root,data)
  48. self:InitGenerate__4(Root,data)
  49. self:InitGenerate__5(Root,data)
  50. self:InitGenerate__6(Root,data)
  51. self:InitGenerate__7(Root,data)
  52. self:InitGenerate__8(Root,data)
  53. end
  54. ---@private
  55. function UIExpiditionHelpLogView:InitGenerate__1(Root, data)
  56. --[[
  57. UIAnimator/Alpha
  58. --]]
  59. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  60. if tolua.getpeer(tmp) == nil then
  61. tolua.setpeer(tmp, {})
  62. end
  63. self.AnyBtn = tmp
  64. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  65. end
  66. ---@private
  67. function UIExpiditionHelpLogView:InitGenerate__2(Root, data)
  68. --[[
  69. UIAnimator/Window/Bg/BottomRoot
  70. --]]
  71. local tmp = Root:Find("UIAnimator/Window/Bg/BottomRoot").gameObject
  72. if tolua.getpeer(tmp) == nil then
  73. tolua.setpeer(tmp, {})
  74. end
  75. self.bottomRoot = tmp
  76. end
  77. ---@private
  78. function UIExpiditionHelpLogView:InitGenerate__3(Root, data)
  79. --[[
  80. UIAnimator/Window/Bg/CloseBox/BtnClose
  81. --]]
  82. local tmp = Root:Find("UIAnimator/Window/Bg/CloseBox/BtnClose").gameObject
  83. if tolua.getpeer(tmp) == nil then
  84. tolua.setpeer(tmp, {})
  85. end
  86. self.closeBtn = tmp
  87. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  88. end
  89. ---@private
  90. function UIExpiditionHelpLogView:InitGenerate__4(Root, data)
  91. --[[
  92. UIAnimator/Window/Content/Top/Text1/Times
  93. --]]
  94. local tmp = Root:Find("UIAnimator/Window/Content/Top/Text1/Times").gameObject
  95. if tolua.getpeer(tmp) == nil then
  96. tolua.setpeer(tmp, {})
  97. end
  98. self.leftRescuedNumTxt = tmp
  99. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  100. end
  101. ---@private
  102. function UIExpiditionHelpLogView:InitGenerate__5(Root, data)
  103. --[[
  104. UIAnimator/Window/Content/Top/Text2/Times
  105. --]]
  106. local tmp = Root:Find("UIAnimator/Window/Content/Top/Text2/Times").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.leftAssistNumTxt = tmp
  111. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  112. end
  113. ---@private
  114. function UIExpiditionHelpLogView:InitGenerate__6(Root, data)
  115. --[[
  116. UIAnimator/Window/Content/Center/Scroll View
  117. --]]
  118. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View").gameObject
  119. if tolua.getpeer(tmp) == nil then
  120. tolua.setpeer(tmp, {})
  121. end
  122. self.logScrollList = tmp
  123. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  124. end
  125. ---@private
  126. function UIExpiditionHelpLogView:InitGenerate__7(Root, data)
  127. --[[
  128. UIAnimator/Window/Content/Center/Scroll View/Viewport/Content
  129. --]]
  130. local tmp = Root:Find("UIAnimator/Window/Content/Center/Scroll View/Viewport/Content").gameObject
  131. if tolua.getpeer(tmp) == nil then
  132. tolua.setpeer(tmp, {})
  133. end
  134. self.logScrollList.content = tmp
  135. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  136. end
  137. ---@private
  138. function UIExpiditionHelpLogView:InitGenerate__8(Root, data)
  139. --[[
  140. UIAnimator/Window/Content/Center/Empty
  141. --]]
  142. local tmp = Root:Find("UIAnimator/Window/Content/Center/Empty").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.emptyNode = tmp
  147. end
  148. ---@private
  149. function UIExpiditionHelpLogView:GenerateDestroy()
  150. if tolua.getpeer(self.logScrollList.content) ~= nil then
  151. tolua.setpeer(self.logScrollList.content, nil)
  152. end
  153. if tolua.getpeer(self.AnyBtn) ~= nil then
  154. tolua.setpeer(self.AnyBtn, nil)
  155. end
  156. self.AnyBtn = nil
  157. if tolua.getpeer(self.bottomRoot) ~= nil then
  158. tolua.setpeer(self.bottomRoot, nil)
  159. end
  160. self.bottomRoot = nil
  161. if tolua.getpeer(self.closeBtn) ~= nil then
  162. tolua.setpeer(self.closeBtn, nil)
  163. end
  164. self.closeBtn = nil
  165. if tolua.getpeer(self.leftRescuedNumTxt) ~= nil then
  166. tolua.setpeer(self.leftRescuedNumTxt, nil)
  167. end
  168. self.leftRescuedNumTxt = nil
  169. if tolua.getpeer(self.leftAssistNumTxt) ~= nil then
  170. tolua.setpeer(self.leftAssistNumTxt, nil)
  171. end
  172. self.leftAssistNumTxt = nil
  173. if tolua.getpeer(self.logScrollList) ~= nil then
  174. tolua.setpeer(self.logScrollList, nil)
  175. end
  176. self.logScrollList = nil
  177. if tolua.getpeer(self.emptyNode) ~= nil then
  178. tolua.setpeer(self.emptyNode, nil)
  179. end
  180. self.emptyNode = nil
  181. self.transform = nil
  182. self.gameObject = nil
  183. self.inited = false
  184. end
  185. return UIExpiditionHelpLogView