UIVipExpTipsView_Generate.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ---@class UIVipExpTips__Generate_addNum
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIVipExpTips__Generate_number
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text TMPro.TextMeshProUGUI
  7. ---@class UIVipExpTips__Generate_slider2
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public slider UnityEngine.UI.Slider
  10. ---@class UIVipExpTips__Generate_slider1
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public slider UnityEngine.UI.Slider
  13. ---@class UIVipExpTips__Generate_vipIcon
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public image UnityEngine.UI.Image
  16. ---@class UIVipExpTips__Generate_vipNameTxt
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text TMPro.TextMeshProUGUI
  19. ---@class UIVipExpTips__Generate_vipExpAnim
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public animator UnityEngine.Animator
  22. ---@class UIVipExpTips__Generate
  23. ---@field private gameObject UnityEngine.GameObject
  24. ---@field private transform UnityEngine.Transform
  25. ---@field private vipExpAnim UIVipExpTips__Generate_vipExpAnim
  26. ---@field private vipNameTxt UIVipExpTips__Generate_vipNameTxt
  27. ---@field private vipIcon UIVipExpTips__Generate_vipIcon
  28. ---@field private slider1 UIVipExpTips__Generate_slider1
  29. ---@field private slider2 UIVipExpTips__Generate_slider2
  30. ---@field private number UIVipExpTips__Generate_number
  31. ---@field private addNum UIVipExpTips__Generate_addNum
  32. local UIVipExpTipsView = class("UIVipExpTipsView", require("UIViewBase"))
  33. function UIVipExpTipsView:ctor()
  34. end
  35. ---@private
  36. function UIVipExpTipsView:SetActive(result)
  37. self.gameObject:SetActive(result)
  38. end
  39. ---@private
  40. function UIVipExpTipsView:InitGenerate(Root, data)
  41. self.transform = Root
  42. self.inited = true
  43. if self.super.Init then
  44. self.super.Init(self)
  45. end
  46. local tmp
  47. self:InitGenerate__1(Root,data)
  48. self:InitGenerate__2(Root,data)
  49. self:InitGenerate__3(Root,data)
  50. self:InitGenerate__4(Root,data)
  51. self:InitGenerate__5(Root,data)
  52. self:InitGenerate__6(Root,data)
  53. self:InitGenerate__7(Root,data)
  54. end
  55. ---@private
  56. function UIVipExpTipsView:InitGenerate__1(Root, data)
  57. --[[
  58. VipExpAnim
  59. --]]
  60. local tmp = Root:Find("VipExpAnim").gameObject
  61. if tolua.getpeer(tmp) == nil then
  62. tolua.setpeer(tmp, {})
  63. end
  64. self.vipExpAnim = tmp
  65. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  66. tmp.animator.logWarnings = false
  67. end
  68. ---@private
  69. function UIVipExpTipsView:InitGenerate__2(Root, data)
  70. --[[
  71. VipExpAnim/desc/VipNameTxt
  72. --]]
  73. local tmp = Root:Find("VipExpAnim/desc/VipNameTxt").gameObject
  74. if tolua.getpeer(tmp) == nil then
  75. tolua.setpeer(tmp, {})
  76. end
  77. self.vipNameTxt = tmp
  78. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  79. end
  80. ---@private
  81. function UIVipExpTipsView:InitGenerate__3(Root, data)
  82. --[[
  83. VipExpAnim/desc/VipIcon
  84. --]]
  85. local tmp = Root:Find("VipExpAnim/desc/VipIcon").gameObject
  86. if tolua.getpeer(tmp) == nil then
  87. tolua.setpeer(tmp, {})
  88. end
  89. self.vipIcon = tmp
  90. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  91. end
  92. ---@private
  93. function UIVipExpTipsView:InitGenerate__4(Root, data)
  94. --[[
  95. VipExpAnim/ExpBar/Slider1
  96. --]]
  97. local tmp = Root:Find("VipExpAnim/ExpBar/Slider1").gameObject
  98. if tolua.getpeer(tmp) == nil then
  99. tolua.setpeer(tmp, {})
  100. end
  101. self.slider1 = tmp
  102. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  103. end
  104. ---@private
  105. function UIVipExpTipsView:InitGenerate__5(Root, data)
  106. --[[
  107. VipExpAnim/ExpBar/Slider2
  108. --]]
  109. local tmp = Root:Find("VipExpAnim/ExpBar/Slider2").gameObject
  110. if tolua.getpeer(tmp) == nil then
  111. tolua.setpeer(tmp, {})
  112. end
  113. self.slider2 = tmp
  114. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  115. end
  116. ---@private
  117. function UIVipExpTipsView:InitGenerate__6(Root, data)
  118. --[[
  119. VipExpAnim/ExpBar/Number
  120. --]]
  121. local tmp = Root:Find("VipExpAnim/ExpBar/Number").gameObject
  122. if tolua.getpeer(tmp) == nil then
  123. tolua.setpeer(tmp, {})
  124. end
  125. self.number = tmp
  126. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  127. end
  128. ---@private
  129. function UIVipExpTipsView:InitGenerate__7(Root, data)
  130. --[[
  131. VipExpAnim/AddBox/AddNum
  132. --]]
  133. local tmp = Root:Find("VipExpAnim/AddBox/AddNum").gameObject
  134. if tolua.getpeer(tmp) == nil then
  135. tolua.setpeer(tmp, {})
  136. end
  137. self.addNum = tmp
  138. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  139. end
  140. ---@private
  141. function UIVipExpTipsView:GenerateDestroy()
  142. if tolua.getpeer(self.vipExpAnim) ~= nil then
  143. tolua.setpeer(self.vipExpAnim, nil)
  144. end
  145. self.vipExpAnim = nil
  146. if tolua.getpeer(self.vipNameTxt) ~= nil then
  147. tolua.setpeer(self.vipNameTxt, nil)
  148. end
  149. self.vipNameTxt = nil
  150. if tolua.getpeer(self.vipIcon) ~= nil then
  151. tolua.setpeer(self.vipIcon, nil)
  152. end
  153. self.vipIcon = nil
  154. if tolua.getpeer(self.slider1) ~= nil then
  155. tolua.setpeer(self.slider1, nil)
  156. end
  157. self.slider1 = nil
  158. if tolua.getpeer(self.slider2) ~= nil then
  159. tolua.setpeer(self.slider2, nil)
  160. end
  161. self.slider2 = nil
  162. if tolua.getpeer(self.number) ~= nil then
  163. tolua.setpeer(self.number, nil)
  164. end
  165. self.number = nil
  166. if tolua.getpeer(self.addNum) ~= nil then
  167. tolua.setpeer(self.addNum, nil)
  168. end
  169. self.addNum = nil
  170. self.transform = nil
  171. self.gameObject = nil
  172. self.inited = false
  173. end
  174. return UIVipExpTipsView