Pottus / Texture-Studio

85 stars 90 forks source link

Dialogs won't display above default value of entries #62

Closed wtfrazr closed 6 years ago

wtfrazr commented 6 years ago

So dialogs don't display entries after the maximum entries for SA:MP dialogs. /loadmap, /tsearch and other dialogs that could display more but are part of this issue.

I suggest to make the first and last lines "<<Previous Page" & ">>Next Page" buttons leading to continuing dialogs, so all the entries can be displayed.

Crayder commented 6 years ago

There isn't a "maximum entries", the only limitation is the dialog string length, which is 4096... So unless your maps files' names exceed that /loadmap, /importmaps, etc won't have a problem.

/tsearch stops searching after 100 found entries. The textures' names are all less than 32 chars, so each row is 32 + 6 for index, newline, and ':'. 4096 divided by 38 is ~107 so 100 entries is about rows. There are 9065 total textures, most of your searches will be less than 100, but I'd understand the need for multiple pages in this case.