Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rui 'Trovatore' Pires on Mon 08/08/2005 07:45:29

Title: Suggestion - ListBox.AddItemAt
Post by: Rui 'Trovatore' Pires on Mon 08/08/2005 07:45:29
Again, this is not something I need RIGHT AWAY. However, finding that this did not exist has, in the past, stopped me and forced me to do some redesigning which didn't really work as I would have liked.

How feasible would it be to allow us to optionally add items to a listbox in a certain index number, instead of automatically appending it to the end of the list? One use that keeps popping up in my mind for this is for making a save/load GUI that behaves like the default one, but which allows more than 20 gameslots - you know, we overwrite a saved game and that one gets moved to the top. I know dreamwaver (I hope I got the name right)'s Black Cauldron Remake did just that, and with the source code to boot, but I found it a bit too daunting for me, and I thought that were this my suggestion possible, it would make it a lot easier anyway.
Title: Re: Suggestion - ListBox.AddItemAt
Post by: Pumaman on Mon 08/08/2005 22:05:54
Sounds reasonable to me -- it follows that if you can RemoveItem then you should be able to InsertItem.

Edit by strazer:

Tracker'd: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=534