Added a crosshair.

pull/50/head
unfa 2021-05-14 23:52:36 +02:00
parent 404d48807c
commit 4406c2e0d4
1 changed files with 125 additions and 0 deletions

View File

@ -82,6 +82,131 @@ surface_material_override/5 = ExtResource( 2 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
script = ExtResource( 1 )
[node name="HUD" type="CanvasLayer" parent="Player"]
script = null
[node name="Crosshair" type="Control" parent="Player/HUD"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
rect_pivot_offset = Vector2( 25, 25 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Main" type="Control" parent="Player/HUD/Crosshair"]
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="Player/HUD/Crosshair/Main"]
offset_left = -30.0
offset_top = -2.0
offset_right = -10.0
offset_bottom = 2.0
rect_pivot_offset = Vector2( 30, 2 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect2" type="ColorRect" parent="Player/HUD/Crosshair/Main"]
offset_left = -30.0
offset_top = -2.0
offset_right = -10.0
offset_bottom = 2.0
rect_rotation = 1.5708
rect_rotation_degrees = 90.0
rect_pivot_offset = Vector2( 30, 2 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect4" type="ColorRect" parent="Player/HUD/Crosshair/Main"]
offset_left = -30.0
offset_top = -2.0
offset_right = -10.0
offset_bottom = 2.0
rect_rotation = 3.14159
rect_rotation_degrees = 180.0
rect_pivot_offset = Vector2( 30, 2 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect3" type="ColorRect" parent="Player/HUD/Crosshair/Main"]
offset_left = -30.0
offset_top = -2.0
offset_right = -10.0
offset_bottom = 2.0
rect_rotation = -1.5708
rect_rotation_degrees = -90.0
rect_pivot_offset = Vector2( 30, 2 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hit" type="Control" parent="Player/HUD/Crosshair"]
visible = false
rect_rotation = 0.785398
rect_rotation_degrees = 45.0
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="Player/HUD/Crosshair/Hit"]
offset_left = -30.0
offset_top = -1.0
offset_right = -10.0
rect_pivot_offset = Vector2( 30, 1 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect2" type="ColorRect" parent="Player/HUD/Crosshair/Hit"]
offset_left = -30.0
offset_top = -1.0
offset_right = -10.0
rect_rotation = 1.5708
rect_rotation_degrees = 90.0
rect_pivot_offset = Vector2( 30, 1 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect4" type="ColorRect" parent="Player/HUD/Crosshair/Hit"]
offset_left = -30.0
offset_top = -1.0
offset_right = -10.0
rect_rotation = 3.14159
rect_rotation_degrees = 180.0
rect_pivot_offset = Vector2( 30, 1 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect3" type="ColorRect" parent="Player/HUD/Crosshair/Hit"]
offset_left = -30.0
offset_top = -1.0
offset_right = -10.0
rect_rotation = -1.5708
rect_rotation_degrees = -90.0
rect_pivot_offset = Vector2( 30, 1 )
script = null
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Head" type="Node3D" parent="Player"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
script = null