Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / main / Main.cs
  1. namespace UI.Main;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class Main : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Title
  10. /// </summary>
  11. public UiNode_Title L_Title
  12. {
  13. get
  14. {
  15. if (_L_Title == null) _L_Title = new UiNode_Title(GetNodeOrNull<Godot.Label>("Title"));
  16. return _L_Title;
  17. }
  18. }
  19. private UiNode_Title _L_Title;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList
  23. /// </summary>
  24. public UiNode_ButtonList L_ButtonList
  25. {
  26. get
  27. {
  28. if (_L_ButtonList == null) _L_ButtonList = new UiNode_ButtonList(GetNodeOrNull<Godot.VBoxContainer>("ButtonList"));
  29. return _L_ButtonList;
  30. }
  31. }
  32. private UiNode_ButtonList _L_ButtonList;
  33.  
  34. /// <summary>
  35. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  36. /// </summary>
  37. public UiNode_Version L_Version
  38. {
  39. get
  40. {
  41. if (_L_Version == null) _L_Version = new UiNode_Version(GetNodeOrNull<Godot.Label>("Version"));
  42. return _L_Version;
  43. }
  44. }
  45. private UiNode_Version _L_Version;
  46.  
  47.  
  48. public Main() : base(nameof(Main))
  49. {
  50. }
  51.  
  52. /// <summary>
  53. /// 类型: <see cref="Godot.Label"/>, 路径: Main.Title
  54. /// </summary>
  55. public class UiNode_Title : IUiNode<Godot.Label, UiNode_Title>
  56. {
  57. public UiNode_Title(Godot.Label node) : base(node) { }
  58. public override UiNode_Title Clone() => new ((Godot.Label)Instance.Duplicate());
  59. }
  60.  
  61. /// <summary>
  62. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Start
  63. /// </summary>
  64. public class UiNode_Start : IUiNode<Godot.Button, UiNode_Start>
  65. {
  66. public UiNode_Start(Godot.Button node) : base(node) { }
  67. public override UiNode_Start Clone() => new ((Godot.Button)Instance.Duplicate());
  68. }
  69.  
  70. /// <summary>
  71. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Setting
  72. /// </summary>
  73. public class UiNode_Setting : IUiNode<Godot.Button, UiNode_Setting>
  74. {
  75. public UiNode_Setting(Godot.Button node) : base(node) { }
  76. public override UiNode_Setting Clone() => new ((Godot.Button)Instance.Duplicate());
  77. }
  78.  
  79. /// <summary>
  80. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Exit
  81. /// </summary>
  82. public class UiNode_Exit : IUiNode<Godot.Button, UiNode_Exit>
  83. {
  84. public UiNode_Exit(Godot.Button node) : base(node) { }
  85. public override UiNode_Exit Clone() => new ((Godot.Button)Instance.Duplicate());
  86. }
  87.  
  88. /// <summary>
  89. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.ButtonList
  90. /// </summary>
  91. public class UiNode_ButtonList : IUiNode<Godot.VBoxContainer, UiNode_ButtonList>
  92. {
  93. /// <summary>
  94. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Start
  95. /// </summary>
  96. public UiNode_Start L_Start
  97. {
  98. get
  99. {
  100. if (_L_Start == null) _L_Start = new UiNode_Start(Instance.GetNodeOrNull<Godot.Button>("Start"));
  101. return _L_Start;
  102. }
  103. }
  104. private UiNode_Start _L_Start;
  105.  
  106. /// <summary>
  107. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Setting
  108. /// </summary>
  109. public UiNode_Setting L_Setting
  110. {
  111. get
  112. {
  113. if (_L_Setting == null) _L_Setting = new UiNode_Setting(Instance.GetNodeOrNull<Godot.Button>("Setting"));
  114. return _L_Setting;
  115. }
  116. }
  117. private UiNode_Setting _L_Setting;
  118.  
  119. /// <summary>
  120. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Exit
  121. /// </summary>
  122. public UiNode_Exit L_Exit
  123. {
  124. get
  125. {
  126. if (_L_Exit == null) _L_Exit = new UiNode_Exit(Instance.GetNodeOrNull<Godot.Button>("Exit"));
  127. return _L_Exit;
  128. }
  129. }
  130. private UiNode_Exit _L_Exit;
  131.  
  132. public UiNode_ButtonList(Godot.VBoxContainer node) : base(node) { }
  133. public override UiNode_ButtonList Clone() => new ((Godot.VBoxContainer)Instance.Duplicate());
  134. }
  135.  
  136. /// <summary>
  137. /// 类型: <see cref="Godot.Label"/>, 路径: Main.Version
  138. /// </summary>
  139. public class UiNode_Version : IUiNode<Godot.Label, UiNode_Version>
  140. {
  141. public UiNode_Version(Godot.Label node) : base(node) { }
  142. public override UiNode_Version Clone() => new ((Godot.Label)Instance.Duplicate());
  143. }
  144.  
  145. }