Draft: Resolve "Migrate app to use Godot for the UI" #93
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user