From 0be63d9ac9944207ea8aeee85f63e33a64c0c340 Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Sat, 27 Sep 2025 02:25:34 -0500 Subject: [PATCH] Updated TestingInterface Updated code TestingInterface. --- TestingInterface.cs | 8 +++++++ TestingInterface.tscn | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 TestingInterface.tscn diff --git a/TestingInterface.cs b/TestingInterface.cs index a9336c9..4dc3aae 100644 --- a/TestingInterface.cs +++ b/TestingInterface.cs @@ -1,5 +1,13 @@ using Godot; +[SceneTree(root: "Nodes")] public partial class TestingInterface : Control { + [GodotOverride] + void OnReady() + { + GD.Print("TestingInterface::OnReady"); + } + + public override partial void _Ready(); } diff --git a/TestingInterface.tscn b/TestingInterface.tscn new file mode 100644 index 0000000..f1c0e77 --- /dev/null +++ b/TestingInterface.tscn @@ -0,0 +1,49 @@ +[gd_scene load_steps=3 format=3 uid="uid://b6v8kn5pjdd1b"] + +[ext_resource type="Script" uid="uid://demxhjphd8gkg" path="res://TestingInterface.cs" id="1_1mh2b"] +[ext_resource type="Script" uid="uid://c3juujxln4m38" path="res://Library/UI/LabelLineEdit.cs" id="2_a7i77"] + +[node name="TestingInterface" 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_1mh2b") + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="ServerUrl" type="HBoxContainer" parent="VBoxContainer"] +unique_name_in_owner = true +layout_mode = 2 +theme_override_constants/separation = 10 +script = ExtResource("2_a7i77") +Label = "Server URL:" +Spacing = 10 +metadata/_custom_type_script = "uid://c3juujxln4m38" + +[node name="Username" type="HBoxContainer" parent="VBoxContainer"] +unique_name_in_owner = true +layout_mode = 2 +theme_override_constants/separation = 14 +script = ExtResource("2_a7i77") +Label = "Username:" +Spacing = 14 +metadata/_custom_type_script = "uid://c3juujxln4m38" + +[node name="Password" type="HBoxContainer" parent="VBoxContainer"] +unique_name_in_owner = true +layout_mode = 2 +theme_override_constants/separation = 20 +script = ExtResource("2_a7i77") +Label = "Password:" +Spacing = 20 +Password = true +metadata/_custom_type_script = "uid://c3juujxln4m38"