Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Wed 14/04/2010 20:04:49

Title: RestoreGameDialog(); from Hotspot works but no color change for GUI
Post by: barefoot on Wed 14/04/2010 20:04:49
Hi

I have used


function hHotspot1_Interact()
{
 RestoreGameDialog();
}



To work from a text Hotspot Load Game at start option.

It works ok, except that although I have changed its GUI colours it still appears Grey...although changes are seen if loading from Top display GUI.

I note that the GUI name is gRestoreGame..

Any thoughts/help appreciated


barefoot






Title: Re: RestoreGameDialog(); from Hotspot works but no color change for GUI
Post by: Khris on Wed 14/04/2010 20:33:38
RestoreGameDialog() always opens the internal (grey) dialog.
To use your own, simply call
  gRestoreGame.Visible = true;
Title: Re: RestoreGameDialog(); from Hotspot works but no color change for GUI
Post by: barefoot on Wed 14/04/2010 20:51:40
Excellent..  works as i wanted it to..

something else ive learnt..

many thanks khris

barefoot