UIBagCardListTipsView_Generate.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. ---@class UIBagCardListTips__Generate_DscNoCard
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIBagCardListTips__Generate_cardScrollView_content
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public contentSizeFitter UnityEngine.UI.ContentSizeFitter
  7. ---@class UIBagCardListTips__Generate_cardScrollView
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public content UIBagCardListTips__Generate_cardScrollView_content
  10. ---@class UIBagCardListTips__Generate_btnClose
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIBagCardListTips__Generate_AnyBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIBagCardListTips__Generate_uIAnimator
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public animator UnityEngine.Animator
  19. ---@class UIBagCardListTips__Generate
  20. ---@field private gameObject UnityEngine.GameObject
  21. ---@field private transform UnityEngine.Transform
  22. ---@field private uIAnimator UIBagCardListTips__Generate_uIAnimator
  23. ---@field private AnyBtn UIBagCardListTips__Generate_AnyBtn
  24. ---@field private btnClose UIBagCardListTips__Generate_btnClose
  25. ---@field private cardScrollView UIBagCardListTips__Generate_cardScrollView
  26. ---@field private dscBox UnityEngine.GameObject
  27. ---@field private DscNoCard UIBagCardListTips__Generate_DscNoCard
  28. local UIBagCardListTipsView = class("UIBagCardListTipsView", require("UIViewBase"))
  29. function UIBagCardListTipsView:ctor()
  30. end
  31. ---@private
  32. function UIBagCardListTipsView:SetActive(result)
  33. self.gameObject:SetActive(result)
  34. end
  35. ---@private
  36. function UIBagCardListTipsView: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. self:InitGenerate__7(Root,data)
  50. end
  51. ---@private
  52. function UIBagCardListTipsView:InitGenerate__1(Root, data)
  53. --[[
  54. UIAnimator
  55. --]]
  56. local tmp = Root:Find("UIAnimator").gameObject
  57. if tolua.getpeer(tmp) == nil then
  58. tolua.setpeer(tmp, {})
  59. end
  60. self.uIAnimator = tmp
  61. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  62. tmp.animator.logWarnings = false
  63. end
  64. ---@private
  65. function UIBagCardListTipsView:InitGenerate__2(Root, data)
  66. --[[
  67. UIAnimator/Alpha
  68. --]]
  69. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  70. if tolua.getpeer(tmp) == nil then
  71. tolua.setpeer(tmp, {})
  72. end
  73. self.AnyBtn = tmp
  74. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  75. end
  76. ---@private
  77. function UIBagCardListTipsView:InitGenerate__3(Root, data)
  78. --[[
  79. UIAnimator/Window/Bg/BtnClose
  80. --]]
  81. local tmp = Root:Find("UIAnimator/Window/Bg/BtnClose").gameObject
  82. if tolua.getpeer(tmp) == nil then
  83. tolua.setpeer(tmp, {})
  84. end
  85. self.btnClose = tmp
  86. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  87. end
  88. ---@private
  89. function UIBagCardListTipsView:InitGenerate__4(Root, data)
  90. --[[
  91. UIAnimator/Window/Bg/CardScrollView
  92. --]]
  93. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView").gameObject
  94. if tolua.getpeer(tmp) == nil then
  95. tolua.setpeer(tmp, {})
  96. end
  97. self.cardScrollView = tmp
  98. end
  99. ---@private
  100. function UIBagCardListTipsView:InitGenerate__5(Root, data)
  101. --[[
  102. UIAnimator/Window/Bg/CardScrollView/Viewport/Content
  103. --]]
  104. local tmp = Root:Find("UIAnimator/Window/Bg/CardScrollView/Viewport/Content").gameObject
  105. if tolua.getpeer(tmp) == nil then
  106. tolua.setpeer(tmp, {})
  107. end
  108. self.cardScrollView.content = tmp
  109. tmp.contentSizeFitter = tmp:GetComponent(Enum.TypeInfo.ContentSizeFitter)
  110. end
  111. ---@private
  112. function UIBagCardListTipsView:InitGenerate__6(Root, data)
  113. --[[
  114. UIAnimator/Window/Bg/DscBox
  115. --]]
  116. local tmp = Root:Find("UIAnimator/Window/Bg/DscBox").gameObject
  117. if tolua.getpeer(tmp) == nil then
  118. tolua.setpeer(tmp, {})
  119. end
  120. self.dscBox = tmp
  121. end
  122. ---@private
  123. function UIBagCardListTipsView:InitGenerate__7(Root, data)
  124. --[[
  125. UIAnimator/Window/Bg/DscBox/DesTxt
  126. --]]
  127. local tmp = Root:Find("UIAnimator/Window/Bg/DscBox/DesTxt").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.DscNoCard = tmp
  132. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  133. end
  134. ---@private
  135. function UIBagCardListTipsView:GenerateDestroy()
  136. if tolua.getpeer(self.cardScrollView.content) ~= nil then
  137. tolua.setpeer(self.cardScrollView.content, nil)
  138. end
  139. if tolua.getpeer(self.uIAnimator) ~= nil then
  140. tolua.setpeer(self.uIAnimator, nil)
  141. end
  142. self.uIAnimator = nil
  143. if tolua.getpeer(self.AnyBtn) ~= nil then
  144. tolua.setpeer(self.AnyBtn, nil)
  145. end
  146. self.AnyBtn = nil
  147. if tolua.getpeer(self.btnClose) ~= nil then
  148. tolua.setpeer(self.btnClose, nil)
  149. end
  150. self.btnClose = nil
  151. if tolua.getpeer(self.cardScrollView) ~= nil then
  152. tolua.setpeer(self.cardScrollView, nil)
  153. end
  154. self.cardScrollView = nil
  155. if tolua.getpeer(self.dscBox) ~= nil then
  156. tolua.setpeer(self.dscBox, nil)
  157. end
  158. self.dscBox = nil
  159. if tolua.getpeer(self.DscNoCard) ~= nil then
  160. tolua.setpeer(self.DscNoCard, nil)
  161. end
  162. self.DscNoCard = nil
  163. self.transform = nil
  164. self.gameObject = nil
  165. self.inited = false
  166. end
  167. return UIBagCardListTipsView