Standardize lowercase UI presentation
This commit is contained in:
parent
7ab3c86e93
commit
633bbd9a88
29 changed files with 100 additions and 100 deletions
|
|
@ -129,10 +129,10 @@ func _process(_delta: float) -> void:
|
|||
if remaining <= 0.0:
|
||||
continue
|
||||
var label: String = {
|
||||
PlayerItemEffectsType.COFFEE_ID: "Coffee",
|
||||
PlayerItemEffectsType.ENERGY_DRINK_ID: "Energy",
|
||||
PlayerItemEffectsType.SNACK_ID: "Snack",
|
||||
PlayerItemEffectsType.FISH_FINDER_ID: "Finder",
|
||||
PlayerItemEffectsType.COFFEE_ID: "coffee",
|
||||
PlayerItemEffectsType.ENERGY_DRINK_ID: "energy",
|
||||
PlayerItemEffectsType.SNACK_ID: "snack",
|
||||
PlayerItemEffectsType.FISH_FINDER_ID: "finder",
|
||||
}.get(item_id, "")
|
||||
parts.append(
|
||||
"%s %d:%02d"
|
||||
|
|
@ -296,7 +296,7 @@ func _on_catch_display_changed(
|
|||
"%d%% %s"
|
||||
% [roundi(barrier_positions[barrier_index] * 100.0), marker]
|
||||
)
|
||||
_barrier_summary.text = "Barriers: %s" % " ".join(barrier_labels)
|
||||
_barrier_summary.text = "barriers: %s" % " ".join(barrier_labels)
|
||||
|
||||
if (
|
||||
active_barrier_index >= 0
|
||||
|
|
@ -304,14 +304,14 @@ func _on_catch_display_changed(
|
|||
and active_barrier_index < barrier_max_health.size()
|
||||
):
|
||||
_barrier_health.text = (
|
||||
"Barrier: %d / %d"
|
||||
"barrier: %d / %d"
|
||||
% [
|
||||
barrier_health[active_barrier_index],
|
||||
barrier_max_health[active_barrier_index],
|
||||
]
|
||||
)
|
||||
else:
|
||||
_barrier_health.text = "Hold left click to reel"
|
||||
_barrier_health.text = "hold left click to reel"
|
||||
|
||||
var chase_gap: float = progress - chase_progress
|
||||
if chase_gap <= 0.05:
|
||||
|
|
@ -319,7 +319,7 @@ func _on_catch_display_changed(
|
|||
"%s%s"
|
||||
% [
|
||||
_barrier_health.text,
|
||||
"\nRed is closing in!",
|
||||
"\nred is closing in!",
|
||||
]
|
||||
).strip_edges()
|
||||
_refresh_fishing_panel_visibility()
|
||||
|
|
@ -377,11 +377,11 @@ func _on_showcase_changed(
|
|||
_barrier_health.visible = false
|
||||
_clear_barrier_markers()
|
||||
_showcase_details.text = (
|
||||
"%.1f lb • %s\nLeft click or Escape to put away"
|
||||
"%.1f lb • %s\nleft click or escape to put away"
|
||||
% [weight_lb, rarity_name]
|
||||
)
|
||||
_showcase_details.visible = true
|
||||
_set_fishing_status("You caught a %s!" % fish_name)
|
||||
_set_fishing_status("you caught a %s!" % fish_name)
|
||||
|
||||
|
||||
func _on_player_menu_visibility_changed(is_open: bool) -> void:
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ theme_override_constants/margin_bottom = 7
|
|||
|
||||
[node name="Label" type="Label" parent="ShopPrompt/Margin"]
|
||||
layout_mode = 2
|
||||
text = "Press E to open Fishing Shop"
|
||||
text = "press e to open fishing shop"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="FishingShop" parent="." instance=ExtResource("8_shop")]
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ func refresh() -> void:
|
|||
_quantity_label.text = quantity_text
|
||||
_quantity_label.visible = not quantity_text.is_empty()
|
||||
tooltip_text = (
|
||||
item.display_name if item != null else "Empty hotbar slot"
|
||||
item.display_name if item != null else "empty hotbar slot"
|
||||
)
|
||||
button_pressed = slot_index == _hotbar.get_selected_slot()
|
||||
|
||||
|
|
|
|||
|
|
@ -161,9 +161,9 @@ func _save_now() -> void:
|
|||
_action_in_progress = true
|
||||
_save_button.disabled = true
|
||||
if _save_manager.save_now():
|
||||
_feedback.text = "Game saved."
|
||||
_feedback.text = "game saved."
|
||||
else:
|
||||
_feedback.text = "Save failed. Previous save was preserved."
|
||||
_feedback.text = "save failed. previous save was preserved."
|
||||
_action_in_progress = false
|
||||
call_deferred("_reenable_save_button")
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ func _open_settings() -> void:
|
|||
|
||||
func _on_settings_applied() -> void:
|
||||
_root_panel.show()
|
||||
_feedback.text = "Settings saved."
|
||||
_feedback.text = "settings saved."
|
||||
%SettingsButton.grab_focus()
|
||||
|
||||
|
||||
|
|
@ -193,9 +193,9 @@ func _on_settings_closed() -> void:
|
|||
func _confirm_return_to_title() -> void:
|
||||
_open_confirmation(
|
||||
ConfirmationAction.RETURN_TO_TITLE,
|
||||
"Return to Title",
|
||||
"Unsaved progress will be saved first.",
|
||||
"Save and Return",
|
||||
"return to title",
|
||||
"unsaved progress will be saved first.",
|
||||
"save and return",
|
||||
false
|
||||
)
|
||||
|
||||
|
|
@ -203,13 +203,13 @@ func _confirm_return_to_title() -> void:
|
|||
func _confirm_reset_progress() -> void:
|
||||
_open_confirmation(
|
||||
ConfirmationAction.RESET_PROGRESS,
|
||||
"Reset all progression?",
|
||||
"reset all progression?",
|
||||
(
|
||||
"This permanently deletes your fish, discoveries, "
|
||||
"this permanently deletes your fish, discoveries, "
|
||||
+ "favorites, and wallet balance.\n\n"
|
||||
+ "Your settings will be preserved."
|
||||
+ "your settings will be preserved."
|
||||
),
|
||||
"DELETE ALL PROGRESS",
|
||||
"delete all progress",
|
||||
true
|
||||
)
|
||||
|
||||
|
|
@ -226,9 +226,9 @@ func _request_quit() -> void:
|
|||
return
|
||||
_open_confirmation(
|
||||
ConfirmationAction.QUIT_ANYWAY,
|
||||
"Save failed",
|
||||
"Some progress or settings could not be saved. Quit anyway?",
|
||||
"Quit Anyway",
|
||||
"save failed",
|
||||
"some progress or settings could not be saved. quit anyway?",
|
||||
"quit anyway",
|
||||
true
|
||||
)
|
||||
|
||||
|
|
@ -276,7 +276,7 @@ func _accept_confirmation() -> void:
|
|||
if _save_manager.save_now():
|
||||
return_to_title_requested.emit()
|
||||
else:
|
||||
_feedback.text = "Save failed. Previous save was preserved."
|
||||
_feedback.text = "save failed. previous save was preserved."
|
||||
_root_panel.show()
|
||||
ConfirmationAction.RESET_PROGRESS:
|
||||
reset_progress_requested.emit()
|
||||
|
|
@ -291,7 +291,7 @@ func report_reset_failure() -> void:
|
|||
_action_in_progress = false
|
||||
_root_panel.show()
|
||||
_confirmation_panel.hide()
|
||||
_feedback.text = "Reset failed. Your progression was preserved."
|
||||
_feedback.text = "reset failed. your progression was preserved."
|
||||
%ResumeButton.grab_focus()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -55,45 +55,45 @@ theme_override_constants/separation = 11
|
|||
[node name="Title" type="Label" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "Game Menu"
|
||||
text = "game menu"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ResumeButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
text = "Return to Game"
|
||||
text = "return to game"
|
||||
|
||||
[node name="SaveButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
text = "Save Now"
|
||||
text = "save now"
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
text = "Settings"
|
||||
text = "settings"
|
||||
|
||||
[node name="ReturnToTitleButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
text = "Return to Title"
|
||||
text = "return to title"
|
||||
|
||||
[node name="ResetProgressButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"DangerButton"
|
||||
text = "Reset Progress"
|
||||
text = "reset progress"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(0, 43)
|
||||
layout_mode = 2
|
||||
text = "Quit"
|
||||
text = "quit"
|
||||
|
||||
[node name="FeedbackLabel" type="Label" parent="RootCenter/RootPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -147,13 +147,13 @@ unique_name_in_owner = true
|
|||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.937, 0.357, 0.384, 1)
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "Confirm"
|
||||
text = "confirm"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ConfirmationText" type="Label" parent="ConfirmationCenter/ConfirmationPanel/Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Are you sure?"
|
||||
text = "are you sure?"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
|
|
@ -166,10 +166,10 @@ alignment = 1
|
|||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(190, 43)
|
||||
layout_mode = 2
|
||||
text = "Confirm"
|
||||
text = "confirm"
|
||||
|
||||
[node name="CancelConfirmButton" type="Button" parent="ConfirmationCenter/ConfirmationPanel/Margin/Content/Buttons"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(130, 43)
|
||||
layout_mode = 2
|
||||
text = "Cancel"
|
||||
text = "cancel"
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ func close_panel() -> void:
|
|||
|
||||
func _apply_settings() -> void:
|
||||
if _settings_manager == null:
|
||||
_feedback.text = "Settings are unavailable."
|
||||
_feedback.text = "settings are unavailable."
|
||||
return
|
||||
var edited := PlayerSettings.new()
|
||||
edited.auto_click_enabled = _auto_click_toggle.button_pressed
|
||||
|
|
@ -59,7 +59,7 @@ func _apply_settings() -> void:
|
|||
hide()
|
||||
applied.emit()
|
||||
else:
|
||||
_feedback.text = "Failed to save settings."
|
||||
_feedback.text = "failed to save settings."
|
||||
|
||||
|
||||
func _load_controls() -> void:
|
||||
|
|
|
|||
|
|
@ -23,17 +23,17 @@ theme_override_constants/separation = 12
|
|||
[node name="Heading" type="Label" parent="Margin/Content"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "Settings"
|
||||
text = "settings"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="AutoClickToggle" type="CheckButton" parent="Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Accessibility auto-click"
|
||||
text = "accessibility auto-click"
|
||||
|
||||
[node name="AutoClickHelp" type="Label" parent="Margin/Content"]
|
||||
layout_mode = 2
|
||||
text = "Lower intervals click barriers faster while held."
|
||||
text = "lower intervals click barriers faster while held."
|
||||
|
||||
[node name="AutoClickRow" type="HBoxContainer" parent="Margin/Content"]
|
||||
layout_mode = 2
|
||||
|
|
@ -42,7 +42,7 @@ theme_override_constants/separation = 12
|
|||
[node name="Label" type="Label" parent="Margin/Content/AutoClickRow"]
|
||||
custom_minimum_size = Vector2(190, 0)
|
||||
layout_mode = 2
|
||||
text = "Auto-click interval"
|
||||
text = "auto-click interval"
|
||||
|
||||
[node name="AutoClickInterval" type="HSlider" parent="Margin/Content/AutoClickRow"]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -66,7 +66,7 @@ theme_override_constants/separation = 12
|
|||
[node name="Label" type="Label" parent="Margin/Content/MouseRow"]
|
||||
custom_minimum_size = Vector2(190, 0)
|
||||
layout_mode = 2
|
||||
text = "Mouse camera sensitivity"
|
||||
text = "mouse camera sensitivity"
|
||||
|
||||
[node name="MouseSensitivity" type="HSlider" parent="Margin/Content/MouseRow"]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -90,7 +90,7 @@ theme_override_constants/separation = 12
|
|||
[node name="Label" type="Label" parent="Margin/Content/ControllerRow"]
|
||||
custom_minimum_size = Vector2(190, 0)
|
||||
layout_mode = 2
|
||||
text = "Controller camera sensitivity"
|
||||
text = "controller camera sensitivity"
|
||||
|
||||
[node name="ControllerSensitivity" type="HSlider" parent="Margin/Content/ControllerRow"]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -110,7 +110,7 @@ text = "2.5"
|
|||
[node name="InvertYToggle" type="CheckButton" parent="Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Invert vertical camera"
|
||||
text = "invert vertical camera"
|
||||
|
||||
[node name="SettingsFeedback" type="Label" parent="Margin/Content"]
|
||||
unique_name_in_owner = true
|
||||
|
|
@ -127,10 +127,10 @@ alignment = 2
|
|||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 42)
|
||||
layout_mode = 2
|
||||
text = "Apply"
|
||||
text = "apply"
|
||||
|
||||
[node name="CancelSettingsButton" type="Button" parent="Margin/Content/Buttons"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(120, 42)
|
||||
layout_mode = 2
|
||||
text = "Back"
|
||||
text = "back"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue