From b1dead039febc98b094c265bf01933e869c9f986 Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Mon, 9 Dec 2024 03:34:38 -0700 Subject: [PATCH] EN translation strings for the rest of settings & UI --- assets/text/text.csv | 40 ++++ src/props/flag/flag.gd | 5 +- src/ui/elements/input_prompt/input_prompt.gd | 9 +- .../elements/text_checkbox/text_checkbox.gd | 4 +- .../elements/text_checkbox/text_checkbox.tscn | 2 +- src/ui/menus/pause_menu/pause_menu.tscn | 14 +- src/ui/menus/settings_menu/settings_menu.tscn | 178 +++++++++--------- .../volume_slider/volume_slider.tscn | 2 +- src/ui/shot_hud/ball_selector/ball_icon.tscn | 1 + .../shot_hud/ball_selector/ball_selector.tscn | 4 +- .../shot_hud/club_selector/club_selector.tscn | 15 +- src/ui/shot_hud/shot_hud.tscn | 8 +- 12 files changed, 163 insertions(+), 119 deletions(-) diff --git a/assets/text/text.csv b/assets/text/text.csv index 2f9a7c2..0ce8eb1 100644 --- a/assets/text/text.csv +++ b/assets/text/text.csv @@ -1,6 +1,37 @@ keys,en UI_UNSET,unset UI_LISTEN,listening... +UI_CANCEL,Cancel +UI_ACCEPT,Accept +UI_ON,On +UI_OFF,Off +UI_GOAL,Goal! +, +PAUSE_HEADING,Paused +PAUSE_RESUME,Resume +PAUSE_SETTINGS,Settings +PAUSE_QUIT,Quit +PAUSE_QUIT_MSG,"Quit to desktop?" +, +SETTINGS_GAME,Game +SETTINGS_GAME_HEADING,"Game Configuration" +SETTINGS_GAME_ACCESSIBILITY_HEADING,Accessibility +SETTINGS_GAME_CAMERA_HEADING,Camera +SETTINGS_SCREEN_SHAKE,"Enable Screen Shake" +SETTINGS_HIT_LAG,"Enable Hit Lag Effect" +SETTINGS_FREE_CAMERA_SPEED,"Free Camera Speed" +SETTINGS_SENSITIVITY_X,"Sensitivity, Horizontal" +SETTINGS_SENSITIVITY_Y,"Sensitivity, Vertical" +SETTINGS_ACCELERATION_X,"Acceleration, Horizontal" +SETTINGS_ACCELERATION_Y,"Acceleration, Vertical" +SETTINGS_INVERT_PITCH,"Invert Pitch" +SETTINGS_GRAPHICS,Graphics +SETTINGS_GRAPHICS_HEADING,"Graphics & Display" +SETTINGS_AUDIO,Audio +SETTINGS_AUDIO_HEADING,"Audio Settings" +SETTINGS_CONTROLS,Controls +SETTINGS_CONTROLS_HEADING,"Control Bindings" +, ACTION_camera_forward,"Forward (free camera)" ACTION_camera_back,"Backward (free camera)" ACTION_camera_left,"Left (free camera)" @@ -24,3 +55,12 @@ ACTION_club_previous,"Select previous club" ACTION_pause,Pause ACTION_ball_next,"Select next ball" ACTION_ball_previous,"Select previous ball" +, +CLUB_DRIVER,Driver +CLUB_IRON,Iron +CLUB_WEDGE,Wedge +CLUB_SPECIAL,Special +CLUB_PUTTER,Putter +, +BALL_BASIC,Basic +BALL_PLASMA,Plasma diff --git a/src/props/flag/flag.gd b/src/props/flag/flag.gd index 7a132ee..5d23bfe 100644 --- a/src/props/flag/flag.gd +++ b/src/props/flag/flag.gd @@ -1,6 +1,9 @@ @tool extends Node3D +const GOAL_KEY := "UI_GOAL" +const LABEL_FMT := "{0}\n{1} m" + @export var show_distance: bool: set(value): if distance_label: @@ -17,4 +20,4 @@ func _process(_delta: float) -> void: var camera := viewport.get_camera_3d() if camera: var distance := int(global_position.distance_to(camera.global_position)) - distance_label.text = "Goal!\n%d m" % distance + distance_label.text = LABEL_FMT.format([tr(GOAL_KEY), str(distance)]) diff --git a/src/ui/elements/input_prompt/input_prompt.gd b/src/ui/elements/input_prompt/input_prompt.gd index 562089b..99614a5 100644 --- a/src/ui/elements/input_prompt/input_prompt.gd +++ b/src/ui/elements/input_prompt/input_prompt.gd @@ -11,11 +11,6 @@ const UNKNOWN_LABEL_SYM := "[unknown]" action = value _update() -@export var label: String: - set(value): - label = value - _update() - func _ready() -> void: _update() @@ -28,9 +23,11 @@ func _update() -> void: var primary := actions[0] input_symbol = PromptMap.from_event(primary) + var loc_action := tr(ControlBinding.ACTION_KEY_FMT.format([action])) + text = PROMPT_FORMAT.format( [ input_symbol if input_symbol else PromptMap.UNKNOWN_INPUT_SYMBOL, - label if label else UNKNOWN_LABEL_SYM + loc_action if loc_action else action ] ) diff --git a/src/ui/elements/text_checkbox/text_checkbox.gd b/src/ui/elements/text_checkbox/text_checkbox.gd index 1105c47..63ff98c 100644 --- a/src/ui/elements/text_checkbox/text_checkbox.gd +++ b/src/ui/elements/text_checkbox/text_checkbox.gd @@ -2,12 +2,12 @@ extends CheckBox ## Checkbox which updates its label based on check state. -@export var true_text := "On": +@export var true_text := "UI_ON": set(value): true_text = value _refresh() -@export var false_text := "Off": +@export var false_text := "UI_OFF": set(value): false_text = value _refresh() diff --git a/src/ui/elements/text_checkbox/text_checkbox.tscn b/src/ui/elements/text_checkbox/text_checkbox.tscn index c2f2504..815684d 100644 --- a/src/ui/elements/text_checkbox/text_checkbox.tscn +++ b/src/ui/elements/text_checkbox/text_checkbox.tscn @@ -4,7 +4,7 @@ [node name="TextCheckbox" type="CheckBox"] size_flags_horizontal = 0 -text = "Off" +text = "UI_OFF" script = ExtResource("1_6mma0") [connection signal="toggled" from="." to="." method="_on_toggled"] diff --git a/src/ui/menus/pause_menu/pause_menu.tscn b/src/ui/menus/pause_menu/pause_menu.tscn index 6d185fd..3f0efbb 100644 --- a/src/ui/menus/pause_menu/pause_menu.tscn +++ b/src/ui/menus/pause_menu/pause_menu.tscn @@ -45,23 +45,23 @@ theme_override_colors/font_outline_color = Color(0, 0, 0, 1) theme_override_constants/outline_size = 8 theme_override_fonts/font = ExtResource("1_4nw1f") theme_override_font_sizes/font_size = 72 -text = "Paused" +text = "PAUSE_HEADING" [node name="ResumeButton" type="Button" parent="MarginContainer/MenuList"] layout_mode = 2 theme_type_variation = &"PauseMenuButton" -text = "Resume" +text = "PAUSE_RESUME" [node name="SettingsButton" type="Button" parent="MarginContainer/MenuList"] layout_mode = 2 theme_type_variation = &"PauseMenuButton" -text = "Settings" +text = "PAUSE_SETTINGS" [node name="QuitButton" type="Button" parent="MarginContainer/MenuList"] layout_mode = 2 theme_type_variation = &"PauseMenuButton" theme_override_colors/font_color = Color(0.819608, 0.196078, 0.196078, 1) -text = "Quit" +text = "PAUSE_QUIT" [node name="SettingsContainer" type="MarginContainer" parent="."] unique_name_in_owner = true @@ -105,7 +105,7 @@ layout_mode = 2 [node name="Label" type="Label" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 24 -text = "Quit to desktop?" +text = "PAUSE_QUIT_MSG" horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer"] @@ -116,13 +116,13 @@ theme_override_constants/separation = 16 layout_mode = 2 size_flags_horizontal = 3 theme_type_variation = &"CancelButton" -text = "Cancel" +text = "UI_CANCEL" [node name="ConfirmQuitButton" type="Button" parent="QuitConfirm/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 theme_type_variation = &"AlertButton" -text = "Quit" +text = "PAUSE_QUIT" [connection signal="pressed" from="MarginContainer/MenuList/ResumeButton" to="." method="resume"] [connection signal="pressed" from="MarginContainer/MenuList/SettingsButton" to="." method="settings"] diff --git a/src/ui/menus/settings_menu/settings_menu.tscn b/src/ui/menus/settings_menu/settings_menu.tscn index f98739a..9ade6e1 100644 --- a/src/ui/menus/settings_menu/settings_menu.tscn +++ b/src/ui/menus/settings_menu/settings_menu.tscn @@ -14,260 +14,260 @@ script = ExtResource("1_lbcn7") [node name="TabContainer" type="TabContainer" parent="."] layout_mode = 2 -current_tab = 2 +current_tab = 0 -[node name="Game" type="MarginContainer" parent="TabContainer"] -visible = false +[node name="SETTINGS_GAME" type="MarginContainer" parent="TabContainer"] layout_mode = 2 theme_type_variation = &"SettingsPageContainer" metadata/_tab_index = 0 -[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Game"] +[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/SETTINGS_GAME"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Game/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer"] layout_mode = 2 -[node name="Icon" type="Label" parent="TabContainer/Game/VBoxContainer/HBoxContainer"] +[node name="Icon" type="Label" parent="TabContainer/SETTINGS_GAME/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_type_variation = &"InputPrompt" text = "⚙" -[node name="Label" type="Label" parent="TabContainer/Game/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_GAME/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_vertical = 8 theme_type_variation = &"HeaderXLarge" -text = "Game Configuration" +text = "SETTINGS_GAME_HEADING" -[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Game/VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Game/VBoxContainer/ScrollContainer"] +[node name="MarginContainer" type="MarginContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_type_variation = &"SettingsListMargin" -[node name="SettingsList" type="VBoxContainer" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer"] +[node name="SettingsList" type="VBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer"] layout_mode = 2 -[node name="AccessibilityHeading" type="HBoxContainer" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"] +[node name="AccessibilityHeading" type="HBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"] layout_mode = 2 -[node name="Label" type="Label" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccessibilityHeading"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccessibilityHeading"] layout_mode = 2 theme_type_variation = &"HeaderMedium" -text = "Accessibility" +text = "SETTINGS_GAME_ACCESSIBILITY_HEADING" -[node name="HSeparator" type="HSeparator" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccessibilityHeading"] +[node name="HSeparator" type="HSeparator" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccessibilityHeading"] layout_mode = 2 size_flags_horizontal = 3 -[node name="ScreenShake" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] +[node name="ScreenShake" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] layout_mode = 2 key = &"game/config/accessibility/enable_screen_shake" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ScreenShake" index="1"] -text = "Enable Screen Shake" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ScreenShake" index="1"] +text = "SETTINGS_SCREEN_SHAKE" -[node name="HitLag" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] +[node name="HitLag" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] layout_mode = 2 key = &"game/config/accessibility/enable_hit_lag" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/HitLag" index="1"] -text = "Enable Hit Lag Effect" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/HitLag" index="1"] +text = "SETTINGS_HIT_LAG" -[node name="CameraHeading" type="HBoxContainer" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"] +[node name="CameraHeading" type="HBoxContainer" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList"] layout_mode = 2 -[node name="Label" type="Label" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/CameraHeading"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/CameraHeading"] layout_mode = 2 theme_type_variation = &"HeaderMedium" -text = "Camera" +text = "SETTINGS_GAME_CAMERA_HEADING" -[node name="HSeparator" type="HSeparator" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/CameraHeading"] +[node name="HSeparator" type="HSeparator" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/CameraHeading"] layout_mode = 2 size_flags_horizontal = 3 -[node name="FreeCameraSpeed" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] +[node name="FreeCameraSpeed" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] layout_mode = 2 key = &"game/config/controls/camera/free_camera_speed" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed" index="1"] -text = "Free Camera Speed" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed" index="1"] +text = "SETTINGS_FREE_CAMERA_SPEED" -[node name="NumericSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer" index="0"] +[node name="NumericSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer" index="0"] step = 0.1 -[node name="HSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider" index="0"] +[node name="HSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider" index="0"] step = 0.1 -[node name="SpinBox" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider" index="1"] +[node name="SpinBox" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider" index="1"] step = 0.1 suffix = "m/s" -[node name="SensitivityX" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] +[node name="SensitivityX" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] layout_mode = 2 key = &"game/config/controls/camera/x_axis_sensitivity" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX" index="1"] -text = "Sensitivity, Horizontal" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX" index="1"] +text = "SETTINGS_SENSITIVITY_X" -[node name="NumericSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX/PanelContainer/MarginContainer" index="0"] +[node name="NumericSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX/PanelContainer/MarginContainer" index="0"] max_value = 4.0 step = 0.01 -[node name="SensitivityY" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] +[node name="SensitivityY" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] layout_mode = 2 key = &"game/config/controls/camera/y_axis_sensitivity" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY" index="1"] -text = "Sensitivity, Vertical" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY" index="1"] +text = "SETTINGS_SENSITIVITY_Y" -[node name="NumericSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY/PanelContainer/MarginContainer" index="0"] +[node name="NumericSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY/PanelContainer/MarginContainer" index="0"] max_value = 4.0 step = 0.01 -[node name="AccelerationX" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] +[node name="AccelerationX" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] layout_mode = 2 key = &"game/config/controls/camera/x_axis_acceleration" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX" index="1"] -text = "Acceleration, Horizontal" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX" index="1"] +text = "SETTINGS_ACCELERATION_X" -[node name="NumericSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX/PanelContainer/MarginContainer" index="0"] +[node name="NumericSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX/PanelContainer/MarginContainer" index="0"] step = 0.1 -[node name="AccelerationY" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] +[node name="AccelerationY" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("3_jox8e")] layout_mode = 2 key = &"game/config/controls/camera/y_axis_acceleration" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY" index="1"] -text = "Acceleration, Vertical" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY" index="1"] +text = "SETTINGS_ACCELERATION_Y" -[node name="NumericSlider" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY/PanelContainer/MarginContainer" index="0"] +[node name="NumericSlider" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY/PanelContainer/MarginContainer" index="0"] step = 0.1 -[node name="InvertPitch" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] +[node name="InvertPitch" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList" groups=["Settings"] instance=ExtResource("2_f274v")] layout_mode = 2 key = &"game/config/controls/camera/invert_pitch" -[node name="SettingLabel" parent="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/InvertPitch" index="1"] -text = "Invert Pitch" +[node name="SettingLabel" parent="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/InvertPitch" index="1"] +text = "SETTINGS_INVERT_PITCH" -[node name="Graphics" type="MarginContainer" parent="TabContainer"] +[node name="SETTINGS_GRAPHICS" type="MarginContainer" parent="TabContainer"] visible = false layout_mode = 2 theme_type_variation = &"SettingsPageContainer" metadata/_tab_index = 1 -[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Graphics"] +[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/SETTINGS_GRAPHICS"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Graphics/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer"] layout_mode = 2 -[node name="Icon" type="Label" parent="TabContainer/Graphics/VBoxContainer/HBoxContainer"] +[node name="Icon" type="Label" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_type_variation = &"InputPrompt" text = "🖵 " -[node name="Label" type="Label" parent="TabContainer/Graphics/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_vertical = 8 theme_type_variation = &"HeaderXLarge" -text = "Graphics & Display" +text = "SETTINGS_GRAPHICS_HEADING" -[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Graphics/VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Graphics/VBoxContainer/ScrollContainer"] +[node name="MarginContainer" type="MarginContainer" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_type_variation = &"SettingsListMargin" -[node name="SettingsList" type="VBoxContainer" parent="TabContainer/Graphics/VBoxContainer/ScrollContainer/MarginContainer"] +[node name="SettingsList" type="VBoxContainer" parent="TabContainer/SETTINGS_GRAPHICS/VBoxContainer/ScrollContainer/MarginContainer"] layout_mode = 2 -[node name="Audio" type="MarginContainer" parent="TabContainer"] +[node name="SETTINGS_AUDIO" type="MarginContainer" parent="TabContainer"] +visible = false layout_mode = 2 theme_type_variation = &"SettingsPageContainer" metadata/_tab_index = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Audio"] +[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/SETTINGS_AUDIO"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Audio/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer"] layout_mode = 2 -[node name="Icon" type="Label" parent="TabContainer/Audio/VBoxContainer/HBoxContainer"] +[node name="Icon" type="Label" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_type_variation = &"InputPrompt" text = "🕬" -[node name="Label" type="Label" parent="TabContainer/Audio/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_vertical = 8 theme_type_variation = &"HeaderXLarge" -text = "Audio Settings" +text = "SETTINGS_AUDIO_HEADING" -[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Audio/VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Audio/VBoxContainer/ScrollContainer"] +[node name="MarginContainer" type="MarginContainer" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_type_variation = &"SettingsListMargin" -[node name="BusMixerList" type="HBoxContainer" parent="TabContainer/Audio/VBoxContainer/ScrollContainer/MarginContainer"] +[node name="BusMixerList" type="HBoxContainer" parent="TabContainer/SETTINGS_AUDIO/VBoxContainer/ScrollContainer/MarginContainer"] unique_name_in_owner = true layout_mode = 2 theme_override_constants/separation = 16 -[node name="Controls" type="MarginContainer" parent="TabContainer"] +[node name="SETTINGS_CONTROLS" type="MarginContainer" parent="TabContainer"] visible = false layout_mode = 2 theme_type_variation = &"SettingsPageContainer" metadata/_tab_index = 3 -[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Controls"] +[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/SETTINGS_CONTROLS"] layout_mode = 2 -[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Controls/VBoxContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer"] layout_mode = 2 -[node name="Icon" type="Label" parent="TabContainer/Controls/VBoxContainer/HBoxContainer"] +[node name="Icon" type="Label" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer/HBoxContainer"] layout_mode = 2 theme_type_variation = &"InputPrompt" text = "␼" -[node name="Label" type="Label" parent="TabContainer/Controls/VBoxContainer/HBoxContainer"] +[node name="Label" type="Label" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_vertical = 8 theme_type_variation = &"HeaderXLarge" -text = "Control Bindings" +text = "SETTINGS_CONTROLS_HEADING" -[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Controls/VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="MarginContainer" type="MarginContainer" parent="TabContainer/Controls/VBoxContainer/ScrollContainer"] +[node name="MarginContainer" type="MarginContainer" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_type_variation = &"SettingsListMargin" -[node name="ControlBindingList" type="VBoxContainer" parent="TabContainer/Controls/VBoxContainer/ScrollContainer/MarginContainer"] +[node name="ControlBindingList" type="VBoxContainer" parent="TabContainer/SETTINGS_CONTROLS/VBoxContainer/ScrollContainer/MarginContainer"] unique_name_in_owner = true layout_mode = 2 @@ -287,24 +287,22 @@ theme_override_constants/separation = 16 [node name="CancelButton" type="Button" parent="SouthEast/HBoxContainer"] layout_mode = 2 theme_type_variation = &"CancelButton" -text = "Cancel -" +text = "UI_CANCEL" [node name="AcceptButton" type="Button" parent="SouthEast/HBoxContainer"] layout_mode = 2 theme_type_variation = &"AlertButton" -text = "Accept -" +text = "UI_ACCEPT" [connection signal="pressed" from="SouthEast/HBoxContainer/CancelButton" to="." method="cancel"] [connection signal="pressed" from="SouthEast/HBoxContainer/AcceptButton" to="." method="accept"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ScreenShake"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/HitLag"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY"] -[editable path="TabContainer/Game/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/InvertPitch"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/ScreenShake"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/HitLag"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/FreeCameraSpeed/PanelContainer/MarginContainer/NumericSlider"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityX"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/SensitivityY"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationX"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/AccelerationY"] +[editable path="TabContainer/SETTINGS_GAME/VBoxContainer/ScrollContainer/MarginContainer/SettingsList/InvertPitch"] diff --git a/src/ui/menus/settings_menu/volume_slider/volume_slider.tscn b/src/ui/menus/settings_menu/volume_slider/volume_slider.tscn index 2bf7c9c..3ae4145 100644 --- a/src/ui/menus/settings_menu/volume_slider/volume_slider.tscn +++ b/src/ui/menus/settings_menu/volume_slider/volume_slider.tscn @@ -47,5 +47,5 @@ stream = ExtResource("2_822gu") [connection signal="drag_ended" from="Slider" to="." method="_on_slider_drag_ended"] [connection signal="value_changed" from="Slider" to="." method="_on_component_value_changed"] -[connection signal="value_changed" from="DigitalDisplay/SpinBox" to="." method="_on_component_value_changed"] [connection signal="value_changed" from="DigitalDisplay/SpinBox" to="." method="_on_spin_box_value_changed"] +[connection signal="value_changed" from="DigitalDisplay/SpinBox" to="." method="_on_component_value_changed"] diff --git a/src/ui/shot_hud/ball_selector/ball_icon.tscn b/src/ui/shot_hud/ball_selector/ball_icon.tscn index e931765..ff36019 100644 --- a/src/ui/shot_hud/ball_selector/ball_icon.tscn +++ b/src/ui/shot_hud/ball_selector/ball_icon.tscn @@ -37,6 +37,7 @@ theme_override_fonts/font = ExtResource("2_bu42i") theme_override_font_sizes/font_size = 25 text = "BALLTYPE" horizontal_alignment = 2 +uppercase = true [node name="QuantityContainer" type="HBoxContainer" parent="BallLabel"] unique_name_in_owner = true diff --git a/src/ui/shot_hud/ball_selector/ball_selector.tscn b/src/ui/shot_hud/ball_selector/ball_selector.tscn index 8cd0ed7..6c31547 100644 --- a/src/ui/shot_hud/ball_selector/ball_selector.tscn +++ b/src/ui/shot_hud/ball_selector/ball_selector.tscn @@ -53,10 +53,10 @@ theme_override_constants/separation = 5 unique_name_in_owner = true custom_minimum_size = Vector2(120, 27) layout_mode = 2 -text = "BASIC" +text = "BALL_BASIC" [node name="PlasmaIcon" parent="GradientMask/BallList" instance=ExtResource("1_1v8xg")] unique_name_in_owner = true custom_minimum_size = Vector2(120, 27) layout_mode = 2 -text = "PLASMA" +text = "BALL_PLASMA" diff --git a/src/ui/shot_hud/club_selector/club_selector.tscn b/src/ui/shot_hud/club_selector/club_selector.tscn index 74f3450..369e152 100644 --- a/src/ui/shot_hud/club_selector/club_selector.tscn +++ b/src/ui/shot_hud/club_selector/club_selector.tscn @@ -107,7 +107,8 @@ grow_vertical = 2 scale = Vector2(0.618, 0.618) pivot_offset = Vector2(0, 20) theme_type_variation = &"ClubSelectLabel" -text = "DRIVER" +text = "CLUB_DRIVER" +uppercase = true script = ExtResource("4_j7p7f") [node name="IronLabel" type="Label" parent="ClubHub"] @@ -127,7 +128,8 @@ grow_vertical = 2 scale = Vector2(0.618, 0.618) pivot_offset = Vector2(0, 20) theme_type_variation = &"ClubSelectLabel" -text = "IRON" +text = "CLUB_IRON" +uppercase = true script = ExtResource("4_j7p7f") [node name="WedgeLabel" type="Label" parent="ClubHub"] @@ -147,7 +149,8 @@ grow_vertical = 2 scale = Vector2(0.618, 0.618) pivot_offset = Vector2(0, 20) theme_type_variation = &"ClubSelectLabel" -text = "WEDGE" +text = "CLUB_WEDGE" +uppercase = true script = ExtResource("4_j7p7f") [node name="SpecialLabel" type="Label" parent="ClubHub"] @@ -167,7 +170,8 @@ grow_vertical = 2 scale = Vector2(0.618, 0.618) pivot_offset = Vector2(0, 20) theme_type_variation = &"ClubSelectLabel" -text = "SPECIAL" +text = "CLUB_SPECIAL" +uppercase = true script = ExtResource("4_j7p7f") [node name="PutterLabel" type="Label" parent="ClubHub"] @@ -187,5 +191,6 @@ grow_vertical = 2 scale = Vector2(0.618, 0.618) pivot_offset = Vector2(0, 20) theme_type_variation = &"ClubSelectLabel" -text = "PUTTER" +text = "CLUB_PUTTER" +uppercase = true script = ExtResource("4_j7p7f") diff --git a/src/ui/shot_hud/shot_hud.tscn b/src/ui/shot_hud/shot_hud.tscn index 50e930a..41e00d4 100644 --- a/src/ui/shot_hud/shot_hud.tscn +++ b/src/ui/shot_hud/shot_hud.tscn @@ -1035,18 +1035,18 @@ layout_mode = 1 anchors_preset = -1 anchor_left = 0.5 anchor_right = 0.5 -offset_left = -95.5 +offset_left = -237.5 offset_top = -55.0 -offset_right = 95.5 +offset_right = 237.5 grow_horizontal = 2 theme_override_constants/margin_top = 16 [node name="ResetInputPrompt" parent="ResetPrompt" instance=ExtResource("14_ik4gg")] clip_children = 2 layout_mode = 2 -text = "❓ - RESET" +text = "❓ - ACTION_shot_reset" +uppercase = true action = &"shot_reset" -label = "RESET" [node name="Glint" type="TextureRect" parent="ResetPrompt/ResetInputPrompt"] layout_mode = 1