Update UI text labels for consistency and internationalization; refactor HUD text handling

This commit is contained in:
2025-05-25 14:49:49 +02:00
parent 85f33e4cbe
commit 25676db130
16 changed files with 109 additions and 40 deletions

View File

@@ -43,7 +43,7 @@ size_flags_vertical = 4
[node name="Audio" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "audio"
text = "AUDIO"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
@@ -59,7 +59,7 @@ theme_override_constants/separation = 4
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/Master volume"]
layout_mode = 2
text = "Master volume"
text = "MASTER_VOLUME"
horizontal_alignment = 1
[node name="HSlider" type="HSlider" parent="PanelContainer/MarginContainer/VBoxContainer/Master volume"]
@@ -73,7 +73,7 @@ theme_override_constants/separation = 4
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/Music volume"]
layout_mode = 2
text = "Music volume"
text = "MUSIC_VOLUME"
horizontal_alignment = 1
[node name="HSlider" type="HSlider" parent="PanelContainer/MarginContainer/VBoxContainer/Music volume"]
@@ -87,7 +87,7 @@ theme_override_constants/separation = 4
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/SFX volume"]
layout_mode = 2
text = "Sounds volume"
text = "SOUNDS_VOLUME"
horizontal_alignment = 1
[node name="HSlider" type="HSlider" parent="PanelContainer/MarginContainer/VBoxContainer/SFX volume"]

View File

@@ -38,7 +38,7 @@ theme_override_constants/separation = 32
[node name="Pause" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "CREDITS"
text = "CREDITS_TITLE"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
@@ -46,12 +46,5 @@ uppercase = true
[node name="RichTextLabel" type="RichTextLabel" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
text = "Game was created by Gabriel Kaszewski.
Main character was drawn by my girlfriend <3
I would like to thank all of my friends that encouraged my during development of this game.
For now this is it, enjoy the game!
"
text = "CREDITS"
fit_content = true

View File

@@ -41,7 +41,7 @@ theme_override_constants/separation = 16
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "game over"
text = "GAME_OVER"
horizontal_alignment = 1
uppercase = true
@@ -51,10 +51,10 @@ layout_mode = 2
[node name="RestartLevelButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "RESTART LEVEL"
text = "RESTART_LEVEL_BUTTON"
flat = true
[node name="MenuButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "GO TO MENU"
text = "GO_TO_MENU_BUTTON"
flat = true

View File

@@ -51,7 +51,7 @@ theme_override_constants/separation = 8
[node name="Health Label" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Health"
text = "HEALTH"
label_settings = ExtResource("1_4dsh5")
uppercase = true
@@ -68,12 +68,12 @@ show_percentage = false
[node name="Lives" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Lives 3"
text = "LIVES"
label_settings = ExtResource("1_4dsh5")
uppercase = true
[node name="Coins label" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Coins 33"
text = "COINS"
label_settings = ExtResource("1_4dsh5")
uppercase = true

View File

@@ -38,7 +38,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "input"
text = "INPUT"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
@@ -72,5 +72,5 @@ layout_mode = 2
[node name="Reset to default Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "RESET TO DEFAULT"
text = "RESET_TO_DEFAULT_BUTTON"
flat = true

View File

@@ -43,7 +43,7 @@ theme_override_constants/separation = 16
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "MR. BRICK ADVENTURES"
text = "GAME_TITLE"
horizontal_alignment = 1
uppercase = true
@@ -54,27 +54,27 @@ size_flags_vertical = 3
[node name="ContinueButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "CONTINUE"
text = "CONTINUE_BUTTON"
flat = true
[node name="NewGameButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "NEW GAME"
text = "NEW_GAME_BUTTON"
flat = true
[node name="SettingsButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "SETTINGS"
text = "SETTINGS_BUTTON"
flat = true
[node name="CreditsButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "CREDITS"
text = "CREDITS_BUTTON"
flat = true
[node name="QuitButton" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "QUIT GAME"
text = "QUIT_BUTTON"
flat = true
[node name="version" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]

View File

@@ -49,7 +49,7 @@ theme_override_constants/separation = 32
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "marketplace"
text = "MARKETPLACE"
horizontal_alignment = 1
vertical_alignment = 1
justification_flags = 162

View File

@@ -46,7 +46,7 @@ size_flags_vertical = 4
[node name="Pause" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Pause"
text = "PAUSE"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
@@ -58,20 +58,20 @@ size_flags_vertical = 3
[node name="Resume Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "RESUME"
text = "RESUME_BUTTON"
flat = true
[node name="Settings Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "SETTINGS"
text = "SETTINGS_BUTTON"
flat = true
[node name="Exit to menu Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "EXIT TO MENU"
text = "EXIT_TO_MENU_BUTTON"
flat = true
[node name="Quit game Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "QUIT GAME"
text = "QUIT_BUTTON"
flat = true

View File

@@ -42,7 +42,7 @@ theme_override_constants/separation = 16
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "settings"
text = "SETTINGS"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true
@@ -53,22 +53,22 @@ size_flags_vertical = 3
[node name="Input Settings Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "INPUT"
text = "INPUT_BUTTON"
flat = true
[node name="Display Settings Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "DISPLAY"
text = "DISPLAY_BUTTON"
flat = true
[node name="Audio Settings Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "AUDIO"
text = "AUDIO_BUTTON"
flat = true
[node name="Gameplay Settings Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "GAMEPLAY"
text = "GAMEPLAY_BUTTON"
flat = true
[node name="Spacer2" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer"]