更新了生产过程

This commit is contained in:
CortexCore
2023-07-05 10:20:08 +08:00
parent d12e53739d
commit 03321346e4
23 changed files with 1454 additions and 191 deletions

View File

@@ -1,3 +1,4 @@
using System.Diagnostics;
using Godot;
namespace BITKit;
@@ -16,6 +17,7 @@ public partial class UXContainer:Control,IUXContainer
[Export] public Label titleLabel;
[Export] public TextureRect icon;
[Export] public Button button;
[Export] public Node contextContainer;
[ExportCategory("Label")]
[Export] public Label updateTimeLabel;
[Export] public Label createTimeLabel;
@@ -46,6 +48,19 @@ public partial class UXContainer:Control,IUXContainer
Text=text;
}
public void AddContainer(Node node)
{
contextContainer.AddChild(node);
}
public void ClearContainer()
{
foreach (var x in contextContainer.GetChildren())
{
x.QueueFree();
}
}
public Texture2D Icon
{
get => icon.Texture;