UIStorySkipView_Generate.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---@class UIStorySkip__Generate_skip
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIStorySkip__Generate
  5. ---@field private gameObject UnityEngine.GameObject
  6. ---@field private transform UnityEngine.Transform
  7. ---@field private skip UIStorySkip__Generate_skip
  8. local UIStorySkipView = class("UIStorySkipView", require("UIViewBase"))
  9. function UIStorySkipView:ctor()
  10. end
  11. ---@private
  12. function UIStorySkipView:SetActive(result)
  13. self.gameObject:SetActive(result)
  14. end
  15. ---@private
  16. function UIStorySkipView:InitGenerate(Root, data)
  17. self.transform = Root
  18. self.inited = true
  19. if self.super.Init then
  20. self.super.Init(self)
  21. end
  22. local tmp
  23. self:InitGenerate__1(Root,data)
  24. end
  25. ---@private
  26. function UIStorySkipView:InitGenerate__1(Root, data)
  27. --[[
  28. Skip
  29. --]]
  30. local tmp = Root:Find("Skip").gameObject
  31. if tolua.getpeer(tmp) == nil then
  32. tolua.setpeer(tmp, {})
  33. end
  34. self.skip = tmp
  35. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  36. end
  37. ---@private
  38. function UIStorySkipView:GenerateDestroy()
  39. if tolua.getpeer(self.skip) ~= nil then
  40. tolua.setpeer(self.skip, nil)
  41. end
  42. self.skip = nil
  43. self.transform = nil
  44. self.gameObject = nil
  45. self.inited = false
  46. end
  47. return UIStorySkipView