This commit is contained in:
CortexCore
2023-06-19 00:41:44 +08:00
parent 073996ce6c
commit bf122c66dc
48 changed files with 683 additions and 84 deletions

View File

@@ -0,0 +1,14 @@
using Godot;
using System;
using System.Globalization;
namespace BITKit;
public partial class DateTimeNode : Label
{
[Export]
private string timeFormat;
public override void _Process(double delta)
{
Text = string.IsNullOrEmpty(timeFormat) ? DateTime.Now.ToString(CultureInfo.InvariantCulture) : DateTime.Now.ToString(timeFormat);
}
}