UICardItemTipsView_Generate.lua 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. ---@class UICardItemTips__Generate_btnRefine
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UICardItemTips__Generate_text1
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public uILocalizeScript UILocalizeScript
  7. ---@class UICardItemTips__Generate_position
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public uILocalizeScript UILocalizeScript
  10. ---@class UICardItemTips__Generate_text
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public uILocalizeScript UILocalizeScript
  13. ---@class UICardItemTips__Generate_type
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public uILocalizeScript UILocalizeScript
  16. ---@class UICardItemTips__Generate_textName
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public text UnityEngine.UI.Text
  19. ---@class UICardItemTips__Generate_btnClose
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public button UnityEngine.UI.Button
  22. ---@class UICardItemTips__Generate_window
  23. ---@field public gameObject UnityEngine.GameObject
  24. ---@field public animator UnityEngine.Animator
  25. ---@class UICardItemTips__Generate
  26. ---@field private gameObject UnityEngine.GameObject
  27. ---@field private transform UnityEngine.Transform
  28. ---@field private uIEventHandler UIEventHandler
  29. ---@field private window UICardItemTips__Generate_window
  30. ---@field private btnClose UICardItemTips__Generate_btnClose
  31. ---@field private contentItem UnityEngine.GameObject
  32. ---@field private cardIconItem UnityEngine.GameObject
  33. ---@field private textName UICardItemTips__Generate_textName
  34. ---@field private type UICardItemTips__Generate_type
  35. ---@field private text UICardItemTips__Generate_text
  36. ---@field private position UICardItemTips__Generate_position
  37. ---@field private text1 UICardItemTips__Generate_text1
  38. ---@field private cardBox UnityEngine.GameObject
  39. ---@field private btnBox UnityEngine.GameObject
  40. ---@field private btnRefine UICardItemTips__Generate_btnRefine
  41. local UICardItemTipsView = class("UICardItemTipsView", require("UIViewBase"))
  42. function UICardItemTipsView:ctor()
  43. end
  44. ---@private
  45. function UICardItemTipsView:SetActive(result)
  46. self.gameObject:SetActive(result)
  47. end
  48. ---@private
  49. function UICardItemTipsView:InitGenerate(Root, data)
  50. self.transform = Root
  51. self.inited = true
  52. if self.super.Init then
  53. self.super.Init(self)
  54. end
  55. local tmp
  56. self:InitGenerate__1(Root,data)
  57. self:InitGenerate__2(Root,data)
  58. self:InitGenerate__3(Root,data)
  59. self:InitGenerate__4(Root,data)
  60. self:InitGenerate__5(Root,data)
  61. self:InitGenerate__6(Root,data)
  62. self:InitGenerate__7(Root,data)
  63. self:InitGenerate__8(Root,data)
  64. self:InitGenerate__9(Root,data)
  65. self:InitGenerate__10(Root,data)
  66. self:InitGenerate__11(Root,data)
  67. self:InitGenerate__12(Root,data)
  68. self:InitGenerate__13(Root,data)
  69. end
  70. ---@private
  71. function UICardItemTipsView:InitGenerate__1(Root, data)
  72. --[[
  73. Root
  74. --]]
  75. self.uIEventHandler = Root:GetComponent(Enum.TypeInfo.UIEventHandler)
  76. end
  77. ---@private
  78. function UICardItemTipsView:InitGenerate__2(Root, data)
  79. --[[
  80. Window
  81. --]]
  82. local tmp = Root:Find("Window").gameObject
  83. if tolua.getpeer(tmp) == nil then
  84. tolua.setpeer(tmp, {})
  85. end
  86. self.window = tmp
  87. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  88. tmp.animator.logWarnings = false
  89. end
  90. ---@private
  91. function UICardItemTipsView:InitGenerate__3(Root, data)
  92. --[[
  93. Window/Bg/BtnClose
  94. --]]
  95. local tmp = Root:Find("Window/Bg/BtnClose").gameObject
  96. if tolua.getpeer(tmp) == nil then
  97. tolua.setpeer(tmp, {})
  98. end
  99. self.btnClose = tmp
  100. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  101. end
  102. ---@private
  103. function UICardItemTipsView:InitGenerate__4(Root, data)
  104. --[[
  105. Window/Bg/TopItem/ContentItem
  106. --]]
  107. local tmp = Root:Find("Window/Bg/TopItem/ContentItem").gameObject
  108. if tolua.getpeer(tmp) == nil then
  109. tolua.setpeer(tmp, {})
  110. end
  111. self.contentItem = tmp
  112. end
  113. ---@private
  114. function UICardItemTipsView:InitGenerate__5(Root, data)
  115. --[[
  116. Window/Bg/TopItem/ContentItem/CardIconItem
  117. --]]
  118. local tmp = Root:Find("Window/Bg/TopItem/ContentItem/CardIconItem").gameObject
  119. if tolua.getpeer(tmp) == nil then
  120. tolua.setpeer(tmp, {})
  121. end
  122. self.cardIconItem = CommonUtil.BindGridViewItem2LuaStatic("CardIconItem", tmp)
  123. self.cardIconItem.prefabName = "CardIconItem"
  124. end
  125. ---@private
  126. function UICardItemTipsView:InitGenerate__6(Root, data)
  127. --[[
  128. Window/Bg/TopItem/Texts/TextName
  129. --]]
  130. local tmp = Root:Find("Window/Bg/TopItem/Texts/TextName").gameObject
  131. if tolua.getpeer(tmp) == nil then
  132. tolua.setpeer(tmp, {})
  133. end
  134. self.textName = tmp
  135. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  136. end
  137. ---@private
  138. function UICardItemTipsView:InitGenerate__7(Root, data)
  139. --[[
  140. Window/Bg/TopItem/Texts/Type
  141. --]]
  142. local tmp = Root:Find("Window/Bg/TopItem/Texts/Type").gameObject
  143. if tolua.getpeer(tmp) == nil then
  144. tolua.setpeer(tmp, {})
  145. end
  146. self.type = tmp
  147. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  148. end
  149. ---@private
  150. function UICardItemTipsView:InitGenerate__8(Root, data)
  151. --[[
  152. Window/Bg/TopItem/Texts/Text
  153. --]]
  154. local tmp = Root:Find("Window/Bg/TopItem/Texts/Text").gameObject
  155. if tolua.getpeer(tmp) == nil then
  156. tolua.setpeer(tmp, {})
  157. end
  158. self.text = tmp
  159. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  160. end
  161. ---@private
  162. function UICardItemTipsView:InitGenerate__9(Root, data)
  163. --[[
  164. Window/Bg/TopItem/Texts/Position
  165. --]]
  166. local tmp = Root:Find("Window/Bg/TopItem/Texts/Position").gameObject
  167. if tolua.getpeer(tmp) == nil then
  168. tolua.setpeer(tmp, {})
  169. end
  170. self.position = tmp
  171. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  172. end
  173. ---@private
  174. function UICardItemTipsView:InitGenerate__10(Root, data)
  175. --[[
  176. Window/Bg/TopItem/Texts/Text1
  177. --]]
  178. local tmp = Root:Find("Window/Bg/TopItem/Texts/Text1").gameObject
  179. if tolua.getpeer(tmp) == nil then
  180. tolua.setpeer(tmp, {})
  181. end
  182. self.text1 = tmp
  183. tmp.uILocalizeScript = tmp:GetComponent(Enum.TypeInfo.UILocalizeScript)
  184. end
  185. ---@private
  186. function UICardItemTipsView:InitGenerate__11(Root, data)
  187. --[[
  188. Window/Bg/CardBox
  189. --]]
  190. local tmp = Root:Find("Window/Bg/CardBox").gameObject
  191. if tolua.getpeer(tmp) == nil then
  192. tolua.setpeer(tmp, {})
  193. end
  194. self.cardBox = tmp
  195. end
  196. ---@private
  197. function UICardItemTipsView:InitGenerate__12(Root, data)
  198. --[[
  199. Window/Bg/BtnBox
  200. --]]
  201. local tmp = Root:Find("Window/Bg/BtnBox").gameObject
  202. if tolua.getpeer(tmp) == nil then
  203. tolua.setpeer(tmp, {})
  204. end
  205. self.btnBox = tmp
  206. end
  207. ---@private
  208. function UICardItemTipsView:InitGenerate__13(Root, data)
  209. --[[
  210. Window/Bg/BtnBox/BtnRefine
  211. --]]
  212. local tmp = Root:Find("Window/Bg/BtnBox/BtnRefine").gameObject
  213. if tolua.getpeer(tmp) == nil then
  214. tolua.setpeer(tmp, {})
  215. end
  216. self.btnRefine = tmp
  217. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  218. end
  219. ---@private
  220. function UICardItemTipsView:GenerateDestroy()
  221. if tolua.getpeer(self.window) ~= nil then
  222. tolua.setpeer(self.window, nil)
  223. end
  224. self.window = nil
  225. if tolua.getpeer(self.btnClose) ~= nil then
  226. tolua.setpeer(self.btnClose, nil)
  227. end
  228. self.btnClose = nil
  229. if tolua.getpeer(self.contentItem) ~= nil then
  230. tolua.setpeer(self.contentItem, nil)
  231. end
  232. self.contentItem = nil
  233. if self.cardIconItem.GenerateDestroy ~= nil then
  234. self.cardIconItem:GenerateDestroy()
  235. end
  236. if tolua.getpeer(self.cardIconItem) ~= nil then
  237. tolua.setpeer(self.cardIconItem, nil)
  238. end
  239. self.cardIconItem = nil
  240. if tolua.getpeer(self.textName) ~= nil then
  241. tolua.setpeer(self.textName, nil)
  242. end
  243. self.textName = nil
  244. if tolua.getpeer(self.type) ~= nil then
  245. tolua.setpeer(self.type, nil)
  246. end
  247. self.type = nil
  248. if tolua.getpeer(self.text) ~= nil then
  249. tolua.setpeer(self.text, nil)
  250. end
  251. self.text = nil
  252. if tolua.getpeer(self.position) ~= nil then
  253. tolua.setpeer(self.position, nil)
  254. end
  255. self.position = nil
  256. if tolua.getpeer(self.text1) ~= nil then
  257. tolua.setpeer(self.text1, nil)
  258. end
  259. self.text1 = nil
  260. if tolua.getpeer(self.cardBox) ~= nil then
  261. tolua.setpeer(self.cardBox, nil)
  262. end
  263. self.cardBox = nil
  264. if tolua.getpeer(self.btnBox) ~= nil then
  265. tolua.setpeer(self.btnBox, nil)
  266. end
  267. self.btnBox = nil
  268. if tolua.getpeer(self.btnRefine) ~= nil then
  269. tolua.setpeer(self.btnRefine, nil)
  270. end
  271. self.btnRefine = nil
  272. self.transform = nil
  273. self.gameObject = nil
  274. self.inited = false
  275. end
  276. return UICardItemTipsView