Allow changing shape of vehicle parts without reinstalling #48477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Interface "Allow changing shape of vehicle parts without reinstalling"
Purpose of change
Vehicle parts shape and orientation are purely comestic, but you can't change them without uninstalling and installing the part.
Describe the solution
Add a new menu to the vehicle examine menu,
shaPe
. It allows the player to change the shape instantly free of cost.Describe alternatives you've considered
Make the menu return to the base state after changing shape. This speeds up things if players want to change the shape of parts on different tiles.
Testing
Additional context
It was my first time dealing with the vehicle code, it's confusing how it all works, and since I don't know what to expect from changing the vehicle part variant, I might have messed up in
vpart_shapes
, though at the moment it seems to be working fine.I wanted to pick a key closer to ESC but
s
,a
ande
were taken, so I went withp
instead ofh
.