The International Simutrans Forum

 

Author Topic: [11.30] Industry List not scrolling  (Read 2099 times)

0 Members and 1 Guest are viewing this topic.

Offline Sarlock

  • Devotee
  • *
  • Posts: 1340
  • Languages: EN
[11.30] Industry List not scrolling
« 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.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [11.30] Industry List not scrolling
« Reply #1 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.

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1326
Re: [11.30] Industry List not scrolling
« Reply #2 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.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18745
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [11.30] Industry List not scrolling
« Reply #3 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4602
  • Languages: EN, DE, AT
Re: [11.30] Industry List not scrolling
« Reply #4 on: May 19, 2014, 05:37:48 AM »
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.