Since I have separate guis for Save & Load (or restore) can I do something like this for the restore button? I think it makes more sense to see a screenshot of the save you want to restore. This seems to be working but I had to comment out the first line because there is no txtNewRestoreName.Text like there is for the save. Is it ok to leave this out?
Code: ags
function lstRestoreGamesList_OnSelectionChanged(GUIControl *control)
{
// txtNewRestoreName.Text = lstRestoreGamesList.Items[lstRestoreGamesList.SelectedIndex];
int slot = lstRestoreGamesList.SaveGameSlots[lstRestoreGamesList.SelectedIndex];
buttonSprite = DynamicSprite.CreateFromSaveGame(slot, btnScrshotR.Width, btnScrshotR.Height);
if (buttonSprite != null) {
btnScrshotR.NormalGraphic = buttonSprite.Graphic; }
}