parent
9768c389cd
commit
426646f4e0
@ -0,0 +1,8 @@ |
||||
extends CanvasLayer |
||||
|
||||
@onready var animator = $animator |
||||
@onready var title = $panel/title |
||||
|
||||
func show_message(message): |
||||
title.text = message |
||||
animator.play('splash') |
||||
@ -0,0 +1,104 @@ |
||||
[gd_scene load_steps=6 format=3 uid="uid://7flwkthps8ty"] |
||||
|
||||
[ext_resource type="Script" path="res://nodes/ui/ui.gd" id="1_1svns"] |
||||
|
||||
[sub_resource type="Animation" id="Animation_6cer2"] |
||||
resource_name = "splash" |
||||
length = 6.0 |
||||
tracks/0/type = "value" |
||||
tracks/0/imported = false |
||||
tracks/0/enabled = true |
||||
tracks/0/path = NodePath("panel:modulate") |
||||
tracks/0/interp = 1 |
||||
tracks/0/loop_wrap = true |
||||
tracks/0/keys = { |
||||
"times": PackedFloat32Array(0, 2, 4, 6), |
||||
"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)] |
||||
} |
||||
tracks/1/type = "value" |
||||
tracks/1/imported = false |
||||
tracks/1/enabled = true |
||||
tracks/1/path = NodePath("panel:visible") |
||||
tracks/1/interp = 1 |
||||
tracks/1/loop_wrap = true |
||||
tracks/1/keys = { |
||||
"times": PackedFloat32Array(0, 6), |
||||
"transitions": PackedFloat32Array(1, 1), |
||||
"update": 1, |
||||
"values": [true, false] |
||||
} |
||||
|
||||
[sub_resource type="Animation" id="Animation_4v8h2"] |
||||
length = 0.001 |
||||
tracks/0/type = "value" |
||||
tracks/0/imported = false |
||||
tracks/0/enabled = true |
||||
tracks/0/path = NodePath("panel:modulate") |
||||
tracks/0/interp = 1 |
||||
tracks/0/loop_wrap = true |
||||
tracks/0/keys = { |
||||
"times": PackedFloat32Array(0), |
||||
"transitions": PackedFloat32Array(1), |
||||
"update": 0, |
||||
"values": [Color(1, 1, 1, 1)] |
||||
} |
||||
tracks/1/type = "value" |
||||
tracks/1/imported = false |
||||
tracks/1/enabled = true |
||||
tracks/1/path = NodePath("panel:visible") |
||||
tracks/1/interp = 1 |
||||
tracks/1/loop_wrap = true |
||||
tracks/1/keys = { |
||||
"times": PackedFloat32Array(0), |
||||
"transitions": PackedFloat32Array(1), |
||||
"update": 1, |
||||
"values": [true] |
||||
} |
||||
|
||||
[sub_resource type="Animation" id="Animation_d41ii"] |
||||
resource_name = "hide" |
||||
tracks/0/type = "value" |
||||
tracks/0/imported = false |
||||
tracks/0/enabled = true |
||||
tracks/0/path = NodePath("panel:visible") |
||||
tracks/0/interp = 1 |
||||
tracks/0/loop_wrap = true |
||||
tracks/0/keys = { |
||||
"times": PackedFloat32Array(0), |
||||
"transitions": PackedFloat32Array(1), |
||||
"update": 1, |
||||
"values": [false] |
||||
} |
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_iii80"] |
||||
_data = { |
||||
"RESET": SubResource("Animation_4v8h2"), |
||||
"hide": SubResource("Animation_d41ii"), |
||||
"splash": SubResource("Animation_6cer2") |
||||
} |
||||
|
||||
[node name="ui" type="CanvasLayer"] |
||||
script = ExtResource("1_1svns") |
||||
|
||||
[node name="animator" type="AnimationPlayer" parent="."] |
||||
autoplay = "hide" |
||||
libraries = { |
||||
"": SubResource("AnimationLibrary_iii80") |
||||
} |
||||
|
||||
[node name="panel" type="Panel" parent="."] |
||||
offset_left = 64.0 |
||||
offset_top = 64.0 |
||||
offset_right = 1856.0 |
||||
offset_bottom = 264.0 |
||||
|
||||
[node name="title" type="Label" parent="panel"] |
||||
layout_mode = 0 |
||||
offset_right = 448.0 |
||||
offset_bottom = 48.0 |
||||
scale = Vector2(4, 4) |
||||
text = "Level 3 - Spider-Ant, Spider-ant ! " |
||||
horizontal_alignment = 1 |
||||
vertical_alignment = 1 |
||||
Loading…
Reference in new issue