godot-shooter / files / scenes / HUD.tscn
HUD.tscn
ddae17d7 2023-11-08 Pavel Safronov | 1 | [gd_scene load_steps=5 format=2] |
5b18ed86 2023-11-01 Pavel Safronov | 2 | |
16938031 2023-11-17 Pavel Safronov | 3 | [ext_resource path="res://themes/Theme.tres" type="Theme" id=1] |
| 4 | [ext_resource path="res://scenes/HUD.gd" type="Script" id=2] | |
5b18ed86 2023-11-01 Pavel Safronov | 5 | |
ddae17d7 2023-11-08 Pavel Safronov | 6 | [sub_resource type="Animation" id=2] |
| 7 | resource_name = "message fade in" | |
| 8 | tracks/0/type = "value" | |
fa5168b2 2023-11-08 Pavel Safronov | 9 | tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate") |
ddae17d7 2023-11-08 Pavel Safronov | 10 | tracks/0/interp = 1 |
| 11 | tracks/0/loop_wrap = true | |
| 12 | tracks/0/imported = false | |
| 13 | tracks/0/enabled = true | |
| 14 | tracks/0/keys = { | |
44475e04 2023-11-08 Pavel Safronov | 15 | "times": PoolRealArray( 0, 1 ), |
ddae17d7 2023-11-08 Pavel Safronov | 16 | "transitions": PoolRealArray( 1, 5.65685 ), |
| 17 | "update": 0, | |
| 18 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ] | |
| 19 | } | |
44475e04 2023-11-08 Pavel Safronov | 20 | tracks/1/type = "value" |
fa5168b2 2023-11-08 Pavel Safronov | 21 | tracks/1/path = NodePath("CanvasLayer/MessageLabel:text") |
44475e04 2023-11-08 Pavel Safronov | 22 | tracks/1/interp = 1 |
| 23 | tracks/1/loop_wrap = true | |
| 24 | tracks/1/imported = false | |
| 25 | tracks/1/enabled = true | |
| 26 | tracks/1/keys = { | |
| 27 | "times": PoolRealArray( 0 ), | |
| 28 | "transitions": PoolRealArray( 1 ), | |
| 29 | "update": 1, | |
| 30 | "values": [ "Tap to move???" ] | |
| 31 | } | |
ddae17d7 2023-11-08 Pavel Safronov | 32 | |
d5d1043b 2023-11-02 Pavel Safronov | 33 | [sub_resource type="Animation" id=1] |
ddae17d7 2023-11-08 Pavel Safronov | 34 | resource_name = "message fade out" |
44475e04 2023-11-08 Pavel Safronov | 35 | length = 2.0 |
610a86be 2023-11-06 Pavel Safronov | 36 | tracks/0/type = "value" |
fa5168b2 2023-11-08 Pavel Safronov | 37 | tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate") |
d5d1043b 2023-11-02 Pavel Safronov | 38 | tracks/0/interp = 1 |
| 39 | tracks/0/loop_wrap = true | |
| 40 | tracks/0/imported = false | |
| 41 | tracks/0/enabled = true | |
| 42 | tracks/0/keys = { | |
44475e04 2023-11-08 Pavel Safronov | 43 | "times": PoolRealArray( 0, 2 ), |
ddae17d7 2023-11-08 Pavel Safronov | 44 | "transitions": PoolRealArray( 1, 5.65685 ), |
610a86be 2023-11-06 Pavel Safronov | 45 | "update": 0, |
| 46 | "values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] | |
d5d1043b 2023-11-02 Pavel Safronov | 47 | } |
5b18ed86 2023-11-01 Pavel Safronov | 48 | |
| 49 | [node name="HUD" type="Control"] | |
| 50 | anchor_right = 1.0 | |
| 51 | anchor_bottom = 1.0 | |
fa5168b2 2023-11-08 Pavel Safronov | 52 | margin_left = 10.0 |
| 53 | margin_top = 10.0 | |
| 54 | margin_right = -10.0 | |
| 55 | margin_bottom = -10.0 | |
d5d1043b 2023-11-02 Pavel Safronov | 56 | theme = ExtResource( 1 ) |
5b18ed86 2023-11-01 Pavel Safronov | 57 | script = ExtResource( 2 ) |
| 58 | ||
c2827327 2023-11-10 Pavel Safronov | 59 | [node name="MarginContainer2" type="MarginContainer" parent="."] |
| 60 | anchor_right = 1.0 | |
| 61 | ||
| 62 | [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer2"] | |
| 63 | margin_right = 480.0 | |
| 64 | margin_bottom = 37.0 | |
8c2ffd3f 2023-11-02 Pavel Safronov | 65 | |
c2827327 2023-11-10 Pavel Safronov | 66 | [node name="ScoreText" type="Label" parent="MarginContainer2/HBoxContainer"] |
a97a1ce9 2023-11-10 Pavel Safronov | 67 | margin_right = 128.0 |
c2827327 2023-11-10 Pavel Safronov | 68 | margin_bottom = 37.0 |
5b18ed86 2023-11-01 Pavel Safronov | 69 | text = "Score: " |
| 70 | ||
c2827327 2023-11-10 Pavel Safronov | 71 | [node name="Score" type="Label" parent="MarginContainer2/HBoxContainer"] |
a97a1ce9 2023-11-10 Pavel Safronov | 72 | margin_left = 136.0 |
| 73 | margin_right = 198.0 | |
c2827327 2023-11-10 Pavel Safronov | 74 | margin_bottom = 37.0 |
5b18ed86 2023-11-01 Pavel Safronov | 75 | text = "100" |
| 76 | uppercase = true | |
d5d1043b 2023-11-02 Pavel Safronov | 77 | |
c2827327 2023-11-10 Pavel Safronov | 78 | [node name="Weapon" type="Label" parent="MarginContainer2/HBoxContainer"] |
| 79 | margin_left = 312.0 | |
| 80 | margin_right = 427.0 | |
| 81 | margin_bottom = 37.0 | |
| 82 | size_flags_horizontal = 10 | |
| 83 | size_flags_vertical = 1 | |
| 84 | text = "Laser:" | |
| 85 | align = 2 | |
| 86 | valign = 2 | |
| 87 | ||
| 88 | [node name="Ammo" type="Label" parent="MarginContainer2/HBoxContainer"] | |
| 89 | margin_left = 435.0 | |
| 90 | margin_right = 480.0 | |
| 91 | margin_bottom = 37.0 | |
| 92 | text = "inf" | |
| 93 | ||
fa5168b2 2023-11-08 Pavel Safronov | 94 | [node name="MarginContainer" type="MarginContainer" parent="."] |
| 95 | anchor_top = 1.0 | |
| 96 | anchor_right = 1.0 | |
| 97 | anchor_bottom = 1.0 | |
| 98 | margin_top = -74.0 | |
| 99 | ||
| 100 | [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer"] | |
| 101 | margin_right = 480.0 | |
| 102 | margin_bottom = 74.0 | |
| 103 | ||
0005bbcc 2023-11-10 Pavel Safronov | 104 | [node name="PauseButton" type="Button" parent="MarginContainer/HBoxContainer2"] |
a97a1ce9 2023-11-10 Pavel Safronov | 105 | margin_right = 42.0 |
0005bbcc 2023-11-10 Pavel Safronov | 106 | margin_bottom = 74.0 |
cac0fb4f 2023-11-11 Pavel Safronov | 107 | mouse_default_cursor_shape = 2 |
0005bbcc 2023-11-10 Pavel Safronov | 108 | text = "=" |
fa5168b2 2023-11-08 Pavel Safronov | 109 | |
| 110 | [node name="Objective" type="Label" parent="MarginContainer/HBoxContainer2"] | |
180b363c 2023-11-14 Pavel Safronov | 111 | margin_left = 410.0 |
fa5168b2 2023-11-08 Pavel Safronov | 112 | margin_right = 480.0 |
| 113 | margin_bottom = 74.0 | |
| 114 | size_flags_horizontal = 10 | |
| 115 | size_flags_vertical = 1 | |
180b363c 2023-11-14 Pavel Safronov | 116 | text = "0/5" |
fa5168b2 2023-11-08 Pavel Safronov | 117 | align = 2 |
| 118 | valign = 2 | |
| 119 | ||
ddae17d7 2023-11-08 Pavel Safronov | 120 | [node name="CanvasLayer" type="CanvasLayer" parent="."] |
d5d1043b 2023-11-02 Pavel Safronov | 121 | |
fa5168b2 2023-11-08 Pavel Safronov | 122 | [node name="MessageLabel" type="Label" parent="CanvasLayer"] |
44475e04 2023-11-08 Pavel Safronov | 123 | modulate = Color( 1, 1, 1, 0 ) |
ddae17d7 2023-11-08 Pavel Safronov | 124 | anchor_left = 0.1 |
| 125 | anchor_top = 0.6 | |
| 126 | anchor_right = 0.8 | |
| 127 | anchor_bottom = 0.8 | |
| 128 | margin_right = 40.0 | |
| 129 | margin_bottom = 14.0 | |
d5d1043b 2023-11-02 Pavel Safronov | 130 | theme = ExtResource( 1 ) |
44475e04 2023-11-08 Pavel Safronov | 131 | text = "Tap to move???" |
d5d1043b 2023-11-02 Pavel Safronov | 132 | align = 1 |
| 133 | valign = 1 | |
ddae17d7 2023-11-08 Pavel Safronov | 134 | autowrap = true |
d5d1043b 2023-11-02 Pavel Safronov | 135 | |
| 136 | [node name="AnimationPlayer" type="AnimationPlayer" parent="."] | |
ddae17d7 2023-11-08 Pavel Safronov | 137 | "anims/message fade in" = SubResource( 2 ) |
| 138 | "anims/message fade out" = SubResource( 1 ) | |
0005bbcc 2023-11-10 Pavel Safronov | 139 | |
| 140 | [connection signal="pressed" from="MarginContainer/HBoxContainer2/PauseButton" to="." method="_on_PauseButton_pressed"] |