Draft: Resolve "Migrate app to use Godot for the UI" #93

Open
thorsten wants to merge 34 commits from 58-migrate-app-to-use-godot-for-the-ui into main
Showing only changes of commit 08b318b93b - Show all commits

View File

@ -10,5 +10,18 @@ public partial class BtnIcon : Control
[Export]
[ExportGroup("Data")]
public Texture Icon { get; set; }
public Texture2D Icon { get; set; }
#region Overrides of Node
public override void _Ready()
{
var button = this.GetNode<Button>("%btn");
button.Text = this.Text;
button.Icon = this.Icon;
base._Ready();
}
#endregion
}