diff options
Diffstat (limited to 'scenes/interface.tscn')
-rw-r--r-- | scenes/interface.tscn | 153 |
1 files changed, 143 insertions, 10 deletions
diff --git a/scenes/interface.tscn b/scenes/interface.tscn index e36bd9b..169d551 100644 --- a/scenes/interface.tscn +++ b/scenes/interface.tscn @@ -1,8 +1,112 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=7 format=2] -[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=1] +[ext_resource path="res://scenes/pausemenu.tscn" type="PackedScene" id=1] [ext_resource path="res://textures/hourglass.png" type="Texture" id=2] [ext_resource path="res://scripts/interface.gd" type="Script" id=3] +[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=4] + +[sub_resource type="Animation" id=1] +length = 0.001 +tracks/0/type = "value" +tracks/0/path = NodePath(".:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ false ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("../ChangeLabel:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ false ] +} +tracks/2/type = "value" +tracks/2/path = NodePath("../ChangeLabel:modulate") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ) ] +} +tracks/3/type = "value" +tracks/3/path = NodePath(".:modulate") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ) ] +} + +[sub_resource type="Animation" id=2] +resource_name = "blinking" +length = 4.0 +tracks/0/type = "value" +tracks/0/path = NodePath(".:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/keys = { +"times": PoolRealArray( 0, 3 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 1, +"values": [ true, false ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("../ChangeLabel:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0, 3 ), +"transitions": PoolRealArray( 1, 1 ), +"update": 1, +"values": [ true, false ] +} +tracks/2/type = "value" +tracks/2/path = NodePath("../ChangeLabel:modulate") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/keys = { +"times": PoolRealArray( 0, 0.5, 1, 1.5, 2, 2.5, 3 ), +"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} +tracks/3/type = "value" +tracks/3/path = NodePath(".:modulate") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/keys = { +"times": PoolRealArray( 0, 0.5, 2.5, 3 ), +"transitions": PoolRealArray( 1, 1, 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} [node name="Interface" type="CanvasLayer"] script = ExtResource( 3 ) @@ -18,7 +122,7 @@ margin_top = 104.0 margin_right = 216.0 margin_bottom = 116.0 rect_scale = Vector2( 0.8, 0.8 ) -theme = ExtResource( 1 ) +theme = ExtResource( 4 ) text = "000" align = 2 @@ -27,20 +131,45 @@ margin_top = -2.0 margin_right = 48.0 margin_bottom = 14.0 rect_scale = Vector2( 0.8, 0.8 ) -theme = ExtResource( 1 ) +theme = ExtResource( 4 ) text = "Score:" [node name="Timer" type="Timer" parent="."] -[node name="Control" type="Control" parent="."] +[node name="LoseLabel" type="Label" parent="."] visible = false - -[node name="Label" type="Label" parent="Control"] margin_top = 40.0 margin_right = 214.0 margin_bottom = 80.0 -text = "YOU LOSE. YOU WIN NOTHING. -GOOD DAY SIR!" +theme = ExtResource( 4 ) +text = "YOU RAN OUT OF TIME! +RESTART?" +align = 1 + +[node name="Difficulty" type="Control" parent="."] +margin_top = 40.0 +margin_right = 40.0 +margin_bottom = 80.0 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="Difficulty"] +root_node = NodePath("../MessageLabel") +anims/RESET = SubResource( 1 ) +anims/blinking = SubResource( 2 ) + +[node name="MessageLabel" type="Label" parent="Difficulty"] +visible = false +margin_right = 214.0 +theme = ExtResource( 4 ) +text = "DIFFICULT PHASE CHANGED:" +align = 1 + +[node name="ChangeLabel" type="Label" parent="Difficulty"] +visible = false +margin_top = 14.0 +margin_right = 214.0 +margin_bottom = 30.0 +custom_colors/font_color_shadow = Color( 0.788235, 0.0823529, 0.0823529, 1 ) +text = "TEST" align = 1 [node name="PhaseLabel" type="Label" parent="."] @@ -48,7 +177,11 @@ margin_top = 112.0 margin_right = 88.0 margin_bottom = 128.0 rect_scale = Vector2( 0.5, 0.5 ) -theme = ExtResource( 1 ) +theme = ExtResource( 4 ) text = "Next Phase: " +[node name="PauseMenu" parent="." instance=ExtResource( 1 )] +pause_mode = 2 +visible = false + [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] |