更新了生产过程
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user