-
-
Notifications
You must be signed in to change notification settings - Fork 968
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: Group liveries, and livery window usability enhancements. #7108
Conversation
A PR like this ought to have some PR screenshots, I say. |
Thanks Andy. Didn't have time earlier to post screenshots. |
Company Colour defaults are now set like this: For ungrouped trains, RVs etc, the long established (and weird imo) settings for some types of vehicle are kept. Note however that the checkboxes are now removed, reducing UI friction: Liveries for groups do not offer settings by types of vehicle, 1CC and 2CC will be applied consistently to all vehicles in the group: Results: Group livery UI can also be opened directly from the groups window, with the correct group selected: |
Looks good. I tested it and works as expected. But please run script/api/generate_widget.sh. Some questions:
|
Ah yes. We really ought to make this part of the build process!
Hmm, sounds reasonable, although the title widget is already the company colour. EDIT Or not. Confused as I was testing something else and it was. EDIT And it is in master, just broken in this PR, wow.
Possibly depending on the next point.
This will change how setting a colour to 'Default' will work. Currently it means to fall back to the system of picking the colour based on the original liveries system. With hierarchy in place it would mean falling back to the parent scheme.
It's based on the extra OpenTTD GUI sprites that already exist, but there's no icon for 'choose colour'. |
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.
I will admit to not testing this myself, but the code looks sound, and others' testing indicates it works as intended.
Were the new sprites final?
Another update as I had, again, forgotten to run generate_widgets |
Well, instead of "Default", it should be "Inherited". But it is more consistent to inherit colour from parents, the same way autoreplacements work.
I think it is better to deal with this now for keeping commits to master in a better order. |
About icons, it is my fault. I thought those icons were based on non-free graphics instead of being based on OpenGFX. Probably, some static newGRF must have had replaced the ones in OpenGFX when I checked this. |
@nielsmh Unless someone wants to improve them, I think the icons are fine. Current version now displays the group hierarchy so the list order is the same as the group window, but does not affect how colour is assigned. There's a small discrepancy anyway that when 'Default' is selected it shows the main company colour, but vehicles may not be that colour if the type-based liveries are used. |
…on in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired.
Group hierarchy is now followed for liveries. |
Tested, works for me. I thought I had found an issue where default was sometimes wrong for 2CC, but can't repro. Only saw it in a savegame with groups created in a previous version of patch, assuming it was stale data. |
It compiles and looks good. Let's ship it ;) |
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.
As by the comment... let's ship it
Revert "Feature: Group liveries, and livery window usability enhancements. (OpenTTD#7108)" This reverts commit 23960d0.
…penTTD#7108) * Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
The number of GUI sprites has increased since the group liveries addition (OpenTTD/OpenTTD#7108).
The number of GUI sprites has increased since the group liveries addition (OpenTTD/OpenTTD#7108).
…penTTD#7108) * Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
This PR add liveries to vehicle groups, and makes some usability changes to the livery selection window, replacing the checkbox enable/disable with a 'default' option in the colour drop down.