UIHundredDojoSloganView_Generate.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ---@class UIHundredDojoSlogan__Generate_btnConfirm
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class UIHundredDojoSlogan__Generate_text
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public text UnityEngine.UI.Text
  7. ---@class UIHundredDojoSlogan__Generate_inputField
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public inputField UnityEngine.UI.InputField
  10. ---@class UIHundredDojoSlogan__Generate_btnClose
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public button UnityEngine.UI.Button
  13. ---@class UIHundredDojoSlogan__Generate_AnyBtn
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public button UnityEngine.UI.Button
  16. ---@class UIHundredDojoSlogan__Generate
  17. ---@field private gameObject UnityEngine.GameObject
  18. ---@field private transform UnityEngine.Transform
  19. ---@field private AnyBtn UIHundredDojoSlogan__Generate_AnyBtn
  20. ---@field private btnClose UIHundredDojoSlogan__Generate_btnClose
  21. ---@field private inputField UIHundredDojoSlogan__Generate_inputField
  22. ---@field private text UIHundredDojoSlogan__Generate_text
  23. ---@field private btnConfirm UIHundredDojoSlogan__Generate_btnConfirm
  24. local UIHundredDojoSloganView = class("UIHundredDojoSloganView", require("UIViewBase"))
  25. function UIHundredDojoSloganView:ctor()
  26. end
  27. ---@private
  28. function UIHundredDojoSloganView:SetActive(result)
  29. self.gameObject:SetActive(result)
  30. end
  31. ---@private
  32. function UIHundredDojoSloganView: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 UIHundredDojoSloganView:InitGenerate__1(Root, data)
  47. --[[
  48. UIAnimator/Alpha
  49. --]]
  50. local tmp = Root:Find("UIAnimator/Alpha").gameObject
  51. if tolua.getpeer(tmp) == nil then
  52. tolua.setpeer(tmp, {})
  53. end
  54. self.AnyBtn = tmp
  55. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  56. end
  57. ---@private
  58. function UIHundredDojoSloganView:InitGenerate__2(Root, data)
  59. --[[
  60. UIAnimator/Window/BtnClose
  61. --]]
  62. local tmp = Root:Find("UIAnimator/Window/BtnClose").gameObject
  63. if tolua.getpeer(tmp) == nil then
  64. tolua.setpeer(tmp, {})
  65. end
  66. self.btnClose = tmp
  67. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  68. end
  69. ---@private
  70. function UIHundredDojoSloganView:InitGenerate__3(Root, data)
  71. --[[
  72. UIAnimator/Window/DscBox/InputField
  73. --]]
  74. local tmp = Root:Find("UIAnimator/Window/DscBox/InputField").gameObject
  75. if tolua.getpeer(tmp) == nil then
  76. tolua.setpeer(tmp, {})
  77. end
  78. self.inputField = tmp
  79. tmp.inputField = tmp:GetComponent(Enum.TypeInfo.InputField)
  80. end
  81. ---@private
  82. function UIHundredDojoSloganView:InitGenerate__4(Root, data)
  83. --[[
  84. UIAnimator/Window/DscBox/Text
  85. --]]
  86. local tmp = Root:Find("UIAnimator/Window/DscBox/Text").gameObject
  87. if tolua.getpeer(tmp) == nil then
  88. tolua.setpeer(tmp, {})
  89. end
  90. self.text = tmp
  91. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  92. end
  93. ---@private
  94. function UIHundredDojoSloganView:InitGenerate__5(Root, data)
  95. --[[
  96. UIAnimator/Window/BtnBox/BtnConfirm
  97. --]]
  98. local tmp = Root:Find("UIAnimator/Window/BtnBox/BtnConfirm").gameObject
  99. if tolua.getpeer(tmp) == nil then
  100. tolua.setpeer(tmp, {})
  101. end
  102. self.btnConfirm = tmp
  103. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  104. end
  105. ---@private
  106. function UIHundredDojoSloganView:GenerateDestroy()
  107. if tolua.getpeer(self.AnyBtn) ~= nil then
  108. tolua.setpeer(self.AnyBtn, nil)
  109. end
  110. self.AnyBtn = nil
  111. if tolua.getpeer(self.btnClose) ~= nil then
  112. tolua.setpeer(self.btnClose, nil)
  113. end
  114. self.btnClose = nil
  115. if tolua.getpeer(self.inputField) ~= nil then
  116. tolua.setpeer(self.inputField, nil)
  117. end
  118. self.inputField = nil
  119. if tolua.getpeer(self.text) ~= nil then
  120. tolua.setpeer(self.text, nil)
  121. end
  122. self.text = nil
  123. if tolua.getpeer(self.btnConfirm) ~= nil then
  124. tolua.setpeer(self.btnConfirm, nil)
  125. end
  126. self.btnConfirm = nil
  127. self.transform = nil
  128. self.gameObject = nil
  129. self.inited = false
  130. end
  131. return UIHundredDojoSloganView