UIBoliShopUpLvTipsView_Generate.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. ---@class UIBoliShopUpLvTips__Generate_btnUpgrade_number
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public text UnityEngine.UI.Text
  4. ---@class UIBoliShopUpLvTips__Generate_btnUpgrade_image
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public image UnityEngine.UI.Image
  7. ---@class UIBoliShopUpLvTips__Generate_btnUpgrade
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@field public image UIBoliShopUpLvTips__Generate_btnUpgrade_image
  11. ---@field public number UIBoliShopUpLvTips__Generate_btnUpgrade_number
  12. ---@class UIBoliShopUpLvTips__Generate_numBox_btnPlus
  13. ---@field public gameObject UnityEngine.GameObject
  14. ---@field public button UnityEngine.UI.Button
  15. ---@field public repeatButton UnityEngine.UI.RepeatButton
  16. ---@class UIBoliShopUpLvTips__Generate_numBox_btnMinus
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@field public repeatButton UnityEngine.UI.RepeatButton
  20. ---@class UIBoliShopUpLvTips__Generate_numBox_slider
  21. ---@field public gameObject UnityEngine.GameObject
  22. ---@field public slider UnityEngine.UI.Slider
  23. ---@class UIBoliShopUpLvTips__Generate_numBox_num
  24. ---@field public gameObject UnityEngine.GameObject
  25. ---@field public text UnityEngine.UI.Text
  26. ---@class UIBoliShopUpLvTips__Generate_numBox
  27. ---@field public gameObject UnityEngine.GameObject
  28. ---@field public num UIBoliShopUpLvTips__Generate_numBox_num
  29. ---@field public slider UIBoliShopUpLvTips__Generate_numBox_slider
  30. ---@field public btnMinus UIBoliShopUpLvTips__Generate_numBox_btnMinus
  31. ---@field public btnPlus UIBoliShopUpLvTips__Generate_numBox_btnPlus
  32. ---@class UIBoliShopUpLvTips__Generate_numexp
  33. ---@field public gameObject UnityEngine.GameObject
  34. ---@field public text TMPro.TextMeshProUGUI
  35. ---@class UIBoliShopUpLvTips__Generate_expYellow
  36. ---@field public gameObject UnityEngine.GameObject
  37. ---@field public image UnityEngine.UI.Image
  38. ---@class UIBoliShopUpLvTips__Generate_expGreen
  39. ---@field public gameObject UnityEngine.GameObject
  40. ---@field public image UnityEngine.UI.Image
  41. ---@class UIBoliShopUpLvTips__Generate_lvTxt
  42. ---@field public gameObject UnityEngine.GameObject
  43. ---@field public text UnityEngine.UI.Text
  44. ---@class UIBoliShopUpLvTips__Generate_btnClose
  45. ---@field public gameObject UnityEngine.GameObject
  46. ---@field public button UnityEngine.UI.Button
  47. ---@class UIBoliShopUpLvTips__Generate_AnyBtn
  48. ---@field public gameObject UnityEngine.GameObject
  49. ---@field public button UnityEngine.UI.Button
  50. ---@class UIBoliShopUpLvTips__Generate_uIAnimator
  51. ---@field public gameObject UnityEngine.GameObject
  52. ---@field public animator UnityEngine.Animator
  53. ---@class UIBoliShopUpLvTips__Generate
  54. ---@field private gameObject UnityEngine.GameObject
  55. ---@field private transform UnityEngine.Transform
  56. ---@field private uIAnimator UIBoliShopUpLvTips__Generate_uIAnimator
  57. ---@field private AnyBtn UIBoliShopUpLvTips__Generate_AnyBtn
  58. ---@field private btnClose UIBoliShopUpLvTips__Generate_btnClose
  59. ---@field private shopLv UnityEngine.GameObject
  60. ---@field private lvTxt UIBoliShopUpLvTips__Generate_lvTxt
  61. ---@field private max UnityEngine.GameObject
  62. ---@field private expGreen UIBoliShopUpLvTips__Generate_expGreen
  63. ---@field private expYellow UIBoliShopUpLvTips__Generate_expYellow
  64. ---@field private numexp UIBoliShopUpLvTips__Generate_numexp
  65. ---@field private numBox UIBoliShopUpLvTips__Generate_numBox
  66. ---@field private handleSlideArea UnityEngine.GameObject
  67. ---@field private btnUpgrade UIBoliShopUpLvTips__Generate_btnUpgrade
  68. local UIBoliShopUpLvTipsView = class("UIBoliShopUpLvTipsView", require("UIViewBase"))
  69. function UIBoliShopUpLvTipsView:ctor()
  70. end
  71. ---@private
  72. function UIBoliShopUpLvTipsView:SetActive(result)
  73. self.gameObject:SetActive(result)
  74. end
  75. ---@private
  76. function UIBoliShopUpLvTipsView:InitGenerate(Root, data)
  77. self.transform = Root
  78. self.inited = true
  79. if self.super.Init then
  80. self.super.Init(self)
  81. end
  82. local tmp
  83. self:InitGenerate__1(Root,data)
  84. self:InitGenerate__2(Root,data)
  85. self:InitGenerate__3(Root,data)
  86. self:InitGenerate__4(Root,data)
  87. self:InitGenerate__5(Root,data)
  88. self:InitGenerate__6(Root,data)
  89. self:InitGenerate__7(Root,data)
  90. self:InitGenerate__8(Root,data)
  91. self:InitGenerate__9(Root,data)
  92. self:InitGenerate__10(Root,data)
  93. self:InitGenerate__11(Root,data)
  94. self:InitGenerate__12(Root,data)
  95. self:InitGenerate__13(Root,data)
  96. self:InitGenerate__14(Root,data)
  97. self:InitGenerate__15(Root,data)
  98. self:InitGenerate__16(Root,data)
  99. self:InitGenerate__17(Root,data)
  100. self:InitGenerate__18(Root,data)
  101. self:InitGenerate__19(Root,data)
  102. end
  103. ---@private
  104. function UIBoliShopUpLvTipsView:InitGenerate__1(Root, data)
  105. --[[
  106. Root
  107. --]]
  108. end
  109. ---@private
  110. function UIBoliShopUpLvTipsView:InitGenerate__2(Root, data)
  111. --[[
  112. UIAnimator
  113. --]]
  114. local tmp = Root:Find("UIAnimator").gameObject
  115. if tolua.getpeer(tmp) == nil then
  116. tolua.setpeer(tmp, {})
  117. end
  118. self.uIAnimator = tmp
  119. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  120. tmp.animator.logWarnings = false
  121. end
  122. ---@private
  123. function UIBoliShopUpLvTipsView:InitGenerate__3(Root, data)
  124. --[[
  125. UIAnimator/Alpha
  126. --]]
  127. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  128. if tolua.getpeer(tmp) == nil then
  129. tolua.setpeer(tmp, {})
  130. end
  131. self.AnyBtn = tmp
  132. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  133. end
  134. ---@private
  135. function UIBoliShopUpLvTipsView:InitGenerate__4(Root, data)
  136. --[[
  137. UIAnimator/Window/BtnClose
  138. --]]
  139. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  140. if tolua.getpeer(tmp) == nil then
  141. tolua.setpeer(tmp, {})
  142. end
  143. self.btnClose = tmp
  144. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  145. end
  146. ---@private
  147. function UIBoliShopUpLvTipsView:InitGenerate__5(Root, data)
  148. --[[
  149. UIAnimator/Window/ShopLv
  150. --]]
  151. local tmp = Root:Find("UIAnimator/Window/ShopLv").gameObject
  152. if tolua.getpeer(tmp) == nil then
  153. tolua.setpeer(tmp, {})
  154. end
  155. self.shopLv = tmp
  156. end
  157. ---@private
  158. function UIBoliShopUpLvTipsView:InitGenerate__6(Root, data)
  159. --[[
  160. UIAnimator/Window/ShopLv/ShopLv/LvTxt
  161. --]]
  162. local tmp = Root:Find("UIAnimator/Window/ShopLv/ShopLv/LvTxt").gameObject
  163. if tolua.getpeer(tmp) == nil then
  164. tolua.setpeer(tmp, {})
  165. end
  166. self.lvTxt = tmp
  167. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  168. end
  169. ---@private
  170. function UIBoliShopUpLvTipsView:InitGenerate__7(Root, data)
  171. --[[
  172. UIAnimator/Window/ShopLv/ShopLv/Max
  173. --]]
  174. local tmp = Root:Find("UIAnimator/Window/ShopLv/ShopLv/Max").gameObject
  175. if tolua.getpeer(tmp) == nil then
  176. tolua.setpeer(tmp, {})
  177. end
  178. self.max = tmp
  179. end
  180. ---@private
  181. function UIBoliShopUpLvTipsView:InitGenerate__8(Root, data)
  182. --[[
  183. UIAnimator/Window/ShopLv/ExpSlider/ExpGreen
  184. --]]
  185. local tmp = Root:Find("UIAnimator/Window/ShopLv/ExpSlider/ExpGreen").gameObject
  186. if tolua.getpeer(tmp) == nil then
  187. tolua.setpeer(tmp, {})
  188. end
  189. self.expGreen = tmp
  190. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  191. end
  192. ---@private
  193. function UIBoliShopUpLvTipsView:InitGenerate__9(Root, data)
  194. --[[
  195. UIAnimator/Window/ShopLv/ExpSlider/ExpYellow
  196. --]]
  197. local tmp = Root:Find("UIAnimator/Window/ShopLv/ExpSlider/ExpYellow").gameObject
  198. if tolua.getpeer(tmp) == nil then
  199. tolua.setpeer(tmp, {})
  200. end
  201. self.expYellow = tmp
  202. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  203. end
  204. ---@private
  205. function UIBoliShopUpLvTipsView:InitGenerate__10(Root, data)
  206. --[[
  207. UIAnimator/Window/ShopLv/ExpSlider/numexp
  208. --]]
  209. local tmp = Root:Find("UIAnimator/Window/ShopLv/ExpSlider/numexp").gameObject
  210. if tolua.getpeer(tmp) == nil then
  211. tolua.setpeer(tmp, {})
  212. end
  213. self.numexp = tmp
  214. tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
  215. end
  216. ---@private
  217. function UIBoliShopUpLvTipsView:InitGenerate__11(Root, data)
  218. --[[
  219. UIAnimator/Window/Convert/NumBox
  220. --]]
  221. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox").gameObject
  222. if tolua.getpeer(tmp) == nil then
  223. tolua.setpeer(tmp, {})
  224. end
  225. self.numBox = tmp
  226. end
  227. ---@private
  228. function UIBoliShopUpLvTipsView:InitGenerate__12(Root, data)
  229. --[[
  230. UIAnimator/Window/Convert/NumBox/num
  231. --]]
  232. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox/num").gameObject
  233. if tolua.getpeer(tmp) == nil then
  234. tolua.setpeer(tmp, {})
  235. end
  236. self.numBox.num = tmp
  237. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  238. end
  239. ---@private
  240. function UIBoliShopUpLvTipsView:InitGenerate__13(Root, data)
  241. --[[
  242. UIAnimator/Window/Convert/NumBox/Slider
  243. --]]
  244. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox/Slider").gameObject
  245. if tolua.getpeer(tmp) == nil then
  246. tolua.setpeer(tmp, {})
  247. end
  248. self.numBox.slider = tmp
  249. tmp.slider = tmp:GetComponent(Enum.TypeInfo.Slider)
  250. end
  251. ---@private
  252. function UIBoliShopUpLvTipsView:InitGenerate__14(Root, data)
  253. --[[
  254. UIAnimator/Window/Convert/NumBox/Slider/Handle Slide Area
  255. --]]
  256. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox/Slider/Handle Slide Area").gameObject
  257. if tolua.getpeer(tmp) == nil then
  258. tolua.setpeer(tmp, {})
  259. end
  260. self.handleSlideArea = tmp
  261. end
  262. ---@private
  263. function UIBoliShopUpLvTipsView:InitGenerate__15(Root, data)
  264. --[[
  265. UIAnimator/Window/Convert/NumBox/BtnMinus
  266. --]]
  267. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox/BtnMinus").gameObject
  268. if tolua.getpeer(tmp) == nil then
  269. tolua.setpeer(tmp, {})
  270. end
  271. self.numBox.btnMinus = tmp
  272. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  273. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  274. end
  275. ---@private
  276. function UIBoliShopUpLvTipsView:InitGenerate__16(Root, data)
  277. --[[
  278. UIAnimator/Window/Convert/NumBox/BtnPlus
  279. --]]
  280. local tmp = Root:Find("UIAnimator/Window/Convert/NumBox/BtnPlus").gameObject
  281. if tolua.getpeer(tmp) == nil then
  282. tolua.setpeer(tmp, {})
  283. end
  284. self.numBox.btnPlus = tmp
  285. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  286. tmp.repeatButton = tmp:GetComponent(Enum.TypeInfo.RepeatButton)
  287. end
  288. ---@private
  289. function UIBoliShopUpLvTipsView:InitGenerate__17(Root, data)
  290. --[[
  291. UIAnimator/Window/Bottom/BtnUpgrade
  292. --]]
  293. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnUpgrade").gameObject
  294. if tolua.getpeer(tmp) == nil then
  295. tolua.setpeer(tmp, {})
  296. end
  297. self.btnUpgrade = tmp
  298. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  299. end
  300. ---@private
  301. function UIBoliShopUpLvTipsView:InitGenerate__18(Root, data)
  302. --[[
  303. UIAnimator/Window/Bottom/BtnUpgrade/Content/Image
  304. --]]
  305. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnUpgrade/Content/Image").gameObject
  306. if tolua.getpeer(tmp) == nil then
  307. tolua.setpeer(tmp, {})
  308. end
  309. self.btnUpgrade.image = tmp
  310. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  311. end
  312. ---@private
  313. function UIBoliShopUpLvTipsView:InitGenerate__19(Root, data)
  314. --[[
  315. UIAnimator/Window/Bottom/BtnUpgrade/Content/Number
  316. --]]
  317. local tmp = Root:Find("UIAnimator/Window/Bottom/BtnUpgrade/Content/Number").gameObject
  318. if tolua.getpeer(tmp) == nil then
  319. tolua.setpeer(tmp, {})
  320. end
  321. self.btnUpgrade.number = tmp
  322. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  323. end
  324. ---@private
  325. function UIBoliShopUpLvTipsView:GenerateDestroy()
  326. if tolua.getpeer(self.btnUpgrade.number) ~= nil then
  327. tolua.setpeer(self.btnUpgrade.number, nil)
  328. end
  329. if tolua.getpeer(self.btnUpgrade.image) ~= nil then
  330. tolua.setpeer(self.btnUpgrade.image, nil)
  331. end
  332. if tolua.getpeer(self.numBox.btnPlus) ~= nil then
  333. tolua.setpeer(self.numBox.btnPlus, nil)
  334. end
  335. if tolua.getpeer(self.numBox.btnMinus) ~= nil then
  336. tolua.setpeer(self.numBox.btnMinus, nil)
  337. end
  338. if tolua.getpeer(self.numBox.slider) ~= nil then
  339. tolua.setpeer(self.numBox.slider, nil)
  340. end
  341. if tolua.getpeer(self.numBox.num) ~= nil then
  342. tolua.setpeer(self.numBox.num, nil)
  343. end
  344. if tolua.getpeer(self.uIAnimator) ~= nil then
  345. tolua.setpeer(self.uIAnimator, nil)
  346. end
  347. self.uIAnimator = nil
  348. if tolua.getpeer(self.AnyBtn) ~= nil then
  349. tolua.setpeer(self.AnyBtn, nil)
  350. end
  351. self.AnyBtn = nil
  352. if tolua.getpeer(self.btnClose) ~= nil then
  353. tolua.setpeer(self.btnClose, nil)
  354. end
  355. self.btnClose = nil
  356. if tolua.getpeer(self.shopLv) ~= nil then
  357. tolua.setpeer(self.shopLv, nil)
  358. end
  359. self.shopLv = nil
  360. if tolua.getpeer(self.lvTxt) ~= nil then
  361. tolua.setpeer(self.lvTxt, nil)
  362. end
  363. self.lvTxt = nil
  364. if tolua.getpeer(self.max) ~= nil then
  365. tolua.setpeer(self.max, nil)
  366. end
  367. self.max = nil
  368. if tolua.getpeer(self.expGreen) ~= nil then
  369. tolua.setpeer(self.expGreen, nil)
  370. end
  371. self.expGreen = nil
  372. if tolua.getpeer(self.expYellow) ~= nil then
  373. tolua.setpeer(self.expYellow, nil)
  374. end
  375. self.expYellow = nil
  376. if tolua.getpeer(self.numexp) ~= nil then
  377. tolua.setpeer(self.numexp, nil)
  378. end
  379. self.numexp = nil
  380. if tolua.getpeer(self.numBox) ~= nil then
  381. tolua.setpeer(self.numBox, nil)
  382. end
  383. self.numBox = nil
  384. if tolua.getpeer(self.handleSlideArea) ~= nil then
  385. tolua.setpeer(self.handleSlideArea, nil)
  386. end
  387. self.handleSlideArea = nil
  388. if tolua.getpeer(self.btnUpgrade) ~= nil then
  389. tolua.setpeer(self.btnUpgrade, nil)
  390. end
  391. self.btnUpgrade = nil
  392. self.transform = nil
  393. self.gameObject = nil
  394. self.inited = false
  395. end
  396. return UIBoliShopUpLvTipsView