summaryrefslogtreecommitdiff
path: root/Reusable Scenes/number_node.tscn
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-13 14:55:31 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-13 14:55:31 +0700
commit24f5e910dd8f575adc483f768422ab51fdf905cc (patch)
tree3486579c0949ec89f3550ee94d35dc20a111ab0d /Reusable Scenes/number_node.tscn
Initial commit. Exists: NumberNode, Player, dragging and dropping, joining NumberNodes
Diffstat (limited to 'Reusable Scenes/number_node.tscn')
-rw-r--r--Reusable Scenes/number_node.tscn65
1 files changed, 65 insertions, 0 deletions
diff --git a/Reusable Scenes/number_node.tscn b/Reusable Scenes/number_node.tscn
new file mode 100644
index 0000000..7ab9497
--- /dev/null
+++ b/Reusable Scenes/number_node.tscn
@@ -0,0 +1,65 @@
+[gd_scene load_steps=5 format=3 uid="uid://ccvoi0qmvlxmj"]
+
+[ext_resource type="Script" path="res://Scripts/NumberNode.gd" id="1_7p1bu"]
+[ext_resource type="Texture2D" uid="uid://cckv0u0uvmp6p" path="res://icon.svg" id="2_d46p4"]
+[ext_resource type="Script" path="res://Scripts/NumberArea.gd" id="3_2viuw"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_ld6aj"]
+size = Vector2(66, 66)
+
+[node name="NumberNode" type="Node2D" node_paths=PackedStringArray("label", "label_modifier", "sprite", "sprite_modifier")]
+script = ExtResource("1_7p1bu")
+label = NodePath("Label")
+label_modifier = NodePath("Label2")
+sprite = NodePath("Sprite2D")
+sprite_modifier = NodePath("Sprite2D2")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+modulate = Color(0, 0, 0, 1)
+scale = Vector2(0.3, 0.3)
+texture = ExtResource("2_d46p4")
+
+[node name="Sprite2D2" type="Sprite2D" parent="."]
+modulate = Color(1, 0, 0, 1)
+position = Vector2(19, -17)
+scale = Vector2(0.26, 0.11)
+texture = ExtResource("2_d46p4")
+
+[node name="Label" type="Label" parent="."]
+anchors_preset = 8
+anchor_left = 0.5
+anchor_top = 0.5
+anchor_right = 0.5
+anchor_bottom = 0.5
+offset_left = -20.0
+offset_top = -19.0
+offset_right = 20.0
+offset_bottom = 19.0
+grow_horizontal = 2
+grow_vertical = 2
+text = "X"
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="Label2" type="Label" parent="."]
+anchors_preset = 2
+anchor_top = 1.0
+anchor_bottom = 1.0
+offset_left = 3.0
+offset_top = -24.0
+offset_right = 35.0
+offset_bottom = -10.0
+grow_vertical = 0
+theme_override_font_sizes/font_size = 10
+text = "X"
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="Area2D" type="Area2D" parent="."]
+script = ExtResource("3_2viuw")
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+shape = SubResource("RectangleShape2D_ld6aj")
+
+[connection signal="mouse_entered" from="Area2D" to="Area2D" method="_on_mouse_entered"]
+[connection signal="mouse_exited" from="Area2D" to="Area2D" method="_on_mouse_exited"]