Add Hitmarkers

This commit is contained in:
Morph01
2024-08-30 18:09:55 +02:00
parent 67f7335dba
commit 32f8f2fcde
8 changed files with 136 additions and 3 deletions

View File

@@ -35,7 +35,6 @@ 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
@@ -64,3 +63,61 @@ width = 2.0
[node name="Left" type="Line2D" parent="UserInterface/Crosshair"]
points = PackedVector2Array(15, 20, 5, 20)
width = 2.0
[node name="HitMarkers" type="HitMarkers" parent="UserInterface"]
layout_mode = 1
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 = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
[node name="TopRight" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(22.5, 17.5, 35, 5)
width = 2.0
[node name="BottomRight" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(22.5, 22.5, 35, 35)
width = 2.0
[node name="BottomLeft" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(17.5, 22.5, 5, 35)
width = 2.0
[node name="TopLeft" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(17.5, 17.5, 5, 5)
width = 2.0
[node name="TopRightHS" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(22.5, 17.5, 35, 5)
width = 2.0
default_color = Color(1, 0, 0, 1)
[node name="BottomRightHS" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(22.5, 22.5, 35, 35)
width = 2.0
default_color = Color(1, 0, 0, 1)
[node name="BottomLeftHS" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(17.5, 22.5, 5, 35)
width = 2.0
default_color = Color(1, 0, 0, 1)
[node name="TopLeftHS" type="Line2D" parent="UserInterface/HitMarkers"]
visible = false
points = PackedVector2Array(17.5, 17.5, 5, 5)
width = 2.0
default_color = Color(1, 0, 0, 1)