Create date label
This commit is contained in:
parent
b6ef0034ac
commit
377dc37219
@ -6,6 +6,9 @@ public partial class Lab : Node2D
|
|||||||
// Called when the node enters the scene tree for the first time.
|
// Called when the node enters the scene tree for the first time.
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
|
var label = GetNode<Label>("TitleBar/TitleBarBodyDate/DateLabel");
|
||||||
|
label.Text = Player.Timeline.InternalDate.ToLongDateString();
|
||||||
|
Player.Timeline.OnDayChanged += d => label.Text = d.ToLongDateString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user