19 lines
507 B
C#
19 lines
507 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class Lab : Node2D
|
|
{
|
|
// Called when the node enters the scene tree for the first time.
|
|
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.
|
|
public override void _Process(double delta)
|
|
{
|
|
}
|
|
}
|