UIFashionSuitesTipsView_Generate.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. ---@class UIFashionSuitesTips__Generate_fashionSuitesItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@class UIFashionSuitesTips__Generate_scrollviewContent
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public verticalLayoutGroup UnityEngine.UI.VerticalLayoutGroup
  7. ---@class UIFashionSuitesTips__Generate_suitesScrollView
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public loopListView SuperScrollView.LoopListView
  10. ---@class UIFashionSuitesTips__Generate_btnClose
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIFashionSuitesTips__Generate_AnyBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIFashionSuitesTips__Generate_uIAnimator
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public animator UnityEngine.Animator
  19. ---@class UIFashionSuitesTips__Generate
  20. ---@field private gameObject UnityEngine.GameObject
  21. ---@field private transform UnityEngine.Transform
  22. ---@field private uIAnimator UIFashionSuitesTips__Generate_uIAnimator
  23. ---@field private AnyBtn UIFashionSuitesTips__Generate_AnyBtn
  24. ---@field private btnClose UIFashionSuitesTips__Generate_btnClose
  25. ---@field private suitesScrollView UIFashionSuitesTips__Generate_suitesScrollView
  26. ---@field private scrollviewContent UIFashionSuitesTips__Generate_scrollviewContent
  27. ---@field private fashionSuitesItem UIFashionSuitesTips__Generate_fashionSuitesItem
  28. local UIFashionSuitesTipsView = class("UIFashionSuitesTipsView", require("UIViewBase"))
  29. function UIFashionSuitesTipsView:ctor()
  30. end
  31. ---@private
  32. function UIFashionSuitesTipsView:SetActive(result)
  33. self.gameObject:SetActive(result)
  34. end
  35. ---@private
  36. function UIFashionSuitesTipsView:InitGenerate(Root, data)
  37. self.transform = Root
  38. self.inited = true
  39. if self.super.Init then
  40. self.super.Init(self)
  41. end
  42. local tmp
  43. self:InitGenerate__1(Root,data)
  44. self:InitGenerate__2(Root,data)
  45. self:InitGenerate__3(Root,data)
  46. self:InitGenerate__4(Root,data)
  47. self:InitGenerate__5(Root,data)
  48. self:InitGenerate__6(Root,data)
  49. end
  50. ---@private
  51. function UIFashionSuitesTipsView:InitGenerate__1(Root, data)
  52. --[[
  53. UIAnimator
  54. --]]
  55. local tmp = Root:Find("UIAnimator").gameObject
  56. if tolua.getpeer(tmp) == nil then
  57. tolua.setpeer(tmp, {})
  58. end
  59. self.uIAnimator = tmp
  60. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  61. tmp.animator.logWarnings = false
  62. end
  63. ---@private
  64. function UIFashionSuitesTipsView:InitGenerate__2(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 UIFashionSuitesTipsView:InitGenerate__3(Root, data)
  77. --[[
  78. UIAnimator/Window/BtnClose
  79. --]]
  80. local tmp = Root:Find("UIAnimator/Window/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 UIFashionSuitesTipsView:InitGenerate__4(Root, data)
  89. --[[
  90. UIAnimator/Window/SuitesScrollView
  91. --]]
  92. local tmp = Root:Find("UIAnimator/Window/SuitesScrollView").gameObject
  93. if tolua.getpeer(tmp) == nil then
  94. tolua.setpeer(tmp, {})
  95. end
  96. self.suitesScrollView = tmp
  97. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  98. end
  99. ---@private
  100. function UIFashionSuitesTipsView:InitGenerate__5(Root, data)
  101. --[[
  102. UIAnimator/Window/SuitesScrollView/Viewport/Content
  103. --]]
  104. local tmp = Root:Find("UIAnimator/Window/SuitesScrollView/Viewport/Content").gameObject
  105. if tolua.getpeer(tmp) == nil then
  106. tolua.setpeer(tmp, {})
  107. end
  108. self.scrollviewContent = tmp
  109. tmp.verticalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.VerticalLayoutGroup)
  110. end
  111. ---@private
  112. function UIFashionSuitesTipsView:InitGenerate__6(Root, data)
  113. --[[
  114. UIAnimator/Window/SuitesScrollView/Viewport/Content/FashionSuitesItem
  115. --]]
  116. local tmp = Root:Find("UIAnimator/Window/SuitesScrollView/Viewport/Content/FashionSuitesItem").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.fashionSuitesItem = CommonUtil.BindGridViewItem2LuaStatic("FashionSuitesItem", tmp)
  121. self.fashionSuitesItem.prefabName = "FashionSuitesItem"
  122. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  123. end
  124. ---@private
  125. function UIFashionSuitesTipsView:GenerateDestroy()
  126. if tolua.getpeer(self.uIAnimator) ~= nil then
  127. tolua.setpeer(self.uIAnimator, nil)
  128. end
  129. self.uIAnimator = nil
  130. if tolua.getpeer(self.AnyBtn) ~= nil then
  131. tolua.setpeer(self.AnyBtn, nil)
  132. end
  133. self.AnyBtn = nil
  134. if tolua.getpeer(self.btnClose) ~= nil then
  135. tolua.setpeer(self.btnClose, nil)
  136. end
  137. self.btnClose = nil
  138. if tolua.getpeer(self.suitesScrollView) ~= nil then
  139. tolua.setpeer(self.suitesScrollView, nil)
  140. end
  141. self.suitesScrollView = nil
  142. if tolua.getpeer(self.scrollviewContent) ~= nil then
  143. tolua.setpeer(self.scrollviewContent, nil)
  144. end
  145. self.scrollviewContent = nil
  146. if self.fashionSuitesItem.GenerateDestroy ~= nil then
  147. self.fashionSuitesItem:GenerateDestroy()
  148. end
  149. if tolua.getpeer(self.fashionSuitesItem) ~= nil then
  150. tolua.setpeer(self.fashionSuitesItem, nil)
  151. end
  152. self.fashionSuitesItem = nil
  153. self.transform = nil
  154. self.gameObject = nil
  155. self.inited = false
  156. end
  157. return UIFashionSuitesTipsView