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

Fix ui hotkey help not updating #37981

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

Kilvoctu
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Fix ui hotkey help not updating"

Purpose of change

There are a number of UI windows in the game in which the hotkeys reminder text are statically written out.
For example, "[?] show help" on Advanced Inventory Management. If the user changes the hotkey for help away from ?, this reminder text does not change.
This PR addresses a couple windows with this issue, using the standard "[keybind] action" format.

Describe the solution

Rewrite reminder text to reference their respective appropriate actions' current keybinds.
Change press_x to get_desc where it makes sense.

Describe alternatives you've considered

Some windows have a very large amount of static reminder text. These are the UI for crafting, aiming, zones manager and vehicle examine.
Especially in the case of the vehicle UI, these are difficult to fix without making a relatively large impact on how the text is displayed, so I've left them out of this PR.

Incidentally, in the case of crafting, aiming and zones manager UI, I feel it's better to have "[keybind] show help" rather than so much reminder text on screen. There should be only essential reminders listed in each window, as the menu for showing keybindings is already accessible everywhere (and is contextual).

Testing

Compile, load game, open the affected windows and remap keybinds. Observe results.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. labels Feb 13, 2020
@ZhilkinSerg ZhilkinSerg merged commit 3201703 into CleverRaven:master Feb 13, 2020
@Kilvoctu Kilvoctu deleted the ui-hotkeys-fix branch February 14, 2020 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants