diff options
author | altaf-creator <dev@altafcreator.com> | 2024-04-20 23:05:56 +0700 |
---|---|---|
committer | altaf-creator <dev@altafcreator.com> | 2024-04-20 23:05:56 +0700 |
commit | 89abe110f28b4750037b6706ab67fbbb0c833717 (patch) | |
tree | 0b88ec4177aab83701bfff1bd0574d5399fab99d /reusable_scenes/number_node.tscn |
Diffstat (limited to 'reusable_scenes/number_node.tscn')
-rw-r--r-- | reusable_scenes/number_node.tscn | 31 |
1 files changed, 31 insertions, 0 deletions
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 |