UIShopBuyTipsView_Generate.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. ---@class UIShopBuyTips__Generate_btnBuy
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIShopBuyTips__Generate_presentPrice_number
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIShopBuyTips__Generate_presentPrice_icon
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public image UnityEngine.UI.Image
  10. ---@class UIShopBuyTips__Generate_presentPrice
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public icon UIShopBuyTips__Generate_presentPrice_icon
  13. ---@field public number UIShopBuyTips__Generate_presentPrice_number
  14. ---@class UIShopBuyTips__Generate_btnMax
  15. ---@field public gameObject UnityEngine.GameObject
  16. ---@field public button UnityEngine.UI.Button
  17. ---@class UIShopBuyTips__Generate_buyNumTxt
  18. ---@field public gameObject UnityEngine.GameObject
  19. ---@field public text UnityEngine.UI.Text
  20. ---@class UIShopBuyTips__Generate_btnMinus
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public repeatButton UnityEngine.UI.RepeatButton
  23. ---@class UIShopBuyTips__Generate_btnAdd
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public repeatButton UnityEngine.UI.RepeatButton
  26. ---@class UIShopBuyTips__Generate_desTxt
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public text UnityEngine.UI.Text
  29. ---@class UIShopBuyTips__Generate_timeLimit
  30. ---@field public gameObject UnityEngine.GameObject
  31. ---@field public text UnityEngine.UI.Text
  32. ---@class UIShopBuyTips__Generate_itemName
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public text UnityEngine.UI.Text
  35. ---@class UIShopBuyTips__Generate_itemnum
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public text UnityEngine.UI.Text
  38. ---@class UIShopBuyTips__Generate_iconItem
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public rectTransform UnityEngine.RectTransform
  41. ---@field public layoutElement UnityEngine.UI.LayoutElement
  42. ---@class UIShopBuyTips__Generate_btnClose
  43. ---@field public gameObject UnityEngine.GameObject
  44. ---@field public button UnityEngine.UI.Button
  45. ---@class UIShopBuyTips__Generate_AnyBtn
  46. ---@field public gameObject UnityEngine.GameObject
  47. ---@field public button UnityEngine.UI.Button
  48. ---@class UIShopBuyTips__Generate
  49. ---@field private gameObject UnityEngine.GameObject
  50. ---@field private transform UnityEngine.Transform
  51. ---@field private AnyBtn UIShopBuyTips__Generate_AnyBtn
  52. ---@field private btnClose UIShopBuyTips__Generate_btnClose
  53. ---@field private iconItem UIShopBuyTips__Generate_iconItem
  54. ---@field private itemnum UIShopBuyTips__Generate_itemnum
  55. ---@field private itemName UIShopBuyTips__Generate_itemName
  56. ---@field private limitBox UnityEngine.GameObject
  57. ---@field private timeLimit UIShopBuyTips__Generate_timeLimit
  58. ---@field private desTxt UIShopBuyTips__Generate_desTxt
  59. ---@field private btnAdd UIShopBuyTips__Generate_btnAdd
  60. ---@field private btnMinus UIShopBuyTips__Generate_btnMinus
  61. ---@field private buyNumTxt UIShopBuyTips__Generate_buyNumTxt
  62. ---@field private btnMax UIShopBuyTips__Generate_btnMax
  63. ---@field private presentPrice UIShopBuyTips__Generate_presentPrice
  64. ---@field private btnBuy UIShopBuyTips__Generate_btnBuy
  65. local UIShopBuyTipsView = class("UIShopBuyTipsView", require("UIViewBase"))
  66. function UIShopBuyTipsView:ctor()
  67. end
  68. ---@private
  69. function UIShopBuyTipsView:SetActive(result)
  70. self.gameObject:SetActive(result)
  71. end
  72. ---@private
  73. function UIShopBuyTipsView:InitGenerate(Root, data)
  74. self.transform = Root
  75. self.inited = true
  76. if self.super.Init then
  77. self.super.Init(self)
  78. end
  79. local tmp
  80. self:InitGenerate__1(Root,data)
  81. self:InitGenerate__2(Root,data)
  82. self:InitGenerate__3(Root,data)
  83. self:InitGenerate__4(Root,data)
  84. self:InitGenerate__5(Root,data)
  85. self:InitGenerate__6(Root,data)
  86. self:InitGenerate__7(Root,data)
  87. self:InitGenerate__8(Root,data)
  88. self:InitGenerate__9(Root,data)
  89. self:InitGenerate__10(Root,data)
  90. self:InitGenerate__11(Root,data)
  91. self:InitGenerate__12(Root,data)
  92. self:InitGenerate__13(Root,data)
  93. self:InitGenerate__14(Root,data)
  94. self:InitGenerate__15(Root,data)
  95. self:InitGenerate__16(Root,data)
  96. end
  97. ---@private
  98. function UIShopBuyTipsView:InitGenerate__1(Root, data)
  99. --[[
  100. UIAnimator/Alpha
  101. --]]
  102. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  103. if tolua.getpeer(tmp) == nil then
  104. tolua.setpeer(tmp, {})
  105. end
  106. self.AnyBtn = tmp
  107. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  108. end
  109. ---@private
  110. function UIShopBuyTipsView:InitGenerate__2(Root, data)
  111. --[[
  112. UIAnimator/Window/BtnClose/BtnClose
  113. --]]
  114. local tmp = Root:Find("UIAnimator/Window/BtnClose/BtnClose").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.btnClose = tmp
  119. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  120. end
  121. ---@private
  122. function UIShopBuyTipsView:InitGenerate__3(Root, data)
  123. --[[
  124. UIAnimator/Window/ItemBox/Item/IconItem
  125. --]]
  126. local tmp = Root:Find("UIAnimator/Window/ItemBox/Item/IconItem").gameObject
  127. if tolua.getpeer(tmp) == nil then
  128. tolua.setpeer(tmp, {})
  129. end
  130. self.iconItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
  131. self.iconItem.prefabName = "IconItem"
  132. tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
  133. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  134. end
  135. ---@private
  136. function UIShopBuyTipsView:InitGenerate__4(Root, data)
  137. --[[
  138. UIAnimator/Window/ItemBox/Item/Num/itemnum
  139. --]]
  140. local tmp = Root:Find("UIAnimator/Window/ItemBox/Item/Num/itemnum").gameObject
  141. if tolua.getpeer(tmp) == nil then
  142. tolua.setpeer(tmp, {})
  143. end
  144. self.itemnum = tmp
  145. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  146. end
  147. ---@private
  148. function UIShopBuyTipsView:InitGenerate__5(Root, data)
  149. --[[
  150. UIAnimator/Window/ItemBox/ItemName
  151. --]]
  152. local tmp = Root:Find("UIAnimator/Window/ItemBox/ItemName").gameObject
  153. if tolua.getpeer(tmp) == nil then
  154. tolua.setpeer(tmp, {})
  155. end
  156. self.itemName = tmp
  157. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  158. end
  159. ---@private
  160. function UIShopBuyTipsView:InitGenerate__6(Root, data)
  161. --[[
  162. UIAnimator/Window/ItemBox/LimitBox
  163. --]]
  164. local tmp = Root:Find("UIAnimator/Window/ItemBox/LimitBox").gameObject
  165. if tolua.getpeer(tmp) == nil then
  166. tolua.setpeer(tmp, {})
  167. end
  168. self.limitBox = tmp
  169. end
  170. ---@private
  171. function UIShopBuyTipsView:InitGenerate__7(Root, data)
  172. --[[
  173. UIAnimator/Window/ItemBox/LimitBox/TimeLimit
  174. --]]
  175. local tmp = Root:Find("UIAnimator/Window/ItemBox/LimitBox/TimeLimit").gameObject
  176. if tolua.getpeer(tmp) == nil then
  177. tolua.setpeer(tmp, {})
  178. end
  179. self.timeLimit = tmp
  180. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  181. end
  182. ---@private
  183. function UIShopBuyTipsView:InitGenerate__8(Root, data)
  184. --[[
  185. UIAnimator/Window/ItemBox/Describe/DesTxt
  186. --]]
  187. local tmp = Root:Find("UIAnimator/Window/ItemBox/Describe/DesTxt").gameObject
  188. if tolua.getpeer(tmp) == nil then
  189. tolua.setpeer(tmp, {})
  190. end
  191. self.desTxt = tmp
  192. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  193. end
  194. ---@private
  195. function UIShopBuyTipsView:InitGenerate__9(Root, data)
  196. --[[
  197. UIAnimator/Window/Number /Box/BtnAdd
  198. --]]
  199. local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnAdd").gameObject
  200. if tolua.getpeer(tmp) == nil then
  201. tolua.setpeer(tmp, {})
  202. end
  203. self.btnAdd = tmp
  204. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  205. end
  206. ---@private
  207. function UIShopBuyTipsView:InitGenerate__10(Root, data)
  208. --[[
  209. UIAnimator/Window/Number /Box/BtnMinus
  210. --]]
  211. local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnMinus").gameObject
  212. if tolua.getpeer(tmp) == nil then
  213. tolua.setpeer(tmp, {})
  214. end
  215. self.btnMinus = tmp
  216. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  217. end
  218. ---@private
  219. function UIShopBuyTipsView:InitGenerate__11(Root, data)
  220. --[[
  221. UIAnimator/Window/Number /Box/BuyNumTxt
  222. --]]
  223. local tmp = Root:Find("UIAnimator/Window/Number /Box/BuyNumTxt").gameObject
  224. if tolua.getpeer(tmp) == nil then
  225. tolua.setpeer(tmp, {})
  226. end
  227. self.buyNumTxt = tmp
  228. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  229. end
  230. ---@private
  231. function UIShopBuyTipsView:InitGenerate__12(Root, data)
  232. --[[
  233. UIAnimator/Window/Number /Box/BtnMax
  234. --]]
  235. local tmp = Root:Find("UIAnimator/Window/Number /Box/BtnMax").gameObject
  236. if tolua.getpeer(tmp) == nil then
  237. tolua.setpeer(tmp, {})
  238. end
  239. self.btnMax = tmp
  240. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  241. end
  242. ---@private
  243. function UIShopBuyTipsView:InitGenerate__13(Root, data)
  244. --[[
  245. UIAnimator/Window/Bottom/PresentPrice
  246. --]]
  247. local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice").gameObject
  248. if tolua.getpeer(tmp) == nil then
  249. tolua.setpeer(tmp, {})
  250. end
  251. self.presentPrice = tmp
  252. end
  253. ---@private
  254. function UIShopBuyTipsView:InitGenerate__14(Root, data)
  255. --[[
  256. UIAnimator/Window/Bottom/PresentPrice/Icon
  257. --]]
  258. local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice/Icon").gameObject
  259. if tolua.getpeer(tmp) == nil then
  260. tolua.setpeer(tmp, {})
  261. end
  262. self.presentPrice.icon = tmp
  263. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  264. end
  265. ---@private
  266. function UIShopBuyTipsView:InitGenerate__15(Root, data)
  267. --[[
  268. UIAnimator/Window/Bottom/PresentPrice/Number
  269. --]]
  270. local tmp = Root:Find("UIAnimator/Window/Bottom/PresentPrice/Number").gameObject
  271. if tolua.getpeer(tmp) == nil then
  272. tolua.setpeer(tmp, {})
  273. end
  274. self.presentPrice.number = tmp
  275. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  276. end
  277. ---@private
  278. function UIShopBuyTipsView:InitGenerate__16(Root, data)
  279. --[[
  280. UIAnimator/Window/Bottom/BtnBuy
  281. --]]
  282. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnBuy").gameObject
  283. if tolua.getpeer(tmp) == nil then
  284. tolua.setpeer(tmp, {})
  285. end
  286. self.btnBuy = tmp
  287. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  288. end
  289. ---@private
  290. function UIShopBuyTipsView:GenerateDestroy()
  291. if tolua.getpeer(self.presentPrice.number) ~= nil then
  292. tolua.setpeer(self.presentPrice.number, nil)
  293. end
  294. if tolua.getpeer(self.presentPrice.icon) ~= nil then
  295. tolua.setpeer(self.presentPrice.icon, nil)
  296. end
  297. if tolua.getpeer(self.AnyBtn) ~= nil then
  298. tolua.setpeer(self.AnyBtn, nil)
  299. end
  300. self.AnyBtn = nil
  301. if tolua.getpeer(self.btnClose) ~= nil then
  302. tolua.setpeer(self.btnClose, nil)
  303. end
  304. self.btnClose = nil
  305. if self.iconItem.GenerateDestroy ~= nil then
  306. self.iconItem:GenerateDestroy()
  307. end
  308. if tolua.getpeer(self.iconItem) ~= nil then
  309. tolua.setpeer(self.iconItem, nil)
  310. end
  311. self.iconItem = nil
  312. if tolua.getpeer(self.itemnum) ~= nil then
  313. tolua.setpeer(self.itemnum, nil)
  314. end
  315. self.itemnum = nil
  316. if tolua.getpeer(self.itemName) ~= nil then
  317. tolua.setpeer(self.itemName, nil)
  318. end
  319. self.itemName = nil
  320. if tolua.getpeer(self.limitBox) ~= nil then
  321. tolua.setpeer(self.limitBox, nil)
  322. end
  323. self.limitBox = nil
  324. if tolua.getpeer(self.timeLimit) ~= nil then
  325. tolua.setpeer(self.timeLimit, nil)
  326. end
  327. self.timeLimit = nil
  328. if tolua.getpeer(self.desTxt) ~= nil then
  329. tolua.setpeer(self.desTxt, nil)
  330. end
  331. self.desTxt = nil
  332. if tolua.getpeer(self.btnAdd) ~= nil then
  333. tolua.setpeer(self.btnAdd, nil)
  334. end
  335. self.btnAdd = nil
  336. if tolua.getpeer(self.btnMinus) ~= nil then
  337. tolua.setpeer(self.btnMinus, nil)
  338. end
  339. self.btnMinus = nil
  340. if tolua.getpeer(self.buyNumTxt) ~= nil then
  341. tolua.setpeer(self.buyNumTxt, nil)
  342. end
  343. self.buyNumTxt = nil
  344. if tolua.getpeer(self.btnMax) ~= nil then
  345. tolua.setpeer(self.btnMax, nil)
  346. end
  347. self.btnMax = nil
  348. if tolua.getpeer(self.presentPrice) ~= nil then
  349. tolua.setpeer(self.presentPrice, nil)
  350. end
  351. self.presentPrice = nil
  352. if tolua.getpeer(self.btnBuy) ~= nil then
  353. tolua.setpeer(self.btnBuy, nil)
  354. end
  355. self.btnBuy = nil
  356. self.transform = nil
  357. self.gameObject = nil
  358. self.inited = false
  359. end
  360. return UIShopBuyTipsView