-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Feature: Show the cargoes the vehicles can carry in the list window. #8304
Conversation
9eea545
to
2265f49
Compare
Should there be a setting to toggle the effects of this PR? Not all players may want this change as it may increase the clutter for some. |
A setting for this would be the right call, yes, but it can be on by default as far as I am concerned. You did mangle two patches here, it seems, as I think part of "Feature: Show group name as part of the default vehicle name." is also in here :) |
2265f49
to
cb01bfd
Compare
I fixed my issue by merging your other patch. A rebase solves the problem now :D |
cb01bfd
to
b8e0a13
Compare
Is there somewhere an explanation what this info is used for?
I would see the usefulness of prepending groups names with the cargos of all member vehicles, but I don't understand why someone would want to see it per vehicle. |
This seems like a useful tool for waypoint and station management, especially with NewGRFs with lots of cargos carried in similar vehicles (looking at you, Iron Horse + FIRS Steeltown). It needs some padding between the text and the vehicle sprite. Default engines abut the text with no space in between. Also needs a rebase (hopefully the last one, because I'd like to approve this 😃 ) |
Its using the same string as the vehicles' names and also depends on the sprites' offsets. (Give a name to a vehicle, and check it out it in the vehicle list.) So I would like to leave this to someone else with much more experience with padding, margins, and scaling. :) |
d94581a
to
ab2bcca
Compare
ab2bcca
to
ea84188
Compare
Maybe out of the scope of this PR, but I think it'd be really nice if you could put the cargo list dynamically in the name with a string key. For example if you put |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, the text abutting the vehicle sprite is a problem inherent to OpenGFX graphics with the default font. It happens outside this PR. (I use original TTD baseset which doesn't have this problem). That's not your problem to fix, and it looks like #10114 solves it anyway.
OpenGFX graphics and default font in current nightly:
Adding a custom cargo flag for player-entered strings is definitely out of scope. 🙂
As I explained above, I think this is a useful feature for managing busy networks with lots of cargos. I'd use it. (And those who don't like the clutter can simply disable it.)
ea84188
to
e72836d
Compare
e72836d
to
f1b0eaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f1b0eaa
to
4ab39e7
Compare
This patch is based on @KeldorKatarn's commit:
KeldorKatarn/OpenTTD_PatchPack@0a57222a