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
3 changed files with 12 additions and 11 deletions
Showing only changes of commit d0e6dd13cd - Show all commits

View File

@ -0,0 +1,10 @@
using Godot;
namespace App.scenes;
public partial class BtnIcon : Control
{
[Export]
[ExportGroup("Data")]
public string Text { get; set; } = string.Empty;
}

View File

@ -1,9 +0,0 @@
using Godot;
using System;
public partial class btn_icon : Control
{
[Export(PropertyHint.TypeString, "The text to display on the button.")]
[ExportGroup("Data")]
public string Text { get; set; } = string.Empty;
}

View File

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://d0x0yv7nevod7"] [gd_scene load_steps=2 format=3 uid="uid://d0x0yv7nevod7"]
[ext_resource type="Script" path="res://scenes/btn_icon.cs" id="1_7lwon"] [ext_resource type="Script" path="res://scenes/BtnIcon.cs" id="1_b787p"]
[node name="btn_icon" type="Control"] [node name="btn_icon" type="Control"]
layout_mode = 3 layout_mode = 3
@ -9,7 +9,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
script = ExtResource("1_7lwon") script = ExtResource("1_b787p")
[node name="margin" type="MarginContainer" parent="."] [node name="margin" type="MarginContainer" parent="."]
layout_mode = 0 layout_mode = 0