UIFashionSuitesTipsView_Generate.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. ---@class UIFashionSuitesTips__Generate_fashionSuitesItem
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public rectTransform UnityEngine.RectTransform
  4. ---@class UIFashionSuitesTips__Generate_suitesScrollView
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopListView SuperScrollView.LoopListView
  7. ---@class UIFashionSuitesTips__Generate_btnClose
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIFashionSuitesTips__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIFashionSuitesTips__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIFashionSuitesTips__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIFashionSuitesTips__Generate_uIAnimator
  20. ---@field private AnyBtn UIFashionSuitesTips__Generate_AnyBtn
  21. ---@field private btnClose UIFashionSuitesTips__Generate_btnClose
  22. ---@field private suitesScrollView UIFashionSuitesTips__Generate_suitesScrollView
  23. ---@field private fashionSuitesItem UIFashionSuitesTips__Generate_fashionSuitesItem
  24. local UIFashionSuitesTipsView = class("UIFashionSuitesTipsView", require("UIViewBase"))
  25. function UIFashionSuitesTipsView:ctor()
  26. end
  27. ---@private
  28. function UIFashionSuitesTipsView:SetActive(result)
  29. self.gameObject:SetActive(result)
  30. end
  31. ---@private
  32. function UIFashionSuitesTipsView:InitGenerate(Root, data)
  33. self.transform = Root
  34. self.inited = true
  35. if self.super.Init then
  36. self.super.Init(self)
  37. end
  38. local tmp
  39. self:InitGenerate__1(Root,data)
  40. self:InitGenerate__2(Root,data)
  41. self:InitGenerate__3(Root,data)
  42. self:InitGenerate__4(Root,data)
  43. self:InitGenerate__5(Root,data)
  44. end
  45. ---@private
  46. function UIFashionSuitesTipsView:InitGenerate__1(Root, data)
  47. --[[
  48. UIAnimator
  49. --]]
  50. local tmp = Root:Find("UIAnimator").gameObject
  51. if tolua.getpeer(tmp) == nil then
  52. tolua.setpeer(tmp, {})
  53. end
  54. self.uIAnimator = tmp
  55. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  56. tmp.animator.logWarnings = false
  57. end
  58. ---@private
  59. function UIFashionSuitesTipsView:InitGenerate__2(Root, data)
  60. --[[
  61. UIAnimator/Alpha
  62. --]]
  63. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  64. if tolua.getpeer(tmp) == nil then
  65. tolua.setpeer(tmp, {})
  66. end
  67. self.AnyBtn = tmp
  68. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  69. end
  70. ---@private
  71. function UIFashionSuitesTipsView:InitGenerate__3(Root, data)
  72. --[[
  73. UIAnimator/Window/BtnClose
  74. --]]
  75. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  76. if tolua.getpeer(tmp) == nil then
  77. tolua.setpeer(tmp, {})
  78. end
  79. self.btnClose = tmp
  80. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  81. end
  82. ---@private
  83. function UIFashionSuitesTipsView:InitGenerate__4(Root, data)
  84. --[[
  85. UIAnimator/Window/SuitesScrollView
  86. --]]
  87. local tmp = Root:Find("UIAnimator/Window/SuitesScrollView").gameObject
  88. if tolua.getpeer(tmp) == nil then
  89. tolua.setpeer(tmp, {})
  90. end
  91. self.suitesScrollView = tmp
  92. tmp.loopListView = tmp:GetComponent(Enum.TypeInfo.LoopListView)
  93. end
  94. ---@private
  95. function UIFashionSuitesTipsView:InitGenerate__5(Root, data)
  96. --[[
  97. UIAnimator/Window/SuitesScrollView/Viewport/Content/FashionSuitesItem
  98. --]]
  99. local tmp = Root:Find("UIAnimator/Window/SuitesScrollView/Viewport/Content/FashionSuitesItem").gameObject
  100. if tolua.getpeer(tmp) == nil then
  101. tolua.setpeer(tmp, {})
  102. end
  103. self.fashionSuitesItem = CommonUtil.BindGridViewItem2LuaStatic("FashionSuitesItem", tmp)
  104. self.fashionSuitesItem.prefabName = "FashionSuitesItem"
  105. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  106. end
  107. ---@private
  108. function UIFashionSuitesTipsView:GenerateDestroy()
  109. if tolua.getpeer(self.uIAnimator) ~= nil then
  110. tolua.setpeer(self.uIAnimator, nil)
  111. end
  112. self.uIAnimator = nil
  113. if tolua.getpeer(self.AnyBtn) ~= nil then
  114. tolua.setpeer(self.AnyBtn, nil)
  115. end
  116. self.AnyBtn = nil
  117. if tolua.getpeer(self.btnClose) ~= nil then
  118. tolua.setpeer(self.btnClose, nil)
  119. end
  120. self.btnClose = nil
  121. if tolua.getpeer(self.suitesScrollView) ~= nil then
  122. tolua.setpeer(self.suitesScrollView, nil)
  123. end
  124. self.suitesScrollView = nil
  125. if self.fashionSuitesItem.GenerateDestroy ~= nil then
  126. self.fashionSuitesItem:GenerateDestroy()
  127. end
  128. if tolua.getpeer(self.fashionSuitesItem) ~= nil then
  129. tolua.setpeer(self.fashionSuitesItem, nil)
  130. end
  131. self.fashionSuitesItem = nil
  132. self.transform = nil
  133. self.gameObject = nil
  134. self.inited = false
  135. end
  136. return UIFashionSuitesTipsView