UIGetNowPopView_Generate.lua 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. ---@class UIGetNowPop__Generate_btnGetNow
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGetNowPop__Generate_numcost
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIGetNowPop__Generate_icon
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIGetNowPop__Generate_LeftTimesLbl
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UIGetNowPop__Generate_dscTxt
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class UIGetNowPop__Generate_CloseBtn
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIGetNowPop__Generate_AnyBtn
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UIGetNowPop__Generate_uIAnimator
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public animator UnityEngine.Animator
  25. ---@class UIGetNowPop__Generate
  26. ---@field private gameObject UnityEngine.GameObject
  27. ---@field private transform UnityEngine.Transform
  28. ---@field private uIAnimator UIGetNowPop__Generate_uIAnimator
  29. ---@field private AnyBtn UIGetNowPop__Generate_AnyBtn
  30. ---@field private window UnityEngine.GameObject
  31. ---@field private CloseBtn UIGetNowPop__Generate_CloseBtn
  32. ---@field private dscTxt UIGetNowPop__Generate_dscTxt
  33. ---@field private LeftTimesLbl UIGetNowPop__Generate_LeftTimesLbl
  34. ---@field private icon UIGetNowPop__Generate_icon
  35. ---@field private numcost UIGetNowPop__Generate_numcost
  36. ---@field private btnGetNow UIGetNowPop__Generate_btnGetNow
  37. local UIGetNowPopView = class("UIGetNowPopView", require("UIViewBase"))
  38. function UIGetNowPopView:ctor()
  39. end
  40. ---@private
  41. function UIGetNowPopView:SetActive(result)
  42. self.gameObject:SetActive(result)
  43. end
  44. ---@private
  45. function UIGetNowPopView:InitGenerate(Root, data)
  46. self.transform = Root
  47. self.inited = true
  48. if self.super.Init then
  49. self.super.Init(self)
  50. end
  51. local tmp
  52. self:InitGenerate__1(Root,data)
  53. self:InitGenerate__2(Root,data)
  54. self:InitGenerate__3(Root,data)
  55. self:InitGenerate__4(Root,data)
  56. self:InitGenerate__5(Root,data)
  57. self:InitGenerate__6(Root,data)
  58. self:InitGenerate__7(Root,data)
  59. self:InitGenerate__8(Root,data)
  60. self:InitGenerate__9(Root,data)
  61. end
  62. ---@private
  63. function UIGetNowPopView:InitGenerate__1(Root, data)
  64. --[[
  65. UIAnimator
  66. --]]
  67. local tmp = Root:Find("UIAnimator").gameObject
  68. if tolua.getpeer(tmp) == nil then
  69. tolua.setpeer(tmp, {})
  70. end
  71. self.uIAnimator = tmp
  72. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  73. tmp.animator.logWarnings = false
  74. end
  75. ---@private
  76. function UIGetNowPopView:InitGenerate__2(Root, data)
  77. --[[
  78. UIAnimator/Alpha
  79. --]]
  80. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  81. if tolua.getpeer(tmp) == nil then
  82. tolua.setpeer(tmp, {})
  83. end
  84. self.AnyBtn = tmp
  85. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  86. end
  87. ---@private
  88. function UIGetNowPopView:InitGenerate__3(Root, data)
  89. --[[
  90. UIAnimator/Window
  91. --]]
  92. local tmp = Root:Find("UIAnimator/Window").gameObject
  93. if tolua.getpeer(tmp) == nil then
  94. tolua.setpeer(tmp, {})
  95. end
  96. self.window = tmp
  97. end
  98. ---@private
  99. function UIGetNowPopView:InitGenerate__4(Root, data)
  100. --[[
  101. UIAnimator/Window/BG/BtnClose
  102. --]]
  103. local tmp = Root:Find("UIAnimator/Window/BG/BtnClose").gameObject
  104. if tolua.getpeer(tmp) == nil then
  105. tolua.setpeer(tmp, {})
  106. end
  107. self.CloseBtn = tmp
  108. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  109. end
  110. ---@private
  111. function UIGetNowPopView:InitGenerate__5(Root, data)
  112. --[[
  113. UIAnimator/Window/BG/TalkBox/Text
  114. --]]
  115. local tmp = Root:Find("UIAnimator/Window/BG/TalkBox/Text").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.dscTxt = tmp
  120. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  121. end
  122. ---@private
  123. function UIGetNowPopView:InitGenerate__6(Root, data)
  124. --[[
  125. UIAnimator/Window/BG/TalkBox/Times/LeftTimesLbl
  126. --]]
  127. local tmp = Root:Find("UIAnimator/Window/BG/TalkBox/Times/LeftTimesLbl").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.LeftTimesLbl = tmp
  132. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  133. end
  134. ---@private
  135. function UIGetNowPopView:InitGenerate__7(Root, data)
  136. --[[
  137. UIAnimator/Window/BG/BottomBox/CostBox/icon
  138. --]]
  139. local tmp = Root:Find("UIAnimator/Window/BG/BottomBox/CostBox/icon").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.icon = tmp
  144. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  145. end
  146. ---@private
  147. function UIGetNowPopView:InitGenerate__8(Root, data)
  148. --[[
  149. UIAnimator/Window/BG/BottomBox/CostBox/numcost
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/BG/BottomBox/CostBox/numcost").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.numcost = tmp
  156. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  157. end
  158. ---@private
  159. function UIGetNowPopView:InitGenerate__9(Root, data)
  160. --[[
  161. UIAnimator/Window/BG/BottomBox/BtnGetNow
  162. --]]
  163. local tmp = Root:Find("UIAnimator/Window/BG/BottomBox/BtnGetNow").gameObject
  164. if tolua.getpeer(tmp) == nil then
  165. tolua.setpeer(tmp, {})
  166. end
  167. self.btnGetNow = tmp
  168. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  169. end
  170. ---@private
  171. function UIGetNowPopView:GenerateDestroy()
  172. if tolua.getpeer(self.uIAnimator) ~= nil then
  173. tolua.setpeer(self.uIAnimator, nil)
  174. end
  175. self.uIAnimator = nil
  176. if tolua.getpeer(self.AnyBtn) ~= nil then
  177. tolua.setpeer(self.AnyBtn, nil)
  178. end
  179. self.AnyBtn = nil
  180. if tolua.getpeer(self.window) ~= nil then
  181. tolua.setpeer(self.window, nil)
  182. end
  183. self.window = nil
  184. if tolua.getpeer(self.CloseBtn) ~= nil then
  185. tolua.setpeer(self.CloseBtn, nil)
  186. end
  187. self.CloseBtn = nil
  188. if tolua.getpeer(self.dscTxt) ~= nil then
  189. tolua.setpeer(self.dscTxt, nil)
  190. end
  191. self.dscTxt = nil
  192. if tolua.getpeer(self.LeftTimesLbl) ~= nil then
  193. tolua.setpeer(self.LeftTimesLbl, nil)
  194. end
  195. self.LeftTimesLbl = nil
  196. if tolua.getpeer(self.icon) ~= nil then
  197. tolua.setpeer(self.icon, nil)
  198. end
  199. self.icon = nil
  200. if tolua.getpeer(self.numcost) ~= nil then
  201. tolua.setpeer(self.numcost, nil)
  202. end
  203. self.numcost = nil
  204. if tolua.getpeer(self.btnGetNow) ~= nil then
  205. tolua.setpeer(self.btnGetNow, nil)
  206. end
  207. self.btnGetNow = nil
  208. self.transform = nil
  209. self.gameObject = nil
  210. self.inited = false
  211. end
  212. return UIGetNowPopView