Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / ui / loading / Loading.cs
@小李xl 小李xl on 15 May 2023 1 KB 添加加载页面
  1. namespace UI.Loading;
  2.  
  3. /// <summary>
  4. /// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
  5. /// </summary>
  6. public abstract partial class Loading : UiBase
  7. {
  8. /// <summary>
  9. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ColorRect"/>, 节点路径: Loading.ColorRect
  10. /// </summary>
  11. public UiNode_ColorRect L_ColorRect
  12. {
  13. get
  14. {
  15. if (_L_ColorRect == null) _L_ColorRect = new UiNode_ColorRect(GetNodeOrNull<Godot.ColorRect>("ColorRect"));
  16. return _L_ColorRect;
  17. }
  18. }
  19. private UiNode_ColorRect _L_ColorRect;
  20.  
  21. /// <summary>
  22. /// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Loading.Label
  23. /// </summary>
  24. public UiNode_Label L_Label
  25. {
  26. get
  27. {
  28. if (_L_Label == null) _L_Label = new UiNode_Label(GetNodeOrNull<Godot.Label>("Label"));
  29. return _L_Label;
  30. }
  31. }
  32. private UiNode_Label _L_Label;
  33.  
  34.  
  35. public Loading() : base(nameof(Loading))
  36. {
  37. }
  38.  
  39. /// <summary>
  40. /// 类型: <see cref="Godot.ColorRect"/>, 路径: Loading.ColorRect
  41. /// </summary>
  42. public class UiNode_ColorRect : IUiNode<Godot.ColorRect, UiNode_ColorRect>
  43. {
  44. public UiNode_ColorRect(Godot.ColorRect node) : base(node) { }
  45. public override UiNode_ColorRect Clone() => new ((Godot.ColorRect)Instance.Duplicate());
  46. }
  47.  
  48. /// <summary>
  49. /// 类型: <see cref="Godot.Label"/>, 路径: Loading.Label
  50. /// </summary>
  51. public class UiNode_Label : IUiNode<Godot.Label, UiNode_Label>
  52. {
  53. public UiNode_Label(Godot.Label node) : base(node) { }
  54. public override UiNode_Label Clone() => new ((Godot.Label)Instance.Duplicate());
  55. }
  56.  
  57. }