Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / main / Main.cs
@小李xl 小李xl on 13 Oct 2023 11 KB 设置更新,添加左下角网站
  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.ColorRect"/>, 节点路径: Main.ColorRect
  10. /// </summary>
  11. public ColorRect L_ColorRect
  12. {
  13. get
  14. {
  15. if (_L_ColorRect == null) _L_ColorRect = new ColorRect((MainPanel)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"/>, 节点路径: Main.VBoxContainer
  23. /// </summary>
  24. public VBoxContainer L_VBoxContainer
  25. {
  26. get
  27. {
  28. if (_L_VBoxContainer == null) _L_VBoxContainer = new VBoxContainer((MainPanel)this, GetNode<Godot.VBoxContainer>("VBoxContainer"));
  29. return _L_VBoxContainer;
  30. }
  31. }
  32. private VBoxContainer _L_VBoxContainer;
  33.  
  34. /// <summary>
  35. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  36. /// </summary>
  37. public Version L_Version
  38. {
  39. get
  40. {
  41. if (_L_Version == null) _L_Version = new Version((MainPanel)this, GetNode<Godot.Label>("Version"));
  42. return _L_Version;
  43. }
  44. }
  45. private Version _L_Version;
  46.  
  47. /// <summary>
  48. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.LinkButton"/>, 节点路径: Main.LinkButton
  49. /// </summary>
  50. public LinkButton L_LinkButton
  51. {
  52. get
  53. {
  54. if (_L_LinkButton == null) _L_LinkButton = new LinkButton((MainPanel)this, GetNode<Godot.LinkButton>("LinkButton"));
  55. return _L_LinkButton;
  56. }
  57. }
  58. private LinkButton _L_LinkButton;
  59.  
  60. /// <summary>
  61. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.LinkButton"/>, 节点路径: Main.LinkButton2
  62. /// </summary>
  63. public LinkButton2 L_LinkButton2
  64. {
  65. get
  66. {
  67. if (_L_LinkButton2 == null) _L_LinkButton2 = new LinkButton2((MainPanel)this, GetNode<Godot.LinkButton>("LinkButton2"));
  68. return _L_LinkButton2;
  69. }
  70. }
  71. private LinkButton2 _L_LinkButton2;
  72.  
  73.  
  74. public Main() : base(nameof(Main))
  75. {
  76. }
  77.  
  78. public sealed override void OnInitNestedUi()
  79. {
  80.  
  81. }
  82.  
  83. /// <summary>
  84. /// 类型: <see cref="Godot.ColorRect"/>, 路径: Main.ColorRect
  85. /// </summary>
  86. public class ColorRect : UiNode<MainPanel, Godot.ColorRect, ColorRect>
  87. {
  88. public ColorRect(MainPanel uiPanel, Godot.ColorRect node) : base(uiPanel, node) { }
  89. public override ColorRect Clone() => new (UiPanel, (Godot.ColorRect)Instance.Duplicate());
  90. }
  91.  
  92. /// <summary>
  93. /// 类型: <see cref="Godot.Label"/>, 路径: Main.VBoxContainer.Title
  94. /// </summary>
  95. public class Title : UiNode<MainPanel, Godot.Label, Title>
  96. {
  97. public Title(MainPanel uiPanel, Godot.Label node) : base(uiPanel, node) { }
  98. public override Title Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate());
  99. }
  100.  
  101. /// <summary>
  102. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Start
  103. /// </summary>
  104. public class Start : UiNode<MainPanel, Godot.Button, Start>
  105. {
  106. public Start(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  107. public override Start Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  108. }
  109.  
  110. /// <summary>
  111. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Tools
  112. /// </summary>
  113. public class Tools : UiNode<MainPanel, Godot.Button, Tools>
  114. {
  115. public Tools(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  116. public override Tools Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  117. }
  118.  
  119. /// <summary>
  120. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Setting
  121. /// </summary>
  122. public class Setting : UiNode<MainPanel, Godot.Button, Setting>
  123. {
  124. public Setting(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  125. public override Setting Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  126. }
  127.  
  128. /// <summary>
  129. /// 类型: <see cref="Godot.Button"/>, 路径: Main.VBoxContainer.ButtonList.Exit
  130. /// </summary>
  131. public class Exit : UiNode<MainPanel, Godot.Button, Exit>
  132. {
  133. public Exit(MainPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
  134. public override Exit Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
  135. }
  136.  
  137. /// <summary>
  138. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.VBoxContainer.ButtonList
  139. /// </summary>
  140. public class ButtonList : UiNode<MainPanel, Godot.VBoxContainer, ButtonList>
  141. {
  142. /// <summary>
  143. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Start
  144. /// </summary>
  145. public Start L_Start
  146. {
  147. get
  148. {
  149. if (_L_Start == null) _L_Start = new Start(UiPanel, Instance.GetNode<Godot.Button>("Start"));
  150. return _L_Start;
  151. }
  152. }
  153. private Start _L_Start;
  154.  
  155. /// <summary>
  156. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Tools
  157. /// </summary>
  158. public Tools L_Tools
  159. {
  160. get
  161. {
  162. if (_L_Tools == null) _L_Tools = new Tools(UiPanel, Instance.GetNode<Godot.Button>("Tools"));
  163. return _L_Tools;
  164. }
  165. }
  166. private Tools _L_Tools;
  167.  
  168. /// <summary>
  169. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Setting
  170. /// </summary>
  171. public Setting L_Setting
  172. {
  173. get
  174. {
  175. if (_L_Setting == null) _L_Setting = new Setting(UiPanel, Instance.GetNode<Godot.Button>("Setting"));
  176. return _L_Setting;
  177. }
  178. }
  179. private Setting _L_Setting;
  180.  
  181. /// <summary>
  182. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.Exit
  183. /// </summary>
  184. public Exit L_Exit
  185. {
  186. get
  187. {
  188. if (_L_Exit == null) _L_Exit = new Exit(UiPanel, Instance.GetNode<Godot.Button>("Exit"));
  189. return _L_Exit;
  190. }
  191. }
  192. private Exit _L_Exit;
  193.  
  194. public ButtonList(MainPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  195. public override ButtonList Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  196. }
  197.  
  198. /// <summary>
  199. /// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Main.VBoxContainer
  200. /// </summary>
  201. public class VBoxContainer : UiNode<MainPanel, Godot.VBoxContainer, VBoxContainer>
  202. {
  203. /// <summary>
  204. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Title
  205. /// </summary>
  206. public Title L_Title
  207. {
  208. get
  209. {
  210. if (_L_Title == null) _L_Title = new Title(UiPanel, Instance.GetNode<Godot.Label>("Title"));
  211. return _L_Title;
  212. }
  213. }
  214. private Title _L_Title;
  215.  
  216. /// <summary>
  217. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.ButtonList
  218. /// </summary>
  219. public ButtonList L_ButtonList
  220. {
  221. get
  222. {
  223. if (_L_ButtonList == null) _L_ButtonList = new ButtonList(UiPanel, Instance.GetNode<Godot.VBoxContainer>("ButtonList"));
  224. return _L_ButtonList;
  225. }
  226. }
  227. private ButtonList _L_ButtonList;
  228.  
  229. public VBoxContainer(MainPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
  230. public override VBoxContainer Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
  231. }
  232.  
  233. /// <summary>
  234. /// 类型: <see cref="Godot.Label"/>, 路径: Main.Version
  235. /// </summary>
  236. public class Version : UiNode<MainPanel, Godot.Label, Version>
  237. {
  238. public Version(MainPanel uiPanel, Godot.Label node) : base(uiPanel, node) { }
  239. public override Version Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate());
  240. }
  241.  
  242. /// <summary>
  243. /// 类型: <see cref="Godot.LinkButton"/>, 路径: Main.LinkButton
  244. /// </summary>
  245. public class LinkButton : UiNode<MainPanel, Godot.LinkButton, LinkButton>
  246. {
  247. public LinkButton(MainPanel uiPanel, Godot.LinkButton node) : base(uiPanel, node) { }
  248. public override LinkButton Clone() => new (UiPanel, (Godot.LinkButton)Instance.Duplicate());
  249. }
  250.  
  251. /// <summary>
  252. /// 类型: <see cref="Godot.LinkButton"/>, 路径: Main.LinkButton2
  253. /// </summary>
  254. public class LinkButton2 : UiNode<MainPanel, Godot.LinkButton, LinkButton2>
  255. {
  256. public LinkButton2(MainPanel uiPanel, Godot.LinkButton node) : base(uiPanel, node) { }
  257. public override LinkButton2 Clone() => new (UiPanel, (Godot.LinkButton)Instance.Duplicate());
  258. }
  259.  
  260.  
  261. /// <summary>
  262. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: Main.ColorRect
  263. /// </summary>
  264. public ColorRect S_ColorRect => L_ColorRect;
  265.  
  266. /// <summary>
  267. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.VBoxContainer.Title
  268. /// </summary>
  269. public Title S_Title => L_VBoxContainer.L_Title;
  270.  
  271. /// <summary>
  272. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Start
  273. /// </summary>
  274. public Start S_Start => L_VBoxContainer.L_ButtonList.L_Start;
  275.  
  276. /// <summary>
  277. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Tools
  278. /// </summary>
  279. public Tools S_Tools => L_VBoxContainer.L_ButtonList.L_Tools;
  280.  
  281. /// <summary>
  282. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Setting
  283. /// </summary>
  284. public Setting S_Setting => L_VBoxContainer.L_ButtonList.L_Setting;
  285.  
  286. /// <summary>
  287. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Main.VBoxContainer.ButtonList.Exit
  288. /// </summary>
  289. public Exit S_Exit => L_VBoxContainer.L_ButtonList.L_Exit;
  290.  
  291. /// <summary>
  292. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.VBoxContainer.ButtonList
  293. /// </summary>
  294. public ButtonList S_ButtonList => L_VBoxContainer.L_ButtonList;
  295.  
  296. /// <summary>
  297. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Main.VBoxContainer
  298. /// </summary>
  299. public VBoxContainer S_VBoxContainer => L_VBoxContainer;
  300.  
  301. /// <summary>
  302. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Label"/>, 节点路径: Main.Version
  303. /// </summary>
  304. public Version S_Version => L_Version;
  305.  
  306. /// <summary>
  307. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.LinkButton"/>, 节点路径: Main.LinkButton
  308. /// </summary>
  309. public LinkButton S_LinkButton => L_LinkButton;
  310.  
  311. /// <summary>
  312. /// 场景中唯一名称的节点, 节点类型: <see cref="Godot.LinkButton"/>, 节点路径: Main.LinkButton2
  313. /// </summary>
  314. public LinkButton2 S_LinkButton2 => L_LinkButton2;
  315.  
  316. }