Patch: Station-gui-Upgrade
Moderator: OpenTTD Developers
Patch: Station-gui-Upgrade
Some time ago, I complained about the station-gui not showing exact numbers. (here)
I made a patch to change the look of the station-gui, see attachment.
EDIT: cargos with quantity 0 are now displayed
EDIT: drawing inside of window only, first column moves depending on longest visible station name
I made a patch to change the look of the station-gui, see attachment.
EDIT: cargos with quantity 0 are now displayed
EDIT: drawing inside of window only, first column moves depending on longest visible station name
- Attachments
-
- newer look
- station gui table 02.png (17.03 KiB) Viewed 2943 times
-
- station_gui_table.diff
- for r4780
no more drawing outside the window - (2.85 KiB) Downloaded 124 times
Last edited by Haukinger on 08 May 2006 10:31, edited 2 times in total.
- Born Acorn
- Tycoon
- Posts: 7596
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
I think that's possible. But I don't know how... I'm just scratching the surface of ottd-patching 
I want to make the table a bit more static. Does anyone know where a station records which cargo it 'creates' ?
When a train is in the station and loading, that type of cargo will disappear from the station-gui if the train loads all. I want it to stay in the gui (as 0, of course)
EDIT: done.

I want to make the table a bit more static. Does anyone know where a station records which cargo it 'creates' ?
When a train is in the station and loading, that type of cargo will disappear from the station-gui if the train loads all. I want it to stay in the gui (as 0, of course)
EDIT: done.
A station creates no cargo, it get's it from the industry nearby.Haukinger wrote: I want to make the table a bit more static. Does anyone know where a station records which cargo it 'creates' ?
That is saved here: station->goods[cargotype]
How does the window look if the station offers 4 or more cargotypes?
You don't want to knowHow does the window look if the station offers 4 or more cargotypes?

It writes over the borders of the window and leaves ugly artifacts on the map, if you don't make the window large enough...
As said before, I'm new to ottd-patching and have yet to master the secrets of the gui.
I know what's happening, i only wanted to know if you know that this can happen. it's not nice that it happens but make the windows big enough for every language text is impossible i think. But normally you only have text. But in the worst case you can have 13 cargo types in one line, and putting that onto one line will look afwul.Haukinger wrote: You don't want to know
It writes over the borders of the window and leaves ugly artifacts on the map, if you don't make the window large enough...
As said before, I'm new to ottd-patching and have yet to master the secrets of the gui.
Taking a smaller font size will reduce the text width too. The normal value has 4 places. I never seen a station with > 2300 cargo waiting. So reduce the unused place between the text and the small picture for the next cargo. Maybe you need to make the window itself wider.
I take it you haven't looked at an oil or water station lately?gigajum wrote:I never seen a station with > 2300 cargo waiting.
Those can end up with ~1,000,000 litres of oil or water, easily.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
if i remember correct, the value of the variable has only 1000. The text output only adds the three 0 to make litres out of it. But i'm not 100% sure about that without looking at the code.DaleStan wrote:I take it you haven't looked at an oil or water station lately?gigajum wrote:I never seen a station with > 2300 cargo waiting.
Those can end up with ~1,000,000 litres of oil or water, easily.
correct. but the player doesn't know that. can be quite confusing if it says only 1.000 units in the list but there's 1.000.000 litres waiting.
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
I think it would be more confusing if everything else shows 1-2000 units as a lot of cargo waiting, while the same figure for oil/water is practically nothing.
Id be more inclined to use standard volumes relative to station and train maxes, rather than the cosmetic litres value.
Certainly I'd much rather drop the 3 zeros and get another 1-2 cargos within the standard window size.
Id be more inclined to use standard volumes relative to station and train maxes, rather than the cosmetic litres value.
Certainly I'd much rather drop the 3 zeros and get another 1-2 cargos within the standard window size.
This litre-thing is - for me - confusing and unnecessary. The game could use tons or barrels or whatever to keep the numbers consistent...
Many different cargos in one station is no problem IMHO, 1024x768 is enough for 12 cargos. Btw, long trains are a problem, too. If you build a 60-unit train, even the scrollbar in the depot view ceases to work.
The position of the first column is chosen to allow longer station-names. To adapt it to the longest actual station-name is possible, this looks like that:
Many different cargos in one station is no problem IMHO, 1024x768 is enough for 12 cargos. Btw, long trains are a problem, too. If you build a 60-unit train, even the scrollbar in the depot view ceases to work.
The position of the first column is chosen to allow longer station-names. To adapt it to the longest actual station-name is possible, this looks like that:
- Attachments
-
- adaptive column-one-position
- station gui table 03.png (5.69 KiB) Viewed 2670 times
Who is online
Users browsing this forum: No registered users and 18 guests