UIClimbingTowerFriendInfoView_Generate.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. ---@class UIClimbingTowerFriendInfo__Generate_content
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
  4. ---@class UIClimbingTowerFriendInfo__Generate_friendScrollView
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public loopVerticalScrollRect UnityEngine.UI.LoopVerticalScrollRect
  7. ---@class UIClimbingTowerFriendInfo__Generate_CloseBtn
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public button UnityEngine.UI.Button
  10. ---@class UIClimbingTowerFriendInfo__Generate_AnyBtn
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIClimbingTowerFriendInfo__Generate_uIAnimator
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public animator UnityEngine.Animator
  16. ---@class UIClimbingTowerFriendInfo__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private uIAnimator UIClimbingTowerFriendInfo__Generate_uIAnimator
  20. ---@field private AnyBtn UIClimbingTowerFriendInfo__Generate_AnyBtn
  21. ---@field private CloseBtn UIClimbingTowerFriendInfo__Generate_CloseBtn
  22. ---@field private friendScrollView UIClimbingTowerFriendInfo__Generate_friendScrollView
  23. ---@field private content UIClimbingTowerFriendInfo__Generate_content
  24. local UIClimbingTowerFriendInfoView = class("UIClimbingTowerFriendInfoView", require("UIViewBase"))
  25. function UIClimbingTowerFriendInfoView:ctor()
  26. end
  27. ---@private
  28. function UIClimbingTowerFriendInfoView:SetActive(result)
  29. self.gameObject:SetActive(result)
  30. end
  31. ---@private
  32. function UIClimbingTowerFriendInfoView:InitGenerate(Root, data)
  33. self.transform = Root
  34. self.inited = true
  35. if self.super.Init then
  36. self.super.Init(self)
  37. end
  38. local tmp
  39. self:InitGenerate__1(Root,data)
  40. self:InitGenerate__2(Root,data)
  41. self:InitGenerate__3(Root,data)
  42. self:InitGenerate__4(Root,data)
  43. self:InitGenerate__5(Root,data)
  44. end
  45. ---@private
  46. function UIClimbingTowerFriendInfoView:InitGenerate__1(Root, data)
  47. --[[
  48. UIAnimator
  49. --]]
  50. local tmp = Root:Find("UIAnimator").gameObject
  51. if tolua.getpeer(tmp) == nil then
  52. tolua.setpeer(tmp, {})
  53. end
  54. self.uIAnimator = tmp
  55. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  56. tmp.animator.logWarnings = false
  57. end
  58. ---@private
  59. function UIClimbingTowerFriendInfoView:InitGenerate__2(Root, data)
  60. --[[
  61. UIAnimator/Alpha
  62. --]]
  63. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  64. if tolua.getpeer(tmp) == nil then
  65. tolua.setpeer(tmp, {})
  66. end
  67. self.AnyBtn = tmp
  68. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  69. end
  70. ---@private
  71. function UIClimbingTowerFriendInfoView:InitGenerate__3(Root, data)
  72. --[[
  73. UIAnimator/Window/BG/CloseBox/BtnClose
  74. --]]
  75. local tmp = Root:Find("UIAnimator/Window/BG/CloseBox/BtnClose").gameObject
  76. if tolua.getpeer(tmp) == nil then
  77. tolua.setpeer(tmp, {})
  78. end
  79. self.CloseBtn = tmp
  80. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  81. end
  82. ---@private
  83. function UIClimbingTowerFriendInfoView:InitGenerate__4(Root, data)
  84. --[[
  85. UIAnimator/Window/BG/FriendList/FriendScrollView
  86. --]]
  87. local tmp = Root:Find("UIAnimator/Window/BG/FriendList/FriendScrollView").gameObject
  88. if tolua.getpeer(tmp) == nil then
  89. tolua.setpeer(tmp, {})
  90. end
  91. self.friendScrollView = tmp
  92. tmp.loopVerticalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopVerticalScrollRect)
  93. end
  94. ---@private
  95. function UIClimbingTowerFriendInfoView:InitGenerate__5(Root, data)
  96. --[[
  97. UIAnimator/Window/BG/FriendList/FriendScrollView/Viewport/Content
  98. --]]
  99. local tmp = Root:Find("UIAnimator/Window/BG/FriendList/FriendScrollView/Viewport/Content").gameObject
  100. if tolua.getpeer(tmp) == nil then
  101. tolua.setpeer(tmp, {})
  102. end
  103. self.content = tmp
  104. tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
  105. end
  106. ---@private
  107. function UIClimbingTowerFriendInfoView:GenerateDestroy()
  108. if tolua.getpeer(self.uIAnimator) ~= nil then
  109. tolua.setpeer(self.uIAnimator, nil)
  110. end
  111. self.uIAnimator = nil
  112. if tolua.getpeer(self.AnyBtn) ~= nil then
  113. tolua.setpeer(self.AnyBtn, nil)
  114. end
  115. self.AnyBtn = nil
  116. if tolua.getpeer(self.CloseBtn) ~= nil then
  117. tolua.setpeer(self.CloseBtn, nil)
  118. end
  119. self.CloseBtn = nil
  120. if tolua.getpeer(self.friendScrollView) ~= nil then
  121. tolua.setpeer(self.friendScrollView, nil)
  122. end
  123. self.friendScrollView = nil
  124. if tolua.getpeer(self.content) ~= nil then
  125. tolua.setpeer(self.content, nil)
  126. end
  127. self.content = nil
  128. self.transform = nil
  129. self.gameObject = nil
  130. self.inited = false
  131. end
  132. return UIClimbingTowerFriendInfoView