Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Joseph DiPerla on Sun 02/11/2003 17:27:36

Title: A suggestion
Post by: Joseph DiPerla on Sun 02/11/2003 17:27:36
Hey Pumaman, been a while since I axed(I Know its spelled wrong) you for a feature.

I really needed a few simple features.

Two are GUI involved.

*Add an option for the GUI to slide in from a certain area to a certain point on screen.  EG: Slide in from right bottom coordinates of the screen to the top left coordinates of the screen. Maybe there could be a script command and an option in the GUI editor.

*I needed a way to make a button invisible in the GUI after a certain amount of time. So I was hoping you could modify a bit "SetButtonPic" to do the following: Maybe you can add a 0 WHICH Parameter  for null and for SLOT, if you put -1, it would make the button disappear and it wont be even clickable. If you put -2, it would still keep the last image it had, but it would just disable it. Sort of how VB works.

Just those two suggestions would do.

JD
Title: Re:A suggestion
Post by: Scummbuddy on Sun 02/11/2003 18:46:51
any chance of making the first one an object, and animating it onto the screen, and then taking it away, leaving the real button underneath?  or would you need still your second suggestion to finish that part?
Title: Re:A suggestion
Post by: Pumaman on Sun 02/11/2003 20:02:54
Quote*Add an option for the GUI to slide in from a certain area to a certain point on screen.

You can do this via the script with SetGUIPosition, I can't really justify adding it as a specific editor feature.

Quote*I needed a way to make a button invisible in the GUI after a certain amount of time.

You could use SetButtonPic to set it to a transparent sprite, or SetGUIObjectPosition to move it out of the visible area of the GUI.
Title: Re:A suggestion
Post by: Gregjazz on Sun 02/11/2003 21:18:53
Yeah -- I did that "sliding GUI" thing in Apprentice. Check it out. All you have to do it use the SetGUIPosition function.
Title: Re:A suggestion
Post by: Joseph DiPerla on Mon 03/11/2003 03:32:06
OK, I will check out apprentice. By any chance, could you show me a bit of the code you used to make it slide?

JD
Title: Re:A suggestion
Post by: Gilbert on Mon 03/11/2003 03:49:34
There's also a sliding GUI in Songo. Just do it via something like:


SetGUIPosition(5, 0, 199);
GUIOn(5);
int y=200;
while (y>180){
y--;
SetGUIPosition(5, 0, y);
Wait(1);}

to slide an GUI from the bottom say for example, just simple as that.
Title: Re:A suggestion
Post by: Ishmael on Mon 03/11/2003 05:44:30
There's one in The McReed Case aswell... actually there are two! And a load of script needed...
Title: Re:A suggestion
Post by: Joseph DiPerla on Mon 03/11/2003 19:49:00
OK thanks I will try that code.