From b62987f03496244f5e3e9661e26da4e2837c152b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Apr 2024 03:14:11 +0200 Subject: [PATCH] Make `Main` a regular `Node` --- main.gd | 2 +- main.tscn | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/main.gd b/main.gd index 897a283..dd20c28 100644 --- a/main.gd +++ b/main.gd @@ -1,2 +1,2 @@ -extends Control +extends Node class_name Main diff --git a/main.tscn b/main.tscn index 68a4c67..cbf5e1d 100644 --- a/main.tscn +++ b/main.tscn @@ -1,9 +1,6 @@ -[gd_scene format=3 uid="uid://b38wkla8e7rmo"] +[gd_scene load_steps=2 format=3 uid="uid://b38wkla8e7rmo"] -[node name="Main" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 +[ext_resource type="Script" path="res://main.gd" id="1_jyg3q"] + +[node name="Main" type="Node"] +script = ExtResource("1_jyg3q")