diff --git a/growth/hand.tscn b/growth/hand.tscn new file mode 100644 index 0000000..0eae93d --- /dev/null +++ b/growth/hand.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=2 format=3 uid="uid://co8jnr2dew5ts"] + +[ext_resource type="Script" uid="uid://bykc0ufv25ij5" path="res://hand.gd" id="1_u4p2i"] + +[node name="Hand" type="Panel"] +offset_right = 40.0 +offset_bottom = 40.0 +script = ExtResource("1_u4p2i") +player = NodePath("../../Player") +world = NodePath("../..") + +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"] +layout_mode = 2 diff --git a/growth/level.tscn b/growth/level.tscn index dfa4122..5542484 100644 --- a/growth/level.tscn +++ b/growth/level.tscn @@ -2,7 +2,7 @@ [ext_resource type="PackedScene" uid="uid://dhhnr3xkxbxlu" path="res://player.tscn" id="1_vonw3"] [ext_resource type="PackedScene" uid="uid://bsv3h2lpv7h77" path="res://virus.tscn" id="2_oi3di"] -[ext_resource type="Script" uid="uid://bykc0ufv25ij5" path="res://hand.gd" id="3_oi3di"] +[ext_resource type="PackedScene" uid="uid://co8jnr2dew5ts" path="res://hand.tscn" id="3_oi3di"] [node name="Level" type="Node2D"] @@ -15,17 +15,4 @@ position = Vector2(969, 289) [node name="CanvasLayer" type="CanvasLayer" parent="."] -[node name="Hand" type="Panel" parent="CanvasLayer"] -offset_right = 40.0 -offset_bottom = 40.0 -script = ExtResource("3_oi3di") -player = NodePath("../../Player") -world = NodePath("../..") - -[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Hand"] -layout_mode = 0 -offset_right = 40.0 -offset_bottom = 40.0 - -[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Hand/MarginContainer"] -layout_mode = 2 +[node name="Hand" parent="CanvasLayer" instance=ExtResource("3_oi3di")]