fix: scale labels directly with centered pivot for reliable zoom animation

This commit is contained in:
Eric Smith 2026-05-20 21:55:35 -04:00
parent 932e7b660c
commit 6c955da9de
2 changed files with 45 additions and 21 deletions

View file

@ -30,22 +30,25 @@ anchor_bottom = 1.0
mouse_filter = 2
color = Color(0.08, 0.08, 0.12, 1.0)
[node name="Center" type="CenterContainer" parent="."]
[node name="Logo" type="Control" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
[node name="TextContainer" type="VBoxContainer" parent="Center"]
[node name="VLabel" type="Label" parent="Logo"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_constants/separation = 0
[node name="VLabel" type="Label" parent="Center/TextContainer"]
unique_name_in_owner = true
layout_mode = 2
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -300.0
offset_top = -260.0
offset_right = 300.0
offset_bottom = 0.0
theme_override_fonts/normal_font = SubResource("FontVariation_ijphb")
theme_override_font_sizes/normal_font_size = 256
theme_override_colors/font_color = Color(0.933, 0.271, 0.376, 1.0)
@ -53,9 +56,20 @@ theme_override_constants/outline_size = 6
theme_override_colors/font_outline_color = Color(0.0, 0.0, 0.0, 0.6)
text = "V"
horizontal_alignment = 1
vertical_alignment = 1
[node name="PanelLabel" type="Label" parent="Center/TextContainer"]
layout_mode = 2
[node name="PanelLabel" type="Label" parent="Logo"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -300.0
offset_top = 0.0
offset_right = 300.0
offset_bottom = 220.0
theme_override_fonts/normal_font = SubResource("FontVariation_boeqg")
theme_override_font_sizes/normal_font_size = 144
theme_override_colors/font_color = Color(0.7, 0.7, 0.8, 1.0)
@ -63,6 +77,7 @@ theme_override_constants/outline_size = 4
theme_override_colors/font_outline_color = Color(0.0, 0.0, 0.0, 0.5)
text = "Panel"
horizontal_alignment = 1
vertical_alignment = 1
[node name="TransitionOverlay" type="ColorRect" parent="."]
unique_name_in_owner = true