-
-
Notifications
You must be signed in to change notification settings - Fork 842
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: Transparency option for cost and income indicators #11001
Conversation
I like the motivation (having a clean scenery for screenshots), but I wonder if there'll be many players who want to hide income but not loading indicators and vice versa. What about putting these two together in a single setting? |
True... Easy to implement as an alternative. |
bf2bc32
to
b0473ea
Compare
b0473ea
to
7b965bd
Compare
I agree with @llugo tbh, I don't think this deserves a new button/setting |
Removing approval as everyone seems to agree this should be one button :)
7b965bd
to
2624271
Compare
Simple revision, simplifies the change so that cost/income indicator visibility is toggled with the existing loading indicator visibility button. Changed the tooltip to indicate that it toggles both (and changed the name of the tooltip string and widget to reflect this new functionality). I think the icon of a vehicle is still OK, as cost/income and loading are all strongly vehicle-associated. |
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.
Looks pretty good to me, just a few minor details for code readability. 😃
2624271
to
5b0f6d3
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.
Oof, I'm sorry, my suggestion for handling IsTransparencySet()
wasn't quite right. It should return early before the for loop on line 121, rather than pointlessly continuing through the entire loop.
Change that, and I'll approve (as I was about to when I realized my error). 😳
5b0f6d3
to
342855a
Compare
Motivation / Problem
The cost and income indicators (the rising red and green text) from vehicle income, construction costs, vehicle purchase, etc. are always visible.
This can become problematic. All other signs/text/labels can be hidden, either by transparency options (invisible signs, vehicle loading indicators) or the settings dropdown (notably town names). As far as I could tell, there was no way to hide the cost and income indicators - therefore added it as a transparency option.
This option is particularly for players who want clean interfaces or beauty screenshots. It is also useful for late game construction where (especially on fast forward) you can end up building in a cloud of green vehicle income text.
Description
This feature adds a show/hide of cost and income indicators as a transparency option, as another transparency toggle button to the transparency control window. When transparent, no cost/income text. When not transparent, normal cost/income text. It toggles along with all other transparency with the normal
X
transparency hotkey. It can be locked, like the other transparency options, withCtrl+click
.This implementation imitates handling of the loading/unloading indicators via a transparency button.
Now we can have beautiful screenshots and clean, text free, viewports!
Limitations
I believe this is a fully functional minimal feature, however:
There is no dedicated hotkey.
Ctrl+<number>
is used for transparency toggling of individual features, but1
-9
are already in use.Ctrl+0
could be used, but I thought was unintuitive.x
toggles transparency of all features including the cost and income indicators. This is a change in behaviour, which might be undesirable? eg. for a new player when building in transparent mode, no cost would be shown.It is not addressed here, but a setting, similar to the loading/unloading indicators, could be added. Alternatively, cost and income indicator transparency could default to locked.
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.