UIGuildChangeNameView_Generate.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. ---@class UIGuildChangeName__Generate_saveBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIGuildChangeName__Generate_cancelBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class UIGuildChangeName__Generate_costTxt
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class UIGuildChangeName__Generate_input
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public inputField UnityEngine.UI.InputField
  13. ---@class UIGuildChangeName__Generate_btnClose
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIGuildChangeName__Generate_AnyBtn
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public button UnityEngine.UI.Button
  19. ---@class UIGuildChangeName__Generate
  20. ---@field private gameObject UnityEngine.GameObject
  21. ---@field private transform UnityEngine.Transform
  22. ---@field private AnyBtn UIGuildChangeName__Generate_AnyBtn
  23. ---@field private btnClose UIGuildChangeName__Generate_btnClose
  24. ---@field private input UIGuildChangeName__Generate_input
  25. ---@field private costTxt UIGuildChangeName__Generate_costTxt
  26. ---@field private cancelBtn UIGuildChangeName__Generate_cancelBtn
  27. ---@field private saveBtn UIGuildChangeName__Generate_saveBtn
  28. local UIGuildChangeNameView = class("UIGuildChangeNameView", require("UIViewBase"))
  29. function UIGuildChangeNameView:ctor()
  30. end
  31. ---@private
  32. function UIGuildChangeNameView:SetActive(result)
  33. self.gameObject:SetActive(result)
  34. end
  35. ---@private
  36. function UIGuildChangeNameView:InitGenerate(Root, data)
  37. self.transform = Root
  38. self.inited = true
  39. if self.super.Init then
  40. self.super.Init(self)
  41. end
  42. local tmp
  43. self:InitGenerate__1(Root,data)
  44. self:InitGenerate__2(Root,data)
  45. self:InitGenerate__3(Root,data)
  46. self:InitGenerate__4(Root,data)
  47. self:InitGenerate__5(Root,data)
  48. self:InitGenerate__6(Root,data)
  49. end
  50. ---@private
  51. function UIGuildChangeNameView:InitGenerate__1(Root, data)
  52. --[[
  53. UIAnimator/Alpha
  54. --]]
  55. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  56. if tolua.getpeer(tmp) == nil then
  57. tolua.setpeer(tmp, {})
  58. end
  59. self.AnyBtn = tmp
  60. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  61. end
  62. ---@private
  63. function UIGuildChangeNameView:InitGenerate__2(Root, data)
  64. --[[
  65. UIAnimator/Window/CloseBox/BtnClose
  66. --]]
  67. local tmp = Root:Find("UIAnimator/Window/CloseBox/BtnClose").gameObject
  68. if tolua.getpeer(tmp) == nil then
  69. tolua.setpeer(tmp, {})
  70. end
  71. self.btnClose = tmp
  72. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  73. end
  74. ---@private
  75. function UIGuildChangeNameView:InitGenerate__3(Root, data)
  76. --[[
  77. UIAnimator/Window/ChangeList/Input
  78. --]]
  79. local tmp = Root:Find("UIAnimator/Window/ChangeList/Input").gameObject
  80. if tolua.getpeer(tmp) == nil then
  81. tolua.setpeer(tmp, {})
  82. end
  83. self.input = tmp
  84. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  85. end
  86. ---@private
  87. function UIGuildChangeNameView:InitGenerate__4(Root, data)
  88. --[[
  89. UIAnimator/Window/ChangeList/CostTxt
  90. --]]
  91. local tmp = Root:Find("UIAnimator/Window/ChangeList/CostTxt").gameObject
  92. if tolua.getpeer(tmp) == nil then
  93. tolua.setpeer(tmp, {})
  94. end
  95. self.costTxt = tmp
  96. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  97. end
  98. ---@private
  99. function UIGuildChangeNameView:InitGenerate__5(Root, data)
  100. --[[
  101. UIAnimator/Window/Bottom/CancelBtn
  102. --]]
  103. local tmp = Root:Find("UIAnimator/Window/Bottom/CancelBtn").gameObject
  104. if tolua.getpeer(tmp) == nil then
  105. tolua.setpeer(tmp, {})
  106. end
  107. self.cancelBtn = tmp
  108. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  109. end
  110. ---@private
  111. function UIGuildChangeNameView:InitGenerate__6(Root, data)
  112. --[[
  113. UIAnimator/Window/Bottom/SaveBtn
  114. --]]
  115. local tmp = Root:Find("UIAnimator/Window/Bottom/SaveBtn").gameObject
  116. if tolua.getpeer(tmp) == nil then
  117. tolua.setpeer(tmp, {})
  118. end
  119. self.saveBtn = tmp
  120. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  121. end
  122. ---@private
  123. function UIGuildChangeNameView:GenerateDestroy()
  124. if tolua.getpeer(self.AnyBtn) ~= nil then
  125. tolua.setpeer(self.AnyBtn, nil)
  126. end
  127. self.AnyBtn = nil
  128. if tolua.getpeer(self.btnClose) ~= nil then
  129. tolua.setpeer(self.btnClose, nil)
  130. end
  131. self.btnClose = nil
  132. if tolua.getpeer(self.input) ~= nil then
  133. tolua.setpeer(self.input, nil)
  134. end
  135. self.input = nil
  136. if tolua.getpeer(self.costTxt) ~= nil then
  137. tolua.setpeer(self.costTxt, nil)
  138. end
  139. self.costTxt = nil
  140. if tolua.getpeer(self.cancelBtn) ~= nil then
  141. tolua.setpeer(self.cancelBtn, nil)
  142. end
  143. self.cancelBtn = nil
  144. if tolua.getpeer(self.saveBtn) ~= nil then
  145. tolua.setpeer(self.saveBtn, nil)
  146. end
  147. self.saveBtn = nil
  148. self.transform = nil
  149. self.gameObject = nil
  150. self.inited = false
  151. end
  152. return UIGuildChangeNameView