Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mordalles on Mon 27/11/2006 12:33:56

Title: 2.72 saving changes
Post by: Mordalles on Mon 27/11/2006 12:33:56
i'm now triying to use version 2.72, and was just wondering what command i have to use instead of the following:

savebox.GetItemText(int, string); //
SaveDescription.SetText(string);
SaveDescription.GetText

savedescription is that little box where you type in the name of the save game, and savebox is the box with list of all your savegames. both on the savegui.
sorry if this is a stupid question.
Title: Re: 2.72 saving changes
Post by: Ashen on Mon 27/11/2006 12:38:48
You can still look up the old commands in the manual, and it should redirect you to the new versions. In this case ListBox.Items (http://www.adventuregamestudio.co.uk/manual/ListBox.Items.htm) for savebox, and TextBox.Text (http://www.adventuregamestudio.co.uk/manual/TextBox.Text.htm) for SaveDesciprtion - looking up any of theose 'Formerly known as ..., which is now obsolete' commands in the off-line version (ags-help.chm) will bring you to the right page.
Title: Re: 2.72 saving changes
Post by: Mordalles on Mon 27/11/2006 13:14:35
thanks, ashen. i searched for "getitemtext" and didn't find anything.  ;D
Title: Re: 2.72 saving changes
Post by: Ashen on Mon 27/11/2006 13:22:24
It's under ListBox.GetItemText, since it needs the Control pointer (savebox) to run properly. You can also use the 'Search' tab, which should give you the right secion, if not the exact command. (The search term will be highlighted when you scroll down the page.)