From 621881c9bb9e49ff8254348c5c3de596be824538 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Sun, 24 Sep 2023 01:06:14 +0200 Subject: [PATCH] splash with logo centered the back pain logo is centered in the screen on top and the loading bunny animation is under it --- scenes/splash_screen/SplashScreen.tscn | 27 +++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/scenes/splash_screen/SplashScreen.tscn b/scenes/splash_screen/SplashScreen.tscn index cd33cfd..6fb6d29 100644 --- a/scenes/splash_screen/SplashScreen.tscn +++ b/scenes/splash_screen/SplashScreen.tscn @@ -225,32 +225,32 @@ text = "0% horizontal_alignment = 2 [node name="Logo" type="TextureRect" parent="."] -anchors_preset = 7 +anchors_preset = 8 anchor_left = 0.5 -anchor_top = 1.0 +anchor_top = 0.5 anchor_right = 0.5 -anchor_bottom = 1.0 +anchor_bottom = 0.5 grow_horizontal = 2 -grow_vertical = 0 -scale = Vector2(0.25, 0.25) -pivot_offset = Vector2(0, -200) +grow_vertical = 2 +scale = Vector2(0.5, 0.5) +pivot_offset = Vector2(0, -500) +size_flags_horizontal = 4 +size_flags_vertical = 4 texture = ExtResource("2_m1jpr") expand_mode = 5 stretch_mode = 3 -[node name="SplashTime" type="Timer" parent="."] -wait_time = 3.0 -one_shot = true -autostart = true - [node name="BunnyLoadingContainer" type="CenterContainer" parent="."] anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 +offset_top = 500.0 +offset_bottom = 500.0 grow_horizontal = 2 grow_vertical = 2 +pivot_offset = Vector2(0, 500) size_flags_vertical = 4 [node name="BunnyLoadingAnimatedSprite" type="AnimatedSprite2D" parent="BunnyLoadingContainer"] @@ -267,6 +267,11 @@ grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 0) +[node name="SplashTime" type="Timer" parent="."] +wait_time = 3.0 +one_shot = true +autostart = true + [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_6sio5") -- 2.30.2