From 89abe110f28b4750037b6706ab67fbbb0c833717 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 20 Apr 2024 23:05:56 +0700 Subject: Initial commit --- reusable_scenes/number_node.tscn | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 reusable_scenes/number_node.tscn (limited to 'reusable_scenes') diff --git a/reusable_scenes/number_node.tscn b/reusable_scenes/number_node.tscn new file mode 100644 index 0000000..1c64234 --- /dev/null +++ b/reusable_scenes/number_node.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=3 format=3 uid="uid://dfapxkgv6muc1"] + +[ext_resource type="Script" path="res://scripts/number_system/NumberNode.gd" id="1_5dnvb"] +[ext_resource type="Texture2D" uid="uid://c5agrb3i1fdt5" path="res://assets/images/circle.png" id="2_iuhlk"] + +[node name="NumberNode" type="Node2D" node_paths=PackedStringArray("sprite", "label")] +script = ExtResource("1_5dnvb") +sprite = NodePath("Sprite2D") +label = NodePath("Label") + +[node name="Sprite2D" type="Sprite2D" parent="."] +modulate = Color(0, 0, 0, 1) +scale = Vector2(0.08, 0.08) +texture = ExtResource("2_iuhlk") + +[node name="Label" type="Label" parent="."] +custom_minimum_size = Vector2(40, 30) +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -0.5 +offset_top = -11.5 +offset_right = 0.5 +offset_bottom = 11.5 +grow_horizontal = 2 +grow_vertical = 2 +text = "1" +horizontal_alignment = 1 +vertical_alignment = 1 -- cgit v1.2.3