Skip to content
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

Prevent displaying production changes news from idle industries #285

Closed
DorpsGek opened this issue Aug 17, 2006 · 12 comments
Closed

Prevent displaying production changes news from idle industries #285

DorpsGek opened this issue Aug 17, 2006 · 12 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

Meush opened the ticket and wrote:

Adds a new patch option in "Economy" tab.
If it is off (default) user won't be greeted with newspapers on production changes of production that aren't exploited.
It gets useful on big maps when many unuseful messages pops up.

Player can set the option to "on" to show all production changes newspapers.

Attachments

Reported version: 0.4.8
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/285
@DorpsGek
Copy link
Member Author

Meush wrote:

Sorry for a typo. This version works properly:

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment412

@DorpsGek
Copy link
Member Author

Meush wrote:

I'm sorry I attached the wrong file. This is the proper patch:

//And please, fix the editing. I'd be grateful for one that makes me able to edit my tasks... I have the right permissions, but double-click doesn't work. I'm using Mozilla FF 1.5.0.6, WinXP.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment417

@DorpsGek
Copy link
Member Author

Mateo wrote:

Shouldn't this setting be in the Message Settings window rather than Configure patches window?


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment449

@DorpsGek
Copy link
Member Author

Meush wrote:

IIRC there widget limit in message settings has been already hit and hacks are used.
Anyway, what do you propose? To change none/summary/full to something else? To add a checkbox below?


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment450

@DorpsGek
Copy link
Member Author

Mateo wrote:

From usability point of view, I would modify the message options screen with the following changes:
- Leave 'Economy changes' as it is, but it's used to display stuff like inflation etc.
- New option: 'Production changes of exploited industries": Off/Summary/Full
- New option: 'Production changes of idle industries": Off/Summary/Full

I personally don't care about any production changes, but I don't want to turn off the 'economy changes' because it may display some other important stuff. BTW, what kind of other messages are display with the current 'economy changes' selection? I can't remember.. The same goes to "General information" also..

If the widget limit is a problem, then probably it's better to wait till it's fixed (I think there's already a development branch for it)..


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment452

@DorpsGek
Copy link
Member Author

Meush wrote:

That's right, a fix to kill the limit of widget is in progress.
Your idea seems to be allright, but I'd suggest my patch as temporart behaviour, because noone knows how long will it take to finalize the widget fix.
The other economical news are euro currency and crash on the stock market, probably some news more, too.


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment453

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

This really shouldn't be done via patches, but via the news system, which can handle more news settings by now. Recently (as in: within the last 2 months) I did it once for some industry related things, so maybe you can revive this patch and make it similar to that? Would be useful!


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment1862

@DorpsGek
Copy link
Member Author

Meush wrote:

It would be great if you could point me the changes, then I'll willingly do the job. That would be a stimulus for me to go coding and see how does OpenTTD in C++ look like. It's been such a long time.


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment1863

@DorpsGek
Copy link
Member Author

TrueBrain wrote:

I think http://svn.openttd.org/trac/changeset/9097 should get you on the way. Of course not all of that patch is relevant to you, but it has the right pieces of code.


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment1864

@DorpsGek
Copy link
Member Author

Meush wrote:

Done.
How about separating industry changes from "economy changes" completly? What do you think about making NT_ECONOMY handle production changes only (it would be nice to rename it and change descriptor in news setting) and moving €uro introduction and world recession related news (the only three news items that are NT_ECONOMY) to "General information"?

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment1911

@DorpsGek
Copy link
Member Author

Alberth wrote:

FYI: Your patch seems to be incomplete. When adding a news category, you not only need to update the _news_display_name array, but also the _news_sounds and the _news_items_age arrays.


This comment was imported from FlySpray: https://bugs.openttd.org/task/285#comment2212

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Out of date

Due to r11442 and #1326.


This comment was imported from FlySpray: https://bugs.openttd.org/task/285

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant