summaryrefslogtreecommitdiff
path: root/scenes/interface.tscn
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2023-04-30 18:51:05 -0600
committerLogan <logan@cflip.net>2023-04-30 18:51:05 -0600
commitf4381c59c1d239400fbd787fe3a5247f0c535460 (patch)
tree8dfc62aaf276e7f8438e96fec4467bcde917d286 /scenes/interface.tscn
parentf30fbd753b23be1f71b4bada5e7063ac00215c33 (diff)
Move to Godot 4 and fixes
Diffstat (limited to 'scenes/interface.tscn')
-rw-r--r--scenes/interface.tscn206
1 files changed, 106 insertions, 100 deletions
diff --git a/scenes/interface.tscn b/scenes/interface.tscn
index 23aeb44..ed21f96 100644
--- a/scenes/interface.tscn
+++ b/scenes/interface.tscn
@@ -1,219 +1,225 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=8 format=3 uid="uid://cixqgc85i5wnn"]
-[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]
+[ext_resource type="PackedScene" uid="uid://dgeurb05rmq88" path="res://scenes/pausemenu.tscn" id="1"]
+[ext_resource type="Texture2D" uid="uid://c5w410bewcnh5" path="res://textures/hourglass.png" id="2"]
+[ext_resource type="Script" path="res://scripts/interface.gd" id="3"]
+[ext_resource type="Theme" uid="uid://2jc1rrh032m0" path="res://theme_data/interface_theme.tres" id="4"]
-[sub_resource type="Animation" id=1]
+[sub_resource type="Animation" id="1"]
length = 0.001
tracks/0/type = "value"
+tracks/0/imported = false
+tracks/0/enabled = true
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 ),
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
"update": 0,
-"values": [ false ]
+"values": [false]
}
tracks/1/type = "value"
+tracks/1/imported = false
+tracks/1/enabled = true
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 ),
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
"update": 0,
-"values": [ false ]
+"values": [false]
}
tracks/2/type = "value"
+tracks/2/imported = false
+tracks/2/enabled = true
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 ),
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
"update": 0,
-"values": [ Color( 1, 1, 1, 1 ) ]
+"values": [Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
+tracks/3/imported = false
+tracks/3/enabled = true
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 ),
+"times": PackedFloat32Array(0),
+"transitions": PackedFloat32Array(1),
"update": 0,
-"values": [ Color( 1, 1, 1, 1 ) ]
+"values": [Color(1, 1, 1, 1)]
}
-[sub_resource type="Animation" id=2]
+[sub_resource type="Animation" id="2"]
resource_name = "blinking"
length = 4.0
tracks/0/type = "value"
+tracks/0/imported = false
+tracks/0/enabled = true
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 ),
+"times": PackedFloat32Array(0, 3),
+"transitions": PackedFloat32Array(1, 1),
"update": 1,
-"values": [ true, false ]
+"values": [true, false]
}
tracks/1/type = "value"
+tracks/1/imported = false
+tracks/1/enabled = true
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 ),
+"times": PackedFloat32Array(0, 3),
+"transitions": PackedFloat32Array(1, 1),
"update": 1,
-"values": [ true, false ]
+"values": [true, false]
}
tracks/2/type = "value"
+tracks/2/imported = false
+tracks/2/enabled = true
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 ),
+"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3),
+"transitions": PackedFloat32Array(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 ) ]
+"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/imported = false
+tracks/3/enabled = true
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 ),
+"times": PackedFloat32Array(0, 0.5, 2.5, 3),
+"transitions": PackedFloat32Array(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 ) ]
+"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
+}
+
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_fobnn"]
+_data = {
+"RESET": SubResource("1"),
+"blinking": SubResource("2")
}
[node name="Interface" type="CanvasLayer"]
-script = ExtResource( 3 )
+script = ExtResource("3")
[node name="TimerLabel" type="Label" parent="."]
+anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
-margin_left = -22.0
-margin_top = -15.0
-margin_right = 2.00002
-margin_bottom = 1.00001
-rect_scale = Vector2( 0.8, 0.8 )
-theme = ExtResource( 4 )
+offset_left = -22.0
+offset_top = -15.0
+offset_right = 2.00002
+offset_bottom = 1.00001
+scale = Vector2(0.8, 0.8)
+theme = ExtResource("4")
text = "000"
-align = 2
-__meta__ = {
-"_edit_use_anchors_": true
-}
-[node name="Sprite" type="Sprite" parent="TimerLabel"]
-position = Vector2( -4.99998, 8.75 )
-texture = ExtResource( 2 )
+[node name="Sprite2D" type="Sprite2D" parent="TimerLabel"]
+position = Vector2(-4.99998, 8.75)
+texture = ExtResource("2")
[node name="ScoreLabel" type="Label" parent="."]
-margin_top = -2.0
-margin_right = 48.0
-margin_bottom = 14.0
-rect_scale = Vector2( 0.8, 0.8 )
-theme = ExtResource( 4 )
+offset_top = -2.0
+offset_right = 48.0
+offset_bottom = 14.0
+scale = Vector2(0.8, 0.8)
+theme = ExtResource("4")
text = "Score:"
[node name="Timer" type="Timer" parent="."]
[node name="LoseLabel" type="Label" parent="."]
visible = false
+anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
-margin_left = -107.0
-margin_top = -20.0
-margin_right = 107.0
-margin_bottom = 20.0
-theme = ExtResource( 4 )
+offset_left = -107.0
+offset_top = -20.0
+offset_right = 107.0
+offset_bottom = 20.0
+theme = ExtResource("4")
text = "YOU RAN OUT OF TIME!
RESTART?"
-align = 1
+horizontal_alignment = 1
[node name="Difficulty" type="Control" parent="."]
+layout_mode = 3
+anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
-margin_left = -20.0
-margin_top = -20.0
-margin_right = 20.0
-margin_bottom = 20.0
+offset_left = -20.0
+offset_top = -20.0
+offset_right = 20.0
+offset_bottom = 20.0
+grow_horizontal = 2
+grow_vertical = 2
mouse_filter = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="Difficulty"]
root_node = NodePath("../MessageLabel")
-anims/RESET = SubResource( 1 )
-anims/blinking = SubResource( 2 )
+libraries = {
+"": SubResource("AnimationLibrary_fobnn")
+}
[node name="MessageLabel" type="Label" parent="Difficulty"]
visible = false
+layout_mode = 0
anchor_left = 0.5
anchor_right = 0.5
-margin_left = -107.0
-margin_right = 107.0
-margin_bottom = 16.0
-theme = ExtResource( 4 )
+offset_left = -107.0
+offset_right = 107.0
+offset_bottom = 16.0
+theme = ExtResource("4")
text = "DIFFICULT PHASE CHANGED:"
-align = 1
+horizontal_alignment = 1
[node name="ChangeLabel" type="Label" parent="Difficulty"]
visible = false
+layout_mode = 0
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
-margin_left = -107.0
-margin_top = -28.0
-margin_right = 107.0
-margin_bottom = -12.0
-custom_colors/font_color_shadow = Color( 0.788235, 0.0823529, 0.0823529, 1 )
+offset_left = -107.0
+offset_top = -28.0
+offset_right = 107.0
+offset_bottom = -12.0
text = "TEST"
-align = 1
+horizontal_alignment = 1
[node name="PhaseLabel" type="Label" parent="."]
+anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
-margin_top = -8.0
-margin_right = 88.0
-margin_bottom = 8.0
-rect_scale = Vector2( 0.5, 0.5 )
-theme = ExtResource( 4 )
+offset_top = -8.0
+offset_right = 88.0
+offset_bottom = 8.0
+scale = Vector2(0.5, 0.5)
+theme = ExtResource("4")
text = "Next Phase: "
-[node name="PauseMenu" parent="." instance=ExtResource( 1 )]
-pause_mode = 2
+[node name="PauseMenu" parent="." instance=ExtResource("1")]
visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_right = 0.0
-margin_bottom = 0.0
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]