generated from Persson-dev/Godot-Xmake
simple dynamic crosshair
This commit is contained in:
@@ -24,3 +24,42 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
||||
|
||||
[node name="Steampunk Rifle" parent="Head/Camera" instance=ExtResource("1_i6keg")]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.998135, -0.0610485, 0, 0.0610485, 0.998135, 0.19, -0.18, -0.55)
|
||||
|
||||
[node name="UserInterface" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="Crosshair" type="Crosshair" 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="Top" type="Line2D" parent="UserInterface/Crosshair"]
|
||||
points = PackedVector2Array(0, -5, 0, -15)
|
||||
width = 2.0
|
||||
|
||||
[node name="Right" type="Line2D" parent="UserInterface/Crosshair"]
|
||||
points = PackedVector2Array(5, 0, 15, 0)
|
||||
width = 2.0
|
||||
|
||||
[node name="Bottom" type="Line2D" parent="UserInterface/Crosshair"]
|
||||
points = PackedVector2Array(0, 5, 0, 15)
|
||||
width = 2.0
|
||||
|
||||
[node name="Left" type="Line2D" parent="UserInterface/Crosshair"]
|
||||
points = PackedVector2Array(-5, 0, -15, 0)
|
||||
width = 2.0
|
||||
|
||||
Reference in New Issue
Block a user