Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ListBox updated APIs #266

Open
ericoporto opened this issue Nov 21, 2024 · 0 comments
Open

Document ListBox updated APIs #266

ericoporto opened this issue Nov 21, 2024 · 0 comments

Comments

@ericoporto
Copy link
Member

https://github.com/adventuregamestudio/ags-manual/wiki/ListBox

  • In ListBox.FillDirList, the fileSortStyle and sortDirection parameters were added
  • In ListBox.FillSaveGameList, the min_slot and max_slot parameters were adeed

From changelog in the forums

  • Added FileSortStyle and SortDirection enum, and optional "fileSortStyle" and "sortDirection" parameters to ListBox.FillDirList(). This lets to sort resulting list by name or time, in ascending or descending order.
  • ListBox.FillSaveGameList(), RestoreGameDialog() and SaveGameDialog() now let define a range of save slots for display.
	/// Fills the list box with all the filenames that match the specified file mask.
	import void FillDirList(const string fileMask, FileSortStyle fileSortStyle = eFileSort_Name, SortDirection sortDirection = eSortAscending);
	/// Fills the list box with the current user's saved games in the given range of slots.
	import int  FillSaveGameList(int min_slot = 1, int max_slot = 100);

Added in PR adventuregamestudio/ags#2541

@ericoporto ericoporto added this to the AGS 3.6.2 milestone Nov 21, 2024
@ericoporto ericoporto mentioned this issue Nov 21, 2024
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant