UIGuildLobbyView_Generate.lua 1.9 KB

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