The International Simutrans Forum

Development => Bug Reports => Topic started by: Sarlock on May 12, 2014, 03:59:26 AM

Title: [11.30] Industry List not scrolling
Post by: Sarlock on May 12, 2014, 03:59:26 AM
Me again...

Noted by others as well as myself, the industry list won't scroll.  There is likely a limit to how many items that list can contain before the scroll bar breaks and you can't browse the list.  I noticed the same thing occur with Island Hopper's big line a few years ago (before he changed it) when he had over 1000 ships on a single line and you couldn't browse the line list anymore.

I imagine this exists in Standard as well... probably the first game ever played with 2,800+ industries.
Title: Re: [11.30] Industry List not scrolling
Post by: jamespetts on May 17, 2014, 09:11:57 PM
The GUI has been substantially overhauled in Standard since the version from which the 11.x branch diverges. This new GUI code is in the way-improvements branch and will be implemented in the next major version. If the problem still persists there, it will be worth looking into further.
Title: Re: [11.30] Industry List not scrolling
Post by: TurfIt on May 17, 2014, 09:37:37 PM
Any scrolled list > 32767 pixels will break. For text lists, this'll be slightly less than 3000 entries, which the industry list just went over.
Standard was separating map koords from screen coordinates, but not sure if ever finished... And the screen coords are still 16 bit too, need changing to 32 to fix this type of problem.
Title: Re: [11.30] Industry List not scrolling
Post by: jamespetts on May 18, 2014, 12:05:09 PM
I have moved this to the Standard bug reports subforum, as this is not exclusive to Experimental.
Title: Re: [11.30] Industry List not scrolling
Post by: Dwachs on May 19, 2014, 05:37:48 AM
Quote from: TurfIt on May 17, 2014, 09:37:37 PM
Standard was separating map koords from screen coordinates, but not sure if ever finished... And the screen coords are still 16 bit too, need changing to 32 to fix this type of problem.
The conversion is done, hence the fix to this problem will be a trivial change - just change one typedef.