UIDojoBattleView_Generate.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ---@class UIDojoBattle__Generate_rageBoxGo_bg
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public animator UnityEngine.Animator
  4. ---@class UIDojoBattle__Generate_rageBoxGo
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public bg UIDojoBattle__Generate_rageBoxGo_bg
  7. ---@class UIDojoBattle__Generate
  8. ---@field private gameObject UnityEngine.GameObject
  9. ---@field private transform UnityEngine.Transform
  10. ---@field private rageBoxGo UIDojoBattle__Generate_rageBoxGo
  11. local UIDojoBattleView = class("UIDojoBattleView", require("UIViewBase"))
  12. function UIDojoBattleView:ctor()
  13. end
  14. ---@private
  15. function UIDojoBattleView:SetActive(result)
  16. self.gameObject:SetActive(result)
  17. end
  18. ---@private
  19. function UIDojoBattleView:InitGenerate(Root, data)
  20. self.transform = Root
  21. self.inited = true
  22. if self.super.Init then
  23. self.super.Init(self)
  24. end
  25. local tmp
  26. self:InitGenerate__1(Root,data)
  27. self:InitGenerate__2(Root,data)
  28. end
  29. ---@private
  30. function UIDojoBattleView:InitGenerate__1(Root, data)
  31. --[[
  32. RagePvp
  33. --]]
  34. local tmp = Root:Find("RagePvp").gameObject
  35. if tolua.getpeer(tmp) == nil then
  36. tolua.setpeer(tmp, {})
  37. end
  38. self.rageBoxGo = tmp
  39. end
  40. ---@private
  41. function UIDojoBattleView:InitGenerate__2(Root, data)
  42. --[[
  43. RagePvp/Bg
  44. --]]
  45. local tmp = Root:Find("RagePvp/Bg").gameObject
  46. if tolua.getpeer(tmp) == nil then
  47. tolua.setpeer(tmp, {})
  48. end
  49. self.rageBoxGo.bg = tmp
  50. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  51. tmp.animator.logWarnings = false
  52. end
  53. ---@private
  54. function UIDojoBattleView:GenerateDestroy()
  55. if tolua.getpeer(self.rageBoxGo.bg) ~= nil then
  56. tolua.setpeer(self.rageBoxGo.bg, nil)
  57. end
  58. if tolua.getpeer(self.rageBoxGo) ~= nil then
  59. tolua.setpeer(self.rageBoxGo, nil)
  60. end
  61. self.rageBoxGo = nil
  62. self.transform = nil
  63. self.gameObject = nil
  64. self.inited = false
  65. end
  66. return UIDojoBattleView