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

Start menu: Selector for trait variants #74525

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

anothersimulacrum
Copy link
Member

Summary

Interface "Add selection menu for cosmetic traits in character creation"

Purpose of change

Make the cosmetic traits list easier to navigate.

Describe the solution

Instead of listing all the trait variants individually, add a menu selector for the variants and display the "archetype" trait for them.

Describe alternatives you've considered

This does some funky things with uilist, but this was the path of least resistance. It would be nice if uilist had a way to show a "selected" entry that wasn't the one the cursor was over.

Testing

image image

Additional context

@Procyonae
Copy link
Contributor

It would be nice if uilist had a way to show a "selected" entry that wasn't the one the cursor was over.

Would removing the one currently selected from the list and making the title "Change eye colour from ?" (with unselected being "random") be better?

@anothersimulacrum
Copy link
Member Author

No. It may seem strange to unselect eye color, but this is also used for the hair styles, which should be unselectable. That could be worked around by selecting something if you have any of the variants removing it, and only selecting it without the trait bringing up this menu, but I think that's bad UX.

@github-actions github-actions bot added Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Info / User Interface Game - player communication, menus, etc. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jun 14, 2024
src/newcharacter.cpp Outdated Show resolved Hide resolved
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jun 15, 2024
Instead of listing all the trait variants individually, add a menu
selector for the variants and display the "archetype" trait for them.

This does some funky things with uilist, but this was the path of least
resistance. It would be nice if uilist had a way to show a "selected"
entry that wasn't the one the cursor was over.
@github-actions github-actions bot added BasicBuildPassed This PR builds correctly, label assigned by github actions and removed BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jun 15, 2024
@dseguin dseguin merged commit a00f0e1 into CleverRaven:master Jun 17, 2024
20 of 26 checks passed
@anothersimulacrum anothersimulacrum deleted the smaller-trait-menu branch June 17, 2024 17:36
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Aug 26, 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 [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants