Skip to content

Add shortcut hints to construction tooltips#3764

Open
RED-ROSE515 wants to merge 1 commit into
OpenLoco:masterfrom
RED-ROSE515:master
Open

Add shortcut hints to construction tooltips#3764
RED-ROSE515 wants to merge 1 commit into
OpenLoco:masterfrom
RED-ROSE515:master

Conversation

@RED-ROSE515

Copy link
Copy Markdown

Closes #3757

Summary

  • Adds a shared shortcut formatter so shortcut display text can be reused outside the keyboard shortcuts window.
  • Shows configured hotkeys in construction tooltips for build, remove, rotate, and select-position actions.
  • Shows the configured rotate hotkey on station construction rotate tooltips.
  • Displays unbound when a tooltip action has no configured shortcut.

Testing

  • cmake --build build\windows-vcpkg-check --config Release --target App
  • cmake --build build\windows-vcpkg-check --config Release
  • ctest --test-dir build\windows-vcpkg-check -C Release -E "Assertions" --output-on-failure

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.

Add more tooltips showing keyboard shortcuts

1 participant