Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display actual bound keys in crafting gui #47584

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Feb 18, 2021

Summary

Interface "Display actual bound keys in crafting gui"

Purpose of change

The keybindings tips in the crafting gui were hard-coded. Display actual bound keys instead.

Describe the solution

Generate and fold keybindings tips on the fly when initializing or resizing. Dynamically resize the recipe list and item info according to the line count of keybindings tips. Also made keybindings tips format consistent in wide and narrow modes.

Testing

Opened crafting gui and keybindings tips were correctly displayed. Resize the window and the tips were correctly folded and displayed.

Additional context

Recipe info is a bit messy with low screen height, which I intend to address in a separate PR by switching to scrolling instead of "mode cycling".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Controls / Input Keyboard, mouse, keybindings, input UI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants