The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: sanna on October 08, 2009, 04:33:57 pm

Title: Factory info window too narrow after addition of decimals
Post by: sanna on October 08, 2009, 04:33:57 pm
After the addition of decimal points both to the stored amount of goods and the consumption percentage of them, the info window for the factories no longer is wide enough to fit the strings, at least when the unit is not a one letter tag, f ex Paletten.  For the Production info the situation is even worse, since the goods category needs to be added there as well. And since the window is not resizeable, there is no way to get the needed information.

So either the info window needs to be wider, or the window made resizable or the amount of information on each line be trimmed down. One possible trim would be to not repeat the unit both for the stored amount and the storage capacity, another to remove the decimal at least on the percentage (though that will not buy us much real estate). It could also be possible to not allow units longer than f ex 3 letters, but then they would in many cases be so cryptic that they needed to be explained somewhere.

(http://simutrans-germany.com/files/upload/too_narrow_factory_info.png)
Title: Re: Factory info window too narrow after addition of decimals
Post by: prissi on October 08, 2009, 07:38:29 pm
That is a clear case of non pak64 problem, so I did not see this. Ok, lets remove decimals from the stored amount again.
Title: Re: Factory info window too narrow after addition of decimals
Post by: knightly on October 08, 2009, 07:50:19 pm
That is a clear case of non pak64 problem, so I did not see this.

I think the same problem happens with pak64 too. Please see the attached image.
Title: Re: Factory info window too narrow after addition of decimals
Post by: prissi on October 08, 2009, 07:51:00 pm
Or a clear case of not enough testing ... reverted.
Title: Re: Factory info window too narrow after addition of decimals
Post by: Amelek on October 08, 2009, 08:33:43 pm
wouldn't adding resize button be better idea?

also, would it be possible to move Production and Consumption before Consumers and Suppliers list? If there is a lot of each (which is common case in late game) you need to scroll every time you click on facility.
Title: Re: Factory info window too narrow after addition of decimals
Post by: prissi on October 08, 2009, 08:37:39 pm
This window is unfourtunately from the stone age, it is indeed derived from the house window. As such it is actually needed to redo the whole window. But that is slave work (as UI stuff usually is) so I postponed this since ages.
Title: Re: Factory info window too narrow after addition of decimals
Post by: dannyman on October 09, 2009, 12:55:01 am
I see that the offending strings are like:
4.5 pallet/ 300 pallet

Maybe just change it to like:
4.5/300 pallet

I am probably missing something obvious. :)