Add the splash screen.

加入启动屏幕。
This commit is contained in:
Cold-Mint 2024-07-16 00:03:53 +08:00
parent e454d4cedc
commit 2ba5d304a9
Signed by: Cold-Mint
GPG Key ID: C5A9BF8A98E0CE99
6 changed files with 183 additions and 2 deletions

View File

@ -12,9 +12,9 @@ config_version=5
config/name="Traveler" config/name="Traveler"
config/version="0.0.1" config/version="0.0.1"
run/main_scene="res://scenes/mainMenu.tscn" run/main_scene="res://scenes/splashScreen.tscn"
config/features=PackedStringArray("4.2", "C#", "Mobile") config/features=PackedStringArray("4.2", "C#", "Mobile")
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1) boot_splash/show_image=false
config/icon="res://icon.svg" config/icon="res://icon.svg"
[dotnet] [dotnet]

113
scenes/splashScreen.tscn Normal file
View File

@ -0,0 +1,113 @@
[gd_scene load_steps=3 format=3 uid="uid://rx7t26ldvonc"]
[ext_resource type="Texture2D" uid="uid://cb3gn8xb5r4gm" path="res://sprites/icons/coldmint.png" id="1_0333i"]
[ext_resource type="Texture2D" uid="uid://b877262di2jp5" path="res://sprites/icons/godot.png" id="2_y25sr"]
[node name="SplashScreen" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="ColdMintTextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 104.0
offset_top = -196.0
offset_right = 296.0
offset_bottom = -4.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_0333i")
[node name="GodotTextureRect" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -296.0
offset_top = -196.0
offset_right = -104.0
offset_bottom = -4.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_y25sr")
[node name="ColdMintLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 131.0
offset_top = 28.0
offset_right = 260.0
offset_bottom = 77.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "ColdMint"
[node name="GodotLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -286.0
offset_top = 22.0
offset_right = -96.0
offset_bottom = 71.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "Godot Engine"
[node name="ColorRect2" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -0.5
offset_top = -196.0
offset_right = 0.5
offset_bottom = 74.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -66.0
offset_top = 184.5
offset_right = 66.0
offset_bottom = 215.5
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 20
text = "Now Loading..."

BIN
sprites/icons/coldmint.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cb3gn8xb5r4gm"
path="res://.godot/imported/coldmint.png-60f4ea4d35667d41233ba113782da34d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/icons/coldmint.png"
dest_files=["res://.godot/imported/coldmint.png-60f4ea4d35667d41233ba113782da34d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
sprites/icons/godot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b877262di2jp5"
path="res://.godot/imported/godot.png-a4b706c7cd800e68db88737cd54e5395.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/icons/godot.png"
dest_files=["res://.godot/imported/godot.png-a4b706c7cd800e68db88737cd54e5395.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1