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

Remove NEW! recipe flag on current item when moving up or down #56416

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

RoyBerube
Copy link
Contributor

Summary

Interface "Remove NEW! recipe flag on current item when moving up or down"

Purpose of change

Purely a QOL change. No known issue.

When viewing recipes that have the NEW! status, it only toggles when the recipe is entered. When the first item upon entering the window is new, it does not get toggled off when moving up or down. Same issue when using page up or down. I found this to be an annoyance.

This simply toggles off the NEW! indicator when leaving the item via the up or down controls, as well as retaining the current behaviour.

Describe the solution

Added a variable to track the line number when leaving a line with the up or down controls.

Describe alternatives you've considered

Nothing simpler.

Testing

Viewed menus and tested out various key controls. Behaving as intended with no observed side-effects.

Additional context

image

image

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Mar 28, 2022
@NetSysFire NetSysFire added Info / User Interface Game - player communication, menus, etc. Quality of Life QoL: degree to which players are comfortable, and able to enjoy CDDA labels Mar 28, 2022
@kevingranade kevingranade merged commit b66a9b5 into CleverRaven:master Apr 4, 2022
Drew4484 added a commit to Drew4484/Cataclysm-DDA that referenced this pull request Apr 4, 2022
@RoyBerube RoyBerube deleted the new-annoyance branch April 4, 2022 16:43
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 [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Quality of Life QoL: degree to which players are comfortable, and able to enjoy CDDA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants