Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / editorWindow / EditorWindow.cs
  1. namespace UI.EditorWindow;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class EditorWindow : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: EditorWindow.Bg
  10. /// </summary>
  11. public Bg L_Bg
  12. {
  13. get
  14. {
  15. if (_L_Bg == null) _L_Bg = new Bg(this, GetNodeOrNull<Godot.ColorRect>("Bg"));
  16. return _L_Bg;
  17. }
  18. }
  19. private Bg _L_Bg;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Window"/>, 节点路径: EditorWindow.Window
  23. /// </summary>
  24. public Window L_Window
  25. {
  26. get
  27. {
  28. if (_L_Window == null) _L_Window = new Window(this, GetNodeOrNull<Godot.Window>("Window"));
  29. return _L_Window;
  30. }
  31. }
  32. private Window _L_Window;
  33.  
  34.  
  35. public EditorWindow() : base(nameof(EditorWindow))
  36. {
  37. }
  38.  
  39. public sealed override void OnInitNestedUi()
  40. {
  41. }
  42.  
  43. /// <summary>
  44. /// 类型: <see cref="Godot.ColorRect"/>, 路径: EditorWindow.Bg
  45. /// </summary>
  46. public class Bg : UiNode<EditorWindow, Godot.ColorRect, Bg>
  47. {
  48. public Bg(EditorWindow uiPanel, Godot.ColorRect node) : base(uiPanel, node) { }
  49. public override Bg Clone() => new (UiPanel, (Godot.ColorRect)Instance.Duplicate());
  50. }
  51.  
  52. /// <summary>
  53. /// 类型: <see cref="Godot.MarginContainer"/>, 路径: EditorWindow.Window.Panel.VBoxContainer.Body
  54. /// </summary>
  55. public class Body : UiNode<EditorWindow, Godot.MarginContainer, Body>
  56. {
  57. public Body(EditorWindow uiPanel, Godot.MarginContainer node) : base(uiPanel, node) { }
  58. public override Body Clone() => new (UiPanel, (Godot.MarginContainer)Instance.Duplicate());
  59. }
  60.  
  61. /// <summary>
  62. /// 类型: <see cref="Godot.Button"/>, 路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer.CustomButton.Button
  63. /// </summary>
  64. public class Button : UiNode<EditorWindow, Godot.Button, Button>
  65. {
  66. public Button(EditorWindow uiPanel, Godot.Button node) : base(uiPanel, node) { }
  67. public override Button Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  68. }
  69.  
  70. /// <summary>
  71. /// 类型: <see cref="Godot.CenterContainer"/>, 路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer.CustomButton
  72. /// </summary>
  73. public class CustomButton : UiNode<EditorWindow, Godot.CenterContainer, CustomButton>
  74. {
  75. /// <summary>
  76. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer.Button
  77. /// </summary>
  78. public Button L_Button
  79. {
  80. get
  81. {
  82. if (_L_Button == null) _L_Button = new Button(UiPanel, Instance.GetNodeOrNull<Godot.Button>("Button"));
  83. return _L_Button;
  84. }
  85. }
  86. private Button _L_Button;
  87.  
  88. public CustomButton(EditorWindow uiPanel, Godot.CenterContainer node) : base(uiPanel, node) { }
  89. public override CustomButton Clone() => new (UiPanel, (Godot.CenterContainer)Instance.Duplicate());
  90. }
  91.  
  92. /// <summary>
  93. /// 类型: <see cref="Godot.HBoxContainer"/>, 路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer
  94. /// </summary>
  95. public class HBoxContainer : UiNode<EditorWindow, Godot.HBoxContainer, HBoxContainer>
  96. {
  97. /// <summary>
  98. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.CenterContainer"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.CustomButton
  99. /// </summary>
  100. public CustomButton L_CustomButton
  101. {
  102. get
  103. {
  104. if (_L_CustomButton == null) _L_CustomButton = new CustomButton(UiPanel, Instance.GetNodeOrNull<Godot.CenterContainer>("CustomButton"));
  105. return _L_CustomButton;
  106. }
  107. }
  108. private CustomButton _L_CustomButton;
  109.  
  110. public HBoxContainer(EditorWindow uiPanel, Godot.HBoxContainer node) : base(uiPanel, node) { }
  111. public override HBoxContainer Clone() => new (UiPanel, (Godot.HBoxContainer)Instance.Duplicate());
  112. }
  113.  
  114. /// <summary>
  115. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: EditorWindow.Window.Panel.VBoxContainer
  116. /// </summary>
  117. public class VBoxContainer : UiNode<EditorWindow, Godot.VBoxContainer, VBoxContainer>
  118. {
  119. /// <summary>
  120. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.MarginContainer"/>, 节点路径: EditorWindow.Window.Panel.Body
  121. /// </summary>
  122. public Body L_Body
  123. {
  124. get
  125. {
  126. if (_L_Body == null) _L_Body = new Body(UiPanel, Instance.GetNodeOrNull<Godot.MarginContainer>("Body"));
  127. return _L_Body;
  128. }
  129. }
  130. private Body _L_Body;
  131.  
  132. /// <summary>
  133. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: EditorWindow.Window.Panel.HBoxContainer
  134. /// </summary>
  135. public HBoxContainer L_HBoxContainer
  136. {
  137. get
  138. {
  139. if (_L_HBoxContainer == null) _L_HBoxContainer = new HBoxContainer(UiPanel, Instance.GetNodeOrNull<Godot.HBoxContainer>("HBoxContainer"));
  140. return _L_HBoxContainer;
  141. }
  142. }
  143. private HBoxContainer _L_HBoxContainer;
  144.  
  145. public VBoxContainer(EditorWindow uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  146. public override VBoxContainer Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  147. }
  148.  
  149. /// <summary>
  150. /// 类型: <see cref="Godot.Panel"/>, 路径: EditorWindow.Window.Panel
  151. /// </summary>
  152. public class Panel : UiNode<EditorWindow, Godot.Panel, Panel>
  153. {
  154. /// <summary>
  155. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: EditorWindow.Window.VBoxContainer
  156. /// </summary>
  157. public VBoxContainer L_VBoxContainer
  158. {
  159. get
  160. {
  161. if (_L_VBoxContainer == null) _L_VBoxContainer = new VBoxContainer(UiPanel, Instance.GetNodeOrNull<Godot.VBoxContainer>("VBoxContainer"));
  162. return _L_VBoxContainer;
  163. }
  164. }
  165. private VBoxContainer _L_VBoxContainer;
  166.  
  167. public Panel(EditorWindow uiPanel, Godot.Panel node) : base(uiPanel, node) { }
  168. public override Panel Clone() => new (UiPanel, (Godot.Panel)Instance.Duplicate());
  169. }
  170.  
  171. /// <summary>
  172. /// 类型: <see cref="Godot.Window"/>, 路径: EditorWindow.Window
  173. /// </summary>
  174. public class Window : UiNode<EditorWindow, Godot.Window, Window>
  175. {
  176. /// <summary>
  177. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Panel"/>, 节点路径: EditorWindow.Panel
  178. /// </summary>
  179. public Panel L_Panel
  180. {
  181. get
  182. {
  183. if (_L_Panel == null) _L_Panel = new Panel(UiPanel, Instance.GetNodeOrNull<Godot.Panel>("Panel"));
  184. return _L_Panel;
  185. }
  186. }
  187. private Panel _L_Panel;
  188.  
  189. public Window(EditorWindow uiPanel, Godot.Window node) : base(uiPanel, node) { }
  190. public override Window Clone() => new (UiPanel, (Godot.Window)Instance.Duplicate());
  191. }
  192.  
  193.  
  194. /// <summary>
  195. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: EditorWindow.Bg
  196. /// </summary>
  197. public Bg S_Bg => L_Bg;
  198.  
  199. /// <summary>
  200. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.MarginContainer"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.Body
  201. /// </summary>
  202. public Body S_Body => L_Window.L_Panel.L_VBoxContainer.L_Body;
  203.  
  204. /// <summary>
  205. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer.CustomButton.Button
  206. /// </summary>
  207. public Button S_Button => L_Window.L_Panel.L_VBoxContainer.L_HBoxContainer.L_CustomButton.L_Button;
  208.  
  209. /// <summary>
  210. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.CenterContainer"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer.CustomButton
  211. /// </summary>
  212. public CustomButton S_CustomButton => L_Window.L_Panel.L_VBoxContainer.L_HBoxContainer.L_CustomButton;
  213.  
  214. /// <summary>
  215. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer.HBoxContainer
  216. /// </summary>
  217. public HBoxContainer S_HBoxContainer => L_Window.L_Panel.L_VBoxContainer.L_HBoxContainer;
  218.  
  219. /// <summary>
  220. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: EditorWindow.Window.Panel.VBoxContainer
  221. /// </summary>
  222. public VBoxContainer S_VBoxContainer => L_Window.L_Panel.L_VBoxContainer;
  223.  
  224. /// <summary>
  225. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Panel"/>, 节点路径: EditorWindow.Window.Panel
  226. /// </summary>
  227. public Panel S_Panel => L_Window.L_Panel;
  228.  
  229. /// <summary>
  230. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Window"/>, 节点路径: EditorWindow.Window
  231. /// </summary>
  232. public Window S_Window => L_Window;
  233.  
  234. }