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

More misc vehicle menu fixes #61025

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

irwiss
Copy link
Contributor

@irwiss irwiss commented Sep 15, 2022

Summary

None

Purpose of change

Make controlled vehicle menu offer examine menu item to match muscle memory before #60868

Describe the solution

Enable the menu item when controlling vehicle

Also slight cleanups;
Merge vehicle::start_folding_activity to call site - trivial, used twice before, only one call left and not much reuse potential
Remove vehicle::is_open - unused in game code, only in tests, adjusts tests to use vehicle_part::open

Describe alternatives you've considered

Testing

^ twice on controls tile - should see examine/remember vehicle menu items
Test suite should pass using vehicle_part::open

Additional context

image

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Vehicles Vehicles, parts, mechanics & interactions 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 Sep 15, 2022
@irwiss irwiss marked this pull request as ready for review September 15, 2022 15:34
@NetSysFire NetSysFire added Info / User Interface Game - player communication, menus, etc. Controls / Input Keyboard, mouse, keybindings, input UI, etc. labels Sep 15, 2022
@irwiss irwiss closed this Sep 15, 2022
@irwiss irwiss deleted the more-vehicle-menu-fixes branch September 15, 2022 17:15
@irwiss irwiss restored the more-vehicle-menu-fixes branch September 15, 2022 17:15
@irwiss irwiss reopened this Sep 15, 2022
@dseguin dseguin merged commit b1e5ac1 into CleverRaven:master Sep 16, 2022
@irwiss irwiss deleted the more-vehicle-menu-fixes branch September 16, 2022 09:57
@BrettDong
Copy link
Member

vehicle::is_open() is used in game code, in Android-specific code:

https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/3065231303/jobs/4949136495#step:19:2116

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` Code: Tests Measurement, self-control, statistics, balancing. Controls / Input Keyboard, mouse, keybindings, input UI, etc. Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants