UIRewardsTipsView_Generate.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. ---@class UIRewardsTips__Generate_goodsList
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  4. ---@class UIRewardsTips__Generate_btnClose
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIRewardsTips__Generate_textTitle
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UIRewardsTips__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIRewardsTips__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIRewardsTips__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIRewardsTips__Generate_uIAnimator
  20. ---@field private AnyBtn UIRewardsTips__Generate_AnyBtn
  21. ---@field private textTitle UIRewardsTips__Generate_textTitle
  22. ---@field private btnClose UIRewardsTips__Generate_btnClose
  23. ---@field private goodsList UIRewardsTips__Generate_goodsList
  24. local UIRewardsTipsView = class("UIRewardsTipsView", require("UIViewBase"))
  25. function UIRewardsTipsView:ctor()
  26. end
  27. ---@private
  28. function UIRewardsTipsView:SetActive(result)
  29. self.gameObject:SetActive(result)
  30. end
  31. ---@private
  32. function UIRewardsTipsView: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. self:InitGenerate__6(Root,data)
  45. end
  46. ---@private
  47. function UIRewardsTipsView:InitGenerate__1(Root, data)
  48. --[[
  49. Root
  50. --]]
  51. end
  52. ---@private
  53. function UIRewardsTipsView:InitGenerate__2(Root, data)
  54. --[[
  55. UIAnimator
  56. --]]
  57. local tmp = Root:Find("UIAnimator").gameObject
  58. if tolua.getpeer(tmp) == nil then
  59. tolua.setpeer(tmp, {})
  60. end
  61. self.uIAnimator = tmp
  62. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  63. tmp.animator.logWarnings = false
  64. end
  65. ---@private
  66. function UIRewardsTipsView:InitGenerate__3(Root, data)
  67. --[[
  68. UIAnimator/Alpha
  69. --]]
  70. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  71. if tolua.getpeer(tmp) == nil then
  72. tolua.setpeer(tmp, {})
  73. end
  74. self.AnyBtn = tmp
  75. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  76. end
  77. ---@private
  78. function UIRewardsTipsView:InitGenerate__4(Root, data)
  79. --[[
  80. UIAnimator/Window/TextTitle
  81. --]]
  82. local tmp = Root:Find("UIAnimator/Window/TextTitle").gameObject
  83. if tolua.getpeer(tmp) == nil then
  84. tolua.setpeer(tmp, {})
  85. end
  86. self.textTitle = tmp
  87. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  88. end
  89. ---@private
  90. function UIRewardsTipsView:InitGenerate__5(Root, data)
  91. --[[
  92. UIAnimator/Window/BtnClose/BtnClose
  93. --]]
  94. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  95. if tolua.getpeer(tmp) == nil then
  96. tolua.setpeer(tmp, {})
  97. end
  98. self.btnClose = tmp
  99. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  100. end
  101. ---@private
  102. function UIRewardsTipsView:InitGenerate__6(Root, data)
  103. --[[
  104. UIAnimator/Window/GoodsList
  105. --]]
  106. local tmp = Root:Find("UIAnimator/Window/GoodsList").gameObject
  107. if tolua.getpeer(tmp) == nil then
  108. tolua.setpeer(tmp, {})
  109. end
  110. self.goodsList = tmp
  111. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  112. end
  113. ---@private
  114. function UIRewardsTipsView:GenerateDestroy()
  115. if tolua.getpeer(self.uIAnimator) ~= nil then
  116. tolua.setpeer(self.uIAnimator, nil)
  117. end
  118. self.uIAnimator = nil
  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.textTitle) ~= nil then
  124. tolua.setpeer(self.textTitle, nil)
  125. end
  126. self.textTitle = nil
  127. if tolua.getpeer(self.btnClose) ~= nil then
  128. tolua.setpeer(self.btnClose, nil)
  129. end
  130. self.btnClose = nil
  131. if tolua.getpeer(self.goodsList) ~= nil then
  132. tolua.setpeer(self.goodsList, nil)
  133. end
  134. self.goodsList = nil
  135. self.transform = nil
  136. self.gameObject = nil
  137. self.inited = false
  138. end
  139. return UIRewardsTipsView