Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / main / Main.cs
@lijincheng lijincheng on 11 Jul 2023 7 KB 调整生成Ui的代码
  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 Main_Title L_Title
  12. {
  13. get
  14. {
  15. if (_L_Title == null) _L_Title = new Main_Title(GetNodeOrNull<Godot.Label>("Title"));
  16. return _L_Title;
  17. }
  18. }
  19. private Main_Title _L_Title;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList
  23. /// </summary>
  24. public Main_ButtonList L_ButtonList
  25. {
  26. get
  27. {
  28. if (_L_ButtonList == null) _L_ButtonList = new Main_ButtonList(GetNodeOrNull<Godot.VBoxContainer>("ButtonList"));
  29. return _L_ButtonList;
  30. }
  31. }
  32. private Main_ButtonList _L_ButtonList;
  33.  
  34. /// <summary>
  35. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  36. /// </summary>
  37. public Main_Version L_Version
  38. {
  39. get
  40. {
  41. if (_L_Version == null) _L_Version = new Main_Version(GetNodeOrNull<Godot.Label>("Version"));
  42. return _L_Version;
  43. }
  44. }
  45. private Main_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 Main_Title : IUiNode<Godot.Label, Main_Title>
  56. {
  57. public Main_Title(Godot.Label node) : base(node) { }
  58. public override Main_Title Clone() => new ((Godot.Label)Instance.Duplicate());
  59. }
  60.  
  61. /// <summary>
  62. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Start
  63. /// </summary>
  64. public class Main_Start : IUiNode<Godot.Button, Main_Start>
  65. {
  66. public Main_Start(Godot.Button node) : base(node) { }
  67. public override Main_Start Clone() => new ((Godot.Button)Instance.Duplicate());
  68. }
  69.  
  70. /// <summary>
  71. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Tools
  72. /// </summary>
  73. public class Main_Tools : IUiNode<Godot.Button, Main_Tools>
  74. {
  75. public Main_Tools(Godot.Button node) : base(node) { }
  76. public override Main_Tools Clone() => new ((Godot.Button)Instance.Duplicate());
  77. }
  78.  
  79. /// <summary>
  80. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Setting
  81. /// </summary>
  82. public class Main_Setting : IUiNode<Godot.Button, Main_Setting>
  83. {
  84. public Main_Setting(Godot.Button node) : base(node) { }
  85. public override Main_Setting Clone() => new ((Godot.Button)Instance.Duplicate());
  86. }
  87.  
  88. /// <summary>
  89. /// 类型: <see cref="Godot.Button"/>, 路径: Main.ButtonList.Exit
  90. /// </summary>
  91. public class Main_Exit : IUiNode<Godot.Button, Main_Exit>
  92. {
  93. public Main_Exit(Godot.Button node) : base(node) { }
  94. public override Main_Exit Clone() => new ((Godot.Button)Instance.Duplicate());
  95. }
  96.  
  97. /// <summary>
  98. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.ButtonList
  99. /// </summary>
  100. public class Main_ButtonList : IUiNode<Godot.VBoxContainer, Main_ButtonList>
  101. {
  102. /// <summary>
  103. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Start
  104. /// </summary>
  105. public Main_Start L_Start
  106. {
  107. get
  108. {
  109. if (_L_Start == null) _L_Start = new Main_Start(Instance.GetNodeOrNull<Godot.Button>("Start"));
  110. return _L_Start;
  111. }
  112. }
  113. private Main_Start _L_Start;
  114.  
  115. /// <summary>
  116. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Tools
  117. /// </summary>
  118. public Main_Tools L_Tools
  119. {
  120. get
  121. {
  122. if (_L_Tools == null) _L_Tools = new Main_Tools(Instance.GetNodeOrNull<Godot.Button>("Tools"));
  123. return _L_Tools;
  124. }
  125. }
  126. private Main_Tools _L_Tools;
  127.  
  128. /// <summary>
  129. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Setting
  130. /// </summary>
  131. public Main_Setting L_Setting
  132. {
  133. get
  134. {
  135. if (_L_Setting == null) _L_Setting = new Main_Setting(Instance.GetNodeOrNull<Godot.Button>("Setting"));
  136. return _L_Setting;
  137. }
  138. }
  139. private Main_Setting _L_Setting;
  140.  
  141. /// <summary>
  142. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.Exit
  143. /// </summary>
  144. public Main_Exit L_Exit
  145. {
  146. get
  147. {
  148. if (_L_Exit == null) _L_Exit = new Main_Exit(Instance.GetNodeOrNull<Godot.Button>("Exit"));
  149. return _L_Exit;
  150. }
  151. }
  152. private Main_Exit _L_Exit;
  153.  
  154. public Main_ButtonList(Godot.VBoxContainer node) : base(node) { }
  155. public override Main_ButtonList Clone() => new ((Godot.VBoxContainer)Instance.Duplicate());
  156. }
  157.  
  158. /// <summary>
  159. /// 类型: <see cref="Godot.Label"/>, 路径: Main.Version
  160. /// </summary>
  161. public class Main_Version : IUiNode<Godot.Label, Main_Version>
  162. {
  163. public Main_Version(Godot.Label node) : base(node) { }
  164. public override Main_Version Clone() => new ((Godot.Label)Instance.Duplicate());
  165. }
  166.  
  167.  
  168. /// <summary>
  169. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.Main.MainPanel"/>, 节点路径: Main.Title
  170. /// </summary>
  171. public Main_Title S_Title => L_Title;
  172.  
  173. /// <summary>
  174. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList.Start
  175. /// </summary>
  176. public Main_Start S_Start => L_ButtonList.L_Start;
  177.  
  178. /// <summary>
  179. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList.Tools
  180. /// </summary>
  181. public Main_Tools S_Tools => L_ButtonList.L_Tools;
  182.  
  183. /// <summary>
  184. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList.Setting
  185. /// </summary>
  186. public Main_Setting S_Setting => L_ButtonList.L_Setting;
  187.  
  188. /// <summary>
  189. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList.Exit
  190. /// </summary>
  191. public Main_Exit S_Exit => L_ButtonList.L_Exit;
  192.  
  193. /// <summary>
  194. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.Main.MainPanel"/>, 节点路径: Main.ButtonList
  195. /// </summary>
  196. public Main_ButtonList S_ButtonList => L_ButtonList;
  197.  
  198. /// <summary>
  199. /// 场景中唯一名称的节点, 节点类型: <see cref="UI.Main.MainPanel"/>, 节点路径: Main.Version
  200. /// </summary>
  201. public Main_Version S_Version => L_Version;
  202.  
  203. }