Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upMore vehicle part descriptions #24462
Conversation
mlangsdorf
added some commits
Jul 24, 2018
This comment has been minimized.
This comment has been minimized.
This was referenced Jul 24, 2018
ZhilkinSerg
self-assigned this
Jul 24, 2018
This comment has been minimized.
This comment has been minimized.
Minor issues (can be addressed in later PRs):
|
This comment has been minimized.
This comment has been minimized.
|
I can add a commit to fix the minor issues. I though fold_and_print would handle the scrolling automatically, but if it doesn't, I can copy the logic from print_parts_list. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Right, I agree there is a problem. I was just explaining why I didn't code it better - because I thought I had. Ah, well. |
mlangsdorf
changed the title
More vehicle part descriptions
[WIP] More vehicle part descriptions
Jul 24, 2018
This comment has been minimized.
This comment has been minimized.
|
That was fun. The descriptions list should be truncated to the window size now, with a message indicating the scroll keys. Hitting TAB, BACKTAB, <, and >, should all do reasonably sensible things and the vehicle |
mlangsdorf
force-pushed the
mlangsdorf:more_veh_descriptions
branch
to
96fff3d
Jul 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Okay, this commit has grown to ~950 lines. I can split off the data/json/vehicle_parts changes if people would like, but the src changes are fairly tightly coupled. |
AMurkin
reviewed
Jul 24, 2018
| @@ -28,7 +28,7 @@ | |||
| "broken_color": "light_blue", | |||
| "difficulty": 2, | |||
| "durability": 100, | |||
| "description": "An extendable cantilever crane. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.", | |||
| "description": "An extendable cantilever crane. If it is in your line of sight and within two tiles of another vehicle, you will automatically use if when you want jack up the other vehicle to change the its wheels, or lift a heavy component like an engine that you are installing in or removing from the other vehicle.", | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mlangsdorf
changed the title
[WIP] More vehicle part descriptions
More vehicle part descriptions
Jul 24, 2018
ZhilkinSerg
reviewed
Jul 25, 2018
| @@ -11,7 +11,7 @@ | |||
| "broken_color": "light_blue", | |||
| "difficulty": 5, | |||
| "durability": 200, | |||
| "description": "A rigid steel boom crane. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.", | |||
| "description": "A rigid steel boom crane. If it is in your line of sight and within two tiles of another vehicle, you will automatically use if when you want jack up the other vehicle to change the its wheels, or lift a heavy component like an engine that you are installing in or removing from the other vehicle.", | |||
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
Jul 25, 2018
Contributor
Some typos:
you will automatically use if when you want jack up the other vehicle to change the its
should probably be:
you will automatically use it when you want to jack up other vehicle to change its
ZhilkinSerg
reviewed
Jul 25, 2018
| @@ -28,7 +28,7 @@ | |||
| "broken_color": "light_blue", | |||
| "difficulty": 2, | |||
| "durability": 100, | |||
| "description": "An extendable cantilever crane. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.", | |||
| "description": "An extendable cantilever crane. If it is in your line of sight and within two tiles of another vehicle, you will automatically use if when you want jack up the other vehicle to change the its wheels, or lift a heavy component like an engine that you are installing in or removing from the other vehicle.", | |||
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
reviewed
Jul 25, 2018
| @@ -46,7 +46,7 @@ | |||
| "broken_color": "light_blue", | |||
| "difficulty": 2, | |||
| "durability": 100, | |||
| "description": "A small pallet lifter. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.", | |||
| "description": "A small pallet lifter. If it is in your line of sight and within two tiles of another vehicle, you will automatically use if when you want jack up the other vehicle to change the its wheels, or lift a heavy component like an engine that you are installing in or removing from the other vehicle.", | |||
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
reviewed
Jul 25, 2018
| @@ -65,7 +65,7 @@ | |||
| "difficulty": 2, | |||
| "damage_modifier": 200, | |||
| "durability": 300, | |||
| "description": "A pair of forklift arms. Can be used to jack up another vehicle to change the other vehicle's wheels, or lift a heavy component like an engine from another vehicle.", | |||
| "description": "A pair of forklift arms. If it is in your line of sight and within two tiles of another vehicle, you will automatically use if when you want jack up the other vehicle to change the its wheels, or lift a heavy component like an engine that you are installing in or removing from the other vehicle.", | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Scrolling vehicle part description window with Also
No need to split yet. |
ZhilkinSerg
removed their assignment
Jul 25, 2018
ZhilkinSerg
added
Translation
[JSON]
Vehicles
labels
Jul 25, 2018
ZhilkinSerg
added
the
[C++]
label
Jul 25, 2018
mlangsdorf
added some commits
Jul 25, 2018
This comment has been minimized.
This comment has been minimized.
|
Fixed the scroll-off issue. It's approximate, but seemed adequate in my testing. Fixed the typos in the JSON - thanks for the review. |
ZhilkinSerg
self-assigned this
Jul 26, 2018
This comment has been minimized.
This comment has been minimized.
The bug is still on, but only for tiles with little vehicle parts (when all descriptions go to first page). Here is first page - it does not contain But I can still press And if I go to tile with multiple parts (which descriptions do not fit on one page): I can only proceed to some ultimate page with description of last part: |
ZhilkinSerg
removed their assignment
Jul 26, 2018
This comment has been minimized.
This comment has been minimized.
|
More fun! |
mlangsdorf
force-pushed the
mlangsdorf:more_veh_descriptions
branch
to
f1abdff
Jul 26, 2018
ZhilkinSerg
self-assigned this
Jul 26, 2018
This comment has been minimized.
This comment has been minimized.
|
Looks good now! |








mlangsdorf commentedJul 24, 2018
•
edited
Expand some vehicle part descriptions based on feedback from reddit and discourse.
Refactor the code that prints the vehicle part description so it can be used it more places than just the install menu.
Print the descriptions for all vparts on the current tile in the general vehicle interaction display, using the window panel that was otherwise blank