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

keybindings buttons: one per line & fixes #71954

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Brambor
Copy link
Contributor

@Brambor Brambor commented Feb 24, 2024

Summary

None

Purpose of change

fix: KBs was invisible (and more shenanigans) when "Press ."... is shown - my bad #71060
fix: highlight at proper line (not line above) - my bad #71060
fix: on small window, highlight and clickable region is off x-coordinate

Describe the solution

Each button is on it's own line. I made it you can click anywhere on the line to activate the button.

Before
image

After
image

Describe alternatives you've considered

Just fix the issues I made and the scaling issue. This code is better for user and more maintainable.

Another button needs adding and it started to be quite a mess already.

image

Testing

Clicked the buttons. They do the same things.

  1. Lauch game
  2. ESC -> keybindings menu (!don't open with ? keybinding)
  3. You can see the "Press . to exe"... text
    image

Additional context

Layout inspired by buttons in #65709.

Unfortunatelly, this is not rebase friendly with #65709.

fix: KBs was invisible (and more shenanigans) when "Press ."... is shown - my bad CleverRaven#71060
fix: highlight at proper line (not line above) - my bad CleverRaven#71060
fix: on small window, highlight and clickable region is off x-coordinate
change: each button is on it's own line, so I made it you can click anywhere on the line to activate the button
@Brambor

This comment was marked as resolved.

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 24, 2024
@dseguin dseguin merged commit d1d224d into CleverRaven:master Feb 27, 2024
29 checks passed
@Brambor Brambor deleted the fix-kb-buttons branch February 28, 2024 10:36
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Mar 19, 2024
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants