diff --git a/I18N Commander/App/scenes/btn_icon.cs b/I18N Commander/App/scenes/btn_icon.cs new file mode 100644 index 0000000..13af97c --- /dev/null +++ b/I18N Commander/App/scenes/btn_icon.cs @@ -0,0 +1,9 @@ +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 new file mode 100644 index 0000000..7cb21f8 --- /dev/null +++ b/I18N Commander/App/scenes/btn_icon.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=2 format=3 uid="uid://d0x0yv7nevod7"] + +[ext_resource type="Script" path="res://scenes/btn_icon.cs" id="1_7lwon"] + +[node name="btn_icon" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_7lwon") + +[node name="margin" type="MarginContainer" parent="."] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="btn" type="Button" parent="margin"] +unique_name_in_owner = true +layout_mode = 2 +theme_override_constants/h_separation = 6