Sfoglia il codice sorgente

:lipstick: Add a panel to make title text more legible

Especially needed when crossing the top limit.
DricomDragon 1 anno fa
parent
commit
258dd2cfbb
1 ha cambiato i file con 9 aggiunte e 4 eliminazioni
  1. 9 4
      godot/component/ui/victory/victory_menu.tscn

+ 9 - 4
godot/component/ui/victory/victory_menu.tscn

@@ -9,7 +9,6 @@ action = &"ui_cancel"
 events = [SubResource("InputEventAction_ucj0l")]
 
 [node name="VictoryMenu" type="VSplitContainer"]
-visible = false
 anchors_preset = 15
 anchor_right = 1.0
 anchor_bottom = 1.0
@@ -18,16 +17,22 @@ grow_vertical = 2
 size_flags_horizontal = 4
 script = ExtResource("1_2kg3i")
 
-[node name="TextContainer" type="VBoxContainer" parent="."]
+[node name="Panel" type="PanelContainer" parent="."]
 layout_mode = 2
 
-[node name="Title" type="Label" parent="TextContainer"]
+[node name="MarginContainer" type="MarginContainer" parent="Panel"]
+layout_mode = 2
+
+[node name="TextContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
+layout_mode = 2
+
+[node name="Title" type="Label" parent="Panel/MarginContainer/TextContainer"]
 layout_mode = 2
 theme_override_font_sizes/font_size = 40
 text = "Victory!"
 horizontal_alignment = 1
 
-[node name="BlaBla" type="Label" parent="TextContainer"]
+[node name="BlaBla" type="Label" parent="Panel/MarginContainer/TextContainer"]
 layout_mode = 2
 theme_override_font_sizes/font_size = 30
 text = "That's not a common way to go to space, but you are welcome !"