Skip to content

Settings: Add option to disable the input HUD#2133

Merged
manuq merged 1 commit intomainfrom
wjt/settings-add-option-to-disable-the-input-hud
Apr 20, 2026
Merged

Settings: Add option to disable the input HUD#2133
manuq merged 1 commit intomainfrom
wjt/settings-add-option-to-disable-the-input-hud

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Apr 20, 2026

Settings: Add option to disable the input HUD

I wanted this for a slightly cleaner screenshot.

Rather than duplicating the code from the fullscreen toggle, make the
script more generic. It now toggles a named property on the Settings
singleton. Use the existing fullscreen methods as the getter/setter of a
new property, and add a new property for whether the input HUD is
visible.

Remove a stale signal connection from the video_settings scene - the
target method does not exist.

I wanted this for a slightly cleaner screenshot.

Rather than duplicating the code from the fullscreen toggle, make the
script more generic. It now toggles a named property on the Settings
singleton. Use the existing fullscreen methods as the getter/setter of a
new property, and add a new property for whether the input HUD is
visible.

Remove a stale signal connection from the video_settings scene - the
target method does not exist.
@wjt wjt requested a review from a team as a code owner April 20, 2026 14:18
@github-actions
Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/settings-add-option-to-disable-the-input-hud/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Copy link
Copy Markdown
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea.

func _update_visibility() -> void:
visible = not get_tree().paused and not Transitions.is_running() and (player or sokoban_ruleset)
visible = (
Settings.show_input_hud
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@manuq manuq merged commit a38351a into main Apr 20, 2026
6 checks passed
@manuq manuq deleted the wjt/settings-add-option-to-disable-the-input-hud branch April 20, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants