Renamed class

This commit is contained in:
Thorsten Sommer 2023-12-08 20:09:50 +01:00
parent 144267dc9e
commit d0e6dd13cd
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 12 additions and 11 deletions

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"]
[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"]
layout_mode = 3
@ -9,7 +9,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_7lwon")
script = ExtResource("1_b787p")
[node name="margin" type="MarginContainer" parent="."]
layout_mode = 0