Toma400 / The_Isle_of_Ansur

Python-based text RPG game, successor of Between Shadows and Light.
Other
9 stars 0 forks source link

Custom Listbox type #90

Open Toma400 opened 8 months ago

Toma400 commented 8 months ago

We currently use PyGameGUI listboxes, but Listbox type will be needed for more nuanced and aesthetical form of GUI.

Since current listbox shows purely text, and we want to have listbox that showcases whole section - ideally, having possibility to show multiple text fields and icons/graphics. It should be able to somehow have those "puzzled" into the design, so each listbox design could be customised.

This is feature topic, but I will pass notes from #46 here as well, even though this needs rethinking (similarly to closed #59):

  • [ ] Listboxes should use only one type of visualisation, being mixed version of current one. It should take specific number of entries (settings-based), but if it overexceedes entries available, it should shorten to the max of entries available.

So, for example, settings give "10" as requested value. If list has 25 entries, it will have 3 pages - 1-10, 11-20, 21-25. It will scale itself automatically to fit 10 elements on the screen, and with last 21-25 it will just have half of the listbox empty. But, if list has 5 entries, there's no need to leave half of listbox empty. In this case, there can be adjusting making those entries bigger enough to fill whole listbox. This could be a thing to customise, if something, in settings, but making those two separate makes no sense, after my today's brainstorm. Both separate variants are limiting and too strict, and give little to no flexibility.