From d0e6dd13cda88959d261efce3109bea8a5bd8c75 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 8 Dec 2023 20:09:50 +0100 Subject: [PATCH] Renamed class --- I18N Commander/App/scenes/BtnIcon.cs | 10 ++++++++++ I18N Commander/App/scenes/btn_icon.cs | 9 --------- I18N Commander/App/scenes/btn_icon.tscn | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 I18N Commander/App/scenes/BtnIcon.cs delete mode 100644 I18N Commander/App/scenes/btn_icon.cs diff --git a/I18N Commander/App/scenes/BtnIcon.cs b/I18N Commander/App/scenes/BtnIcon.cs new file mode 100644 index 0000000..7ca34c8 --- /dev/null +++ b/I18N Commander/App/scenes/BtnIcon.cs @@ -0,0 +1,10 @@ +using Godot; + +namespace App.scenes; + +public partial class BtnIcon : Control +{ + [Export] + [ExportGroup("Data")] + public string Text { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/I18N Commander/App/scenes/btn_icon.cs b/I18N Commander/App/scenes/btn_icon.cs deleted file mode 100644 index 13af97c..0000000 --- a/I18N Commander/App/scenes/btn_icon.cs +++ /dev/null @@ -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; -} diff --git a/I18N Commander/App/scenes/btn_icon.tscn b/I18N Commander/App/scenes/btn_icon.tscn index 7cb21f8..b69a718 100644 --- a/I18N Commander/App/scenes/btn_icon.tscn +++ b/I18N Commander/App/scenes/btn_icon.tscn @@ -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