93 lines
2.3 KiB
Text
93 lines
2.3 KiB
Text
|
[gd_scene load_steps=6 format=3 uid="uid://bnftxfwr021q6"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://addons/sos_core_modules/assets/uielements/splash.gd" id="1_gssvn"]
|
||
|
[ext_resource type="PackedScene" uid="uid://bso65vpjqc4g4" path="res://dist/submodules/SUI/scenesrc/SuiText.tscn" id="2_xulmu"]
|
||
|
|
||
|
[sub_resource type="Animation" id="Animation_b6r3n"]
|
||
|
length = 0.001
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/path = NodePath(".:scale")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PackedFloat32Array(0),
|
||
|
"transitions": PackedFloat32Array(1),
|
||
|
"update": 0,
|
||
|
"values": [Vector2(1, 1)]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id="Animation_pp0fg"]
|
||
|
resource_name = "anim"
|
||
|
length = 0.5
|
||
|
loop_mode = 1
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/path = NodePath(".:scale")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PackedFloat32Array(0, 0.3, 0.5),
|
||
|
"transitions": PackedFloat32Array(3, 1, 1),
|
||
|
"update": 0,
|
||
|
"values": [Vector2(1, 1), Vector2(1.063, 1.063), Vector2(1, 1)]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_usol5"]
|
||
|
_data = {
|
||
|
"RESET": SubResource("Animation_b6r3n"),
|
||
|
"anim": SubResource("Animation_pp0fg")
|
||
|
}
|
||
|
|
||
|
[node name="Splash" type="Control"]
|
||
|
layout_mode = 3
|
||
|
anchors_preset = 0
|
||
|
offset_left = -221.0
|
||
|
offset_top = -45.0
|
||
|
offset_right = 221.0
|
||
|
offset_bottom = 45.0
|
||
|
rotation = -0.366519
|
||
|
pivot_offset = Vector2(221, 45)
|
||
|
script = ExtResource("1_gssvn")
|
||
|
|
||
|
[node name="AnimPlayer" type="AnimationPlayer" parent="."]
|
||
|
libraries = {
|
||
|
"": SubResource("AnimationLibrary_usol5")
|
||
|
}
|
||
|
autoplay = "anim"
|
||
|
|
||
|
[node name="Text" parent="." instance=ExtResource("2_xulmu")]
|
||
|
modulate = Color(1, 1, 0, 1)
|
||
|
layout_mode = 1
|
||
|
anchors_preset = 8
|
||
|
anchor_left = 0.5
|
||
|
anchor_top = 0.5
|
||
|
anchor_right = 0.5
|
||
|
anchor_bottom = 0.5
|
||
|
offset_left = -221.0
|
||
|
offset_top = -45.0
|
||
|
offset_right = 221.0
|
||
|
offset_bottom = 45.0
|
||
|
mouse_filter = 2
|
||
|
text = "[center]Imagine that you see some splash text here"
|
||
|
font_size = 30
|
||
|
|
||
|
[node name="Switcher" type="Button" parent="."]
|
||
|
self_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 = -221.0
|
||
|
offset_top = -45.0
|
||
|
offset_right = 221.0
|
||
|
offset_bottom = 45.0
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 2
|
||
|
|
||
|
[connection signal="pressed" from="Switcher" to="." method="update_splash"]
|