godot-shooter / asteroids / files / scenes / HUD.tscn
Branch asteroids · default branch · all branches
HUD.tscn
| 1 | [gd_scene load_steps=5 format=2] |
| 2 | |
| 3 | [ext_resource path="res://themes/Theme.tres" type="Theme" id=1] |
| 4 | [ext_resource path="res://scenes/HUD.gd" type="Script" id=2] |
| 5 | |
| 6 | [sub_resource type="Animation" id=2] |
| 7 | resource_name = "message fade in" |
| 8 | tracks/0/type = "value" |
| 9 | tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate") |
| 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 = { |
| 15 | "times": PoolRealArray( 0, 1 ), |
| 16 | "transitions": PoolRealArray( 1, 5.65685 ), |
| 17 | "update": 0, |
| 18 | "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ] |
| 19 | } |
| 20 | tracks/1/type = "value" |
| 21 | tracks/1/path = NodePath("CanvasLayer/MessageLabel:text") |
| 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 | } |
| 32 | |
| 33 | [sub_resource type="Animation" id=1] |
| 34 | resource_name = "message fade out" |
| 35 | length = 2.0 |
| 36 | tracks/0/type = "value" |
| 37 | tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate") |
| 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 = { |
| 43 | "times": PoolRealArray( 0, 2 ), |
| 44 | "transitions": PoolRealArray( 1, 5.65685 ), |
| 45 | "update": 0, |
| 46 | "values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] |
| 47 | } |
| 48 | |
| 49 | [node name="HUD" type="Control"] |
| 50 | anchor_right = 1.0 |
| 51 | anchor_bottom = 1.0 |
| 52 | margin_left = 10.0 |
| 53 | margin_top = 10.0 |
| 54 | margin_right = -10.0 |
| 55 | margin_bottom = -10.0 |
| 56 | theme = ExtResource( 1 ) |
| 57 | script = ExtResource( 2 ) |
| 58 | |
| 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 |
| 65 | |
| 66 | [node name="ScoreText" type="Label" parent="MarginContainer2/HBoxContainer"] |
| 67 | margin_right = 128.0 |
| 68 | margin_bottom = 37.0 |
| 69 | text = "Score: " |
| 70 | |
| 71 | [node name="Score" type="Label" parent="MarginContainer2/HBoxContainer"] |
| 72 | margin_left = 136.0 |
| 73 | margin_right = 198.0 |
| 74 | margin_bottom = 37.0 |
| 75 | text = "100" |
| 76 | uppercase = true |
| 77 | |
| 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 | |
| 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 = -50.0 |
| 99 | |
| 100 | [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer"] |
| 101 | margin_right = 480.0 |
| 102 | margin_bottom = 50.0 |
| 103 | |
| 104 | [node name="PauseButton" type="Button" parent="MarginContainer/HBoxContainer2"] |
| 105 | margin_right = 42.0 |
| 106 | margin_bottom = 50.0 |
| 107 | mouse_default_cursor_shape = 2 |
| 108 | text = "=" |
| 109 | icon_align = 1 |
| 110 | |
| 111 | [node name="Objective" type="Label" parent="MarginContainer/HBoxContainer2"] |
| 112 | margin_left = 410.0 |
| 113 | margin_right = 480.0 |
| 114 | margin_bottom = 50.0 |
| 115 | size_flags_horizontal = 10 |
| 116 | size_flags_vertical = 1 |
| 117 | text = "0/5" |
| 118 | align = 2 |
| 119 | valign = 2 |
| 120 | |
| 121 | [node name="CanvasLayer" type="CanvasLayer" parent="."] |
| 122 | |
| 123 | [node name="MessageLabel" type="Label" parent="CanvasLayer"] |
| 124 | modulate = Color( 1, 1, 1, 0 ) |
| 125 | anchor_left = 0.1 |
| 126 | anchor_top = 0.6 |
| 127 | anchor_right = 0.8 |
| 128 | anchor_bottom = 0.8 |
| 129 | margin_right = 40.0 |
| 130 | margin_bottom = 14.0 |
| 131 | theme = ExtResource( 1 ) |
| 132 | text = "Tap to move???" |
| 133 | align = 1 |
| 134 | valign = 1 |
| 135 | autowrap = true |
| 136 | |
| 137 | [node name="AnimationPlayer" type="AnimationPlayer" parent="."] |
| 138 | "anims/message fade in" = SubResource( 2 ) |
| 139 | "anims/message fade out" = SubResource( 1 ) |
| 140 | |
| 141 | [connection signal="pressed" from="MarginContainer/HBoxContainer2/PauseButton" to="." method="_on_PauseButton_pressed"] |