From: Eduardo Date: Sat, 23 Sep 2023 23:06:14 +0000 (+0200) Subject: splash with logo centered X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=621881c9bb9e49ff8254348c5c3de596be824538;p=The%20Cutests%20To-Do%20List.git splash with logo centered the back pain logo is centered in the screen on top and the loading bunny animation is under it --- 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")