Crosshair really in the center (it was in the top left center of the 40x40 centered rect)

This commit is contained in:
Morph01
2024-08-30 16:18:16 +02:00
parent 791cea356d
commit 67f7335dba
2 changed files with 6 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ grow_vertical = 2
mouse_filter = 1
[node name="Crosshair" type="Crosshair" parent="UserInterface"]
layout_direction = 1
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
@@ -49,17 +50,17 @@ grow_horizontal = 2
grow_vertical = 2
[node name="Top" type="Line2D" parent="UserInterface/Crosshair"]
points = PackedVector2Array(0, -5, 0, -15)
points = PackedVector2Array(20, 15, 20, 5)
width = 2.0
[node name="Right" type="Line2D" parent="UserInterface/Crosshair"]
points = PackedVector2Array(5, 0, 15, 0)
points = PackedVector2Array(25, 20, 35, 20)
width = 2.0
[node name="Bottom" type="Line2D" parent="UserInterface/Crosshair"]
points = PackedVector2Array(0, 5, 0, 15)
points = PackedVector2Array(20, 25, 20, 35)
width = 2.0
[node name="Left" type="Line2D" parent="UserInterface/Crosshair"]
points = PackedVector2Array(-5, 0, -15, 0)
points = PackedVector2Array(15, 20, 5, 20)
width = 2.0