Draft: Resolve "Migrate app to use Godot for the UI" #93
9
I18N Commander/App/scenes/btn_icon.cs
Normal file
9
I18N Commander/App/scenes/btn_icon.cs
Normal file
@ -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;
|
||||||
|
}
|
22
I18N Commander/App/scenes/btn_icon.tscn
Normal file
22
I18N Commander/App/scenes/btn_icon.tscn
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user