Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / pauseMenu / PauseMenu.cs
@小李xl 小李xl on 9 Mar 2024 7 KB 制作图鉴
  1. namespace UI.PauseMenu;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class PauseMenu : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: PauseMenu.ColorRect
  10. /// </summary>
  11. public ColorRect L_ColorRect
  12. {
  13. get
  14. {
  15. if (_L_ColorRect == null) _L_ColorRect = new ColorRect((PauseMenuPanel)this, GetNode<Godot.ColorRect>("ColorRect"));
  16. return _L_ColorRect;
  17. }
  18. }
  19. private ColorRect _L_ColorRect;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: PauseMenu.VBoxContainer
  23. /// </summary>
  24. public VBoxContainer L_VBoxContainer
  25. {
  26. get
  27. {
  28. if (_L_VBoxContainer == null) _L_VBoxContainer = new VBoxContainer((PauseMenuPanel)this, GetNode<Godot.VBoxContainer>("VBoxContainer"));
  29. return _L_VBoxContainer;
  30. }
  31. }
  32. private VBoxContainer _L_VBoxContainer;
  33.  
  34.  
  35. public PauseMenu() : base(nameof(PauseMenu))
  36. {
  37. }
  38.  
  39. public sealed override void OnInitNestedUi()
  40. {
  41.  
  42. }
  43.  
  44. /// <summary>
  45. /// 类型: <see cref="Godot.ColorRect"/>, 路径: PauseMenu.ColorRect
  46. /// </summary>
  47. public class ColorRect : UiNode<PauseMenuPanel, Godot.ColorRect, ColorRect>
  48. {
  49. public ColorRect(PauseMenuPanel uiPanel, Godot.ColorRect node) : base(uiPanel, node) { }
  50. public override ColorRect Clone() => new (UiPanel, (Godot.ColorRect)Instance.Duplicate());
  51. }
  52.  
  53. /// <summary>
  54. /// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Continue
  55. /// </summary>
  56. public class Continue : UiNode<PauseMenuPanel, Godot.Button, Continue>
  57. {
  58. public Continue(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  59. public override Continue Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  60. }
  61.  
  62. /// <summary>
  63. /// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Restart
  64. /// </summary>
  65. public class Restart : UiNode<PauseMenuPanel, Godot.Button, Restart>
  66. {
  67. public Restart(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  68. public override Restart Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  69. }
  70.  
  71. /// <summary>
  72. /// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Encyclopedia
  73. /// </summary>
  74. public class Encyclopedia : UiNode<PauseMenuPanel, Godot.Button, Encyclopedia>
  75. {
  76. public Encyclopedia(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  77. public override Encyclopedia Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  78. }
  79.  
  80. /// <summary>
  81. /// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Setting
  82. /// </summary>
  83. public class Setting : UiNode<PauseMenuPanel, Godot.Button, Setting>
  84. {
  85. public Setting(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  86. public override Setting Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  87. }
  88.  
  89. /// <summary>
  90. /// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Exit
  91. /// </summary>
  92. public class Exit : UiNode<PauseMenuPanel, Godot.Button, Exit>
  93. {
  94. public Exit(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  95. public override Exit Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  96. }
  97.  
  98. /// <summary>
  99. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: PauseMenu.VBoxContainer
  100. /// </summary>
  101. public class VBoxContainer : UiNode<PauseMenuPanel, Godot.VBoxContainer, VBoxContainer>
  102. {
  103. /// <summary>
  104. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Continue
  105. /// </summary>
  106. public Continue L_Continue
  107. {
  108. get
  109. {
  110. if (_L_Continue == null) _L_Continue = new Continue(UiPanel, Instance.GetNode<Godot.Button>("Continue"));
  111. return _L_Continue;
  112. }
  113. }
  114. private Continue _L_Continue;
  115.  
  116. /// <summary>
  117. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Restart
  118. /// </summary>
  119. public Restart L_Restart
  120. {
  121. get
  122. {
  123. if (_L_Restart == null) _L_Restart = new Restart(UiPanel, Instance.GetNode<Godot.Button>("Restart"));
  124. return _L_Restart;
  125. }
  126. }
  127. private Restart _L_Restart;
  128.  
  129. /// <summary>
  130. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Encyclopedia
  131. /// </summary>
  132. public Encyclopedia L_Encyclopedia
  133. {
  134. get
  135. {
  136. if (_L_Encyclopedia == null) _L_Encyclopedia = new Encyclopedia(UiPanel, Instance.GetNode<Godot.Button>("Encyclopedia"));
  137. return _L_Encyclopedia;
  138. }
  139. }
  140. private Encyclopedia _L_Encyclopedia;
  141.  
  142. /// <summary>
  143. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Setting
  144. /// </summary>
  145. public Setting L_Setting
  146. {
  147. get
  148. {
  149. if (_L_Setting == null) _L_Setting = new Setting(UiPanel, Instance.GetNode<Godot.Button>("Setting"));
  150. return _L_Setting;
  151. }
  152. }
  153. private Setting _L_Setting;
  154.  
  155. /// <summary>
  156. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Exit
  157. /// </summary>
  158. public Exit L_Exit
  159. {
  160. get
  161. {
  162. if (_L_Exit == null) _L_Exit = new Exit(UiPanel, Instance.GetNode<Godot.Button>("Exit"));
  163. return _L_Exit;
  164. }
  165. }
  166. private Exit _L_Exit;
  167.  
  168. public VBoxContainer(PauseMenuPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  169. public override VBoxContainer Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  170. }
  171.  
  172.  
  173. /// <summary>
  174. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: PauseMenu.ColorRect
  175. /// </summary>
  176. public ColorRect S_ColorRect => L_ColorRect;
  177.  
  178. /// <summary>
  179. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Continue
  180. /// </summary>
  181. public Continue S_Continue => L_VBoxContainer.L_Continue;
  182.  
  183. /// <summary>
  184. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Restart
  185. /// </summary>
  186. public Restart S_Restart => L_VBoxContainer.L_Restart;
  187.  
  188. /// <summary>
  189. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Encyclopedia
  190. /// </summary>
  191. public Encyclopedia S_Encyclopedia => L_VBoxContainer.L_Encyclopedia;
  192.  
  193. /// <summary>
  194. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Setting
  195. /// </summary>
  196. public Setting S_Setting => L_VBoxContainer.L_Setting;
  197.  
  198. /// <summary>
  199. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Exit
  200. /// </summary>
  201. public Exit S_Exit => L_VBoxContainer.L_Exit;
  202.  
  203. /// <summary>
  204. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: PauseMenu.VBoxContainer
  205. /// </summary>
  206. public VBoxContainer S_VBoxContainer => L_VBoxContainer;
  207.  
  208. }