Adds missing data
This commit is contained in:
parent
e6391d9fdd
commit
53cdcc3433
620 changed files with 47293 additions and 151 deletions
6
content/ui/Theme.tres
Normal file
6
content/ui/Theme.tres
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_resource type="Theme" load_steps=2 format=3 uid="uid://c8qurdkgcv2yy"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://dxyqmtf7gmhfk" path="res://content/IndieFlower-Regular.ttf" id="1_86qkj"]
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("1_86qkj")
|
||||
|
|
@ -1,12 +1,164 @@
|
|||
[gd_scene format=3 uid="uid://bwnlcxfwxyj7j"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://bwnlcxfwxyj7j"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://c8qurdkgcv2yy" path="res://content/ui/Theme.tres" id="1_bwxgq"]
|
||||
[ext_resource type="Script" path="res://content/ui/ui.gd" id="1_dy6lw"]
|
||||
[ext_resource type="StyleBox" uid="uid://ccaebxxslc5dc" path="res://content/levels/MainMenu_PanelBG.tres" id="4_8esrw"]
|
||||
[ext_resource type="Texture2D" uid="uid://cruj1ph2x2n2a" path="res://content/cardboard/Paper/Paper005_2K-PNG_Color.png" id="5_ttvs6"]
|
||||
[ext_resource type="Texture2D" uid="uid://djtg2ykgjylk8" path="res://content/cardboard/Paper/Paper005_2K-PNG_NormalGL.png" id="6_w7xvv"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_shi77"]
|
||||
font_size = 36
|
||||
font_color = Color(0.95, 0.95, 0.95, 1)
|
||||
outline_size = 3
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="CanvasTexture" id="CanvasTexture_333we"]
|
||||
diffuse_texture = ExtResource("5_ttvs6")
|
||||
normal_texture = ExtResource("6_w7xvv")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_c7rki"]
|
||||
texture = SubResource("CanvasTexture_333we")
|
||||
axis_stretch_horizontal = 1
|
||||
axis_stretch_vertical = 1
|
||||
modulate_color = Color(0.776128, 0.293527, 0.072986, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_vv6d4"]
|
||||
line_spacing = 0.0
|
||||
font_size = 40
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_p4q71"]
|
||||
font_size = 20
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_x56u5"]
|
||||
resource_name = "Death"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("You DIED:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(6.96439, 0.5),
|
||||
"update": 0,
|
||||
"values": [Vector2(729, -98), Vector2(729, 291)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_25rtn"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("VBoxContainer:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(690, 476)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("VBoxContainer:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("PanelContainer:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(-467, 118)]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("You DIED:position")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(769, -92)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_cfn84"]
|
||||
resource_name = "SecretDiscovery"
|
||||
length = 5.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("PanelContainer:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.6, 4.3, 5),
|
||||
"transitions": PackedFloat32Array(2, 1, 2.21914, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(-463, 101), Vector2(0, 101), Vector2(0, 101), Vector2(-463, 101)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_j0xea"]
|
||||
resource_name = "SuccessAnimation"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("VBoxContainer:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1.51572),
|
||||
"update": 0,
|
||||
"values": [Vector2(729, 300), Vector2(729, 442)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("VBoxContainer:modulate")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1.51572),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fu14e"]
|
||||
_data = {
|
||||
"Death": SubResource("Animation_x56u5"),
|
||||
"RESET": SubResource("Animation_25rtn"),
|
||||
"SecretDiscovery": SubResource("Animation_cfn84"),
|
||||
"SuccessAnimation": SubResource("Animation_j0xea")
|
||||
}
|
||||
|
||||
[node name="Ui" type="Control"]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_bwxgq")
|
||||
script = ExtResource("1_dy6lw")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
@ -15,9 +167,123 @@ anchor_left = 0.5
|
|||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -4.5
|
||||
offset_top = -4.5
|
||||
offset_right = 4.5
|
||||
offset_bottom = 4.5
|
||||
offset_left = -1.0
|
||||
offset_top = -1.0
|
||||
offset_right = 1.0
|
||||
offset_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
z_index = 1000
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
offset_left = -467.0
|
||||
offset_top = 118.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = 205.0
|
||||
theme_override_styles/panel = ExtResource("4_8esrw")
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
text = "Secret Discovered"
|
||||
label_settings = SubResource("LabelSettings_shi77")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="You DIED" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -191.0
|
||||
offset_top = -92.0
|
||||
offset_right = 272.0
|
||||
offset_bottom = -5.0
|
||||
grow_horizontal = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_c7rki")
|
||||
|
||||
[node name="Label" type="Label" parent="You DIED"]
|
||||
layout_mode = 2
|
||||
text = "YOu Died"
|
||||
label_settings = SubResource("LabelSettings_shi77")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="Control" parent="."]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -270.0
|
||||
offset_top = -64.0
|
||||
offset_right = 329.0
|
||||
offset_bottom = 208.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -63.5
|
||||
offset_right = 63.5
|
||||
offset_bottom = 36.0
|
||||
grow_horizontal = 2
|
||||
rotation = 0.00546251
|
||||
theme_override_styles/normal = ExtResource("4_8esrw")
|
||||
text = " Escaped "
|
||||
label_settings = SubResource("LabelSettings_vv6d4")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -46.0
|
||||
offset_bottom = 83.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = -0.0178222
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_styles/normal = ExtResource("4_8esrw")
|
||||
text = "You finally escaped...
|
||||
But what happend? You haven't found a clue for what happend.
|
||||
What were those things and why is everything out of Cardboard?
|
||||
But maybe the outside world has infos for you..."
|
||||
label_settings = SubResource("LabelSettings_p4q71")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -42.0
|
||||
offset_top = -31.0
|
||||
offset_right = 43.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
text = "Return"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_fu14e")
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_button_pressed"]
|
||||
|
|
|
|||
21
content/ui/ui.gd
Normal file
21
content/ui/ui.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
extends Control
|
||||
|
||||
class_name UI
|
||||
|
||||
@onready var FadeRect: ColorRect = $Fade
|
||||
@onready var animationPlayer: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func setFade(target: float) -> void:
|
||||
create_tween().bind_node(self).tween_property(FadeRect, 'color', Color(0,0,0, target), 1.0).set_trans(Tween.TRANS_EXPO)
|
||||
|
||||
func displayComplete() -> void:
|
||||
animationPlayer.play('SuccessAnimation')
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://content/levels/MainMenu.tscn")
|
||||
|
||||
func displaySecret() -> void:
|
||||
animationPlayer.play('SecretDiscovery')
|
||||
|
||||
func displayYouDied() -> void:
|
||||
animationPlayer.play('Death')
|
||||
Loading…
Add table
Add a link
Reference in a new issue