UINotifyTipsSimpleView_Generate.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. ---@class UINotifyTipsSimple__Generate_BtnClose
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UINotifyTipsSimple__Generate_desTxt
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UINotifyTipsSimple__Generate_scrollView
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public scrollRect UnityEngine.UI.ScrollRect
  10. ---@class UINotifyTipsSimple__Generate_boardTitle
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class UINotifyTipsSimple__Generate_AnyBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UINotifyTipsSimple__Generate_uIAnimator
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public animator UnityEngine.Animator
  19. ---@class UINotifyTipsSimple__Generate
  20. ---@field private gameObject UnityEngine.GameObject
  21. ---@field private transform UnityEngine.Transform
  22. ---@field private uIAnimator UINotifyTipsSimple__Generate_uIAnimator
  23. ---@field private AnyBtn UINotifyTipsSimple__Generate_AnyBtn
  24. ---@field private window UnityEngine.GameObject
  25. ---@field private boardTitle UINotifyTipsSimple__Generate_boardTitle
  26. ---@field private scrollView UINotifyTipsSimple__Generate_scrollView
  27. ---@field private desTxt UINotifyTipsSimple__Generate_desTxt
  28. ---@field private BtnClose UINotifyTipsSimple__Generate_BtnClose
  29. local UINotifyTipsSimpleView = class("UINotifyTipsSimpleView", require("UIViewBase"))
  30. function UINotifyTipsSimpleView:ctor()
  31. end
  32. ---@private
  33. function UINotifyTipsSimpleView:SetActive(result)
  34. self.gameObject:SetActive(result)
  35. end
  36. ---@private
  37. function UINotifyTipsSimpleView:InitGenerate(Root, data)
  38. self.transform = Root
  39. self.inited = true
  40. if self.super.Init then
  41. self.super.Init(self)
  42. end
  43. local tmp
  44. self:InitGenerate__1(Root,data)
  45. self:InitGenerate__2(Root,data)
  46. self:InitGenerate__3(Root,data)
  47. self:InitGenerate__4(Root,data)
  48. self:InitGenerate__5(Root,data)
  49. self:InitGenerate__6(Root,data)
  50. self:InitGenerate__7(Root,data)
  51. end
  52. ---@private
  53. function UINotifyTipsSimpleView:InitGenerate__1(Root, data)
  54. --[[
  55. UIAnimator
  56. --]]
  57. local tmp = Root:Find("UIAnimator").gameObject
  58. if tolua.getpeer(tmp) == nil then
  59. tolua.setpeer(tmp, {})
  60. end
  61. self.uIAnimator = tmp
  62. tmp.animator = tmp:GetComponent(Enum.TypeInfo.Animator)
  63. tmp.animator.logWarnings = false
  64. end
  65. ---@private
  66. function UINotifyTipsSimpleView:InitGenerate__2(Root, data)
  67. --[[
  68. UIAnimator/Alpha
  69. --]]
  70. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  71. if tolua.getpeer(tmp) == nil then
  72. tolua.setpeer(tmp, {})
  73. end
  74. self.AnyBtn = tmp
  75. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  76. end
  77. ---@private
  78. function UINotifyTipsSimpleView:InitGenerate__3(Root, data)
  79. --[[
  80. UIAnimator/Window
  81. --]]
  82. local tmp = Root:Find("UIAnimator/Window").gameObject
  83. if tolua.getpeer(tmp) == nil then
  84. tolua.setpeer(tmp, {})
  85. end
  86. self.window = tmp
  87. end
  88. ---@private
  89. function UINotifyTipsSimpleView:InitGenerate__4(Root, data)
  90. --[[
  91. UIAnimator/Window/BoardTitle
  92. --]]
  93. local tmp = Root:Find("UIAnimator/Window/BoardTitle").gameObject
  94. if tolua.getpeer(tmp) == nil then
  95. tolua.setpeer(tmp, {})
  96. end
  97. self.boardTitle = tmp
  98. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  99. end
  100. ---@private
  101. function UINotifyTipsSimpleView:InitGenerate__5(Root, data)
  102. --[[
  103. UIAnimator/Window/ScrollView
  104. --]]
  105. local tmp = Root:Find("UIAnimator/Window/ScrollView").gameObject
  106. if tolua.getpeer(tmp) == nil then
  107. tolua.setpeer(tmp, {})
  108. end
  109. self.scrollView = tmp
  110. tmp.scrollRect = tmp:GetComponent(Enum.TypeInfo.ScrollRect)
  111. end
  112. ---@private
  113. function UINotifyTipsSimpleView:InitGenerate__6(Root, data)
  114. --[[
  115. UIAnimator/Window/ScrollView/Viewport/Content/DesTxt
  116. --]]
  117. local tmp = Root:Find("UIAnimator/Window/ScrollView/Viewport/Content/DesTxt").gameObject
  118. if tolua.getpeer(tmp) == nil then
  119. tolua.setpeer(tmp, {})
  120. end
  121. self.desTxt = tmp
  122. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  123. end
  124. ---@private
  125. function UINotifyTipsSimpleView:InitGenerate__7(Root, data)
  126. --[[
  127. UIAnimator/Window/ClostBox/BtnCloseFlat
  128. --]]
  129. local tmp = Root:Find("UIAnimator/Window/ClostBox/BtnCloseFlat").gameObject
  130. if tolua.getpeer(tmp) == nil then
  131. tolua.setpeer(tmp, {})
  132. end
  133. self.BtnClose = tmp
  134. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  135. end
  136. ---@private
  137. function UINotifyTipsSimpleView:GenerateDestroy()
  138. if tolua.getpeer(self.uIAnimator) ~= nil then
  139. tolua.setpeer(self.uIAnimator, nil)
  140. end
  141. self.uIAnimator = nil
  142. if tolua.getpeer(self.AnyBtn) ~= nil then
  143. tolua.setpeer(self.AnyBtn, nil)
  144. end
  145. self.AnyBtn = nil
  146. if tolua.getpeer(self.window) ~= nil then
  147. tolua.setpeer(self.window, nil)
  148. end
  149. self.window = nil
  150. if tolua.getpeer(self.boardTitle) ~= nil then
  151. tolua.setpeer(self.boardTitle, nil)
  152. end
  153. self.boardTitle = nil
  154. if tolua.getpeer(self.scrollView) ~= nil then
  155. tolua.setpeer(self.scrollView, nil)
  156. end
  157. self.scrollView = nil
  158. if tolua.getpeer(self.desTxt) ~= nil then
  159. tolua.setpeer(self.desTxt, nil)
  160. end
  161. self.desTxt = nil
  162. if tolua.getpeer(self.BtnClose) ~= nil then
  163. tolua.setpeer(self.BtnClose, nil)
  164. end
  165. self.BtnClose = nil
  166. self.transform = nil
  167. self.gameObject = nil
  168. self.inited = false
  169. end
  170. return UINotifyTipsSimpleView