Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: WackyWildCard on Tue 24/10/2006 02:16:39

Title: Newbie Question About Sierra-Style GUI Design/Importing
Post by: WackyWildCard on Tue 24/10/2006 02:16:39
 ???

Could somebody help me with my GUI design please? It is in regards to a new game I'm designing: Knight's Quest: Shield Search.

My Game Icon GUI looks great, as you might see in the Game Development thread, but it is missing something.

You know the Icon bar on the top of most Sierra-Style Games? Well I need help with making an Icon that will link to a Sound, Game Speed, Brightness, Save, Load, Quit - etc...for my game. Could somebody please give me a step by step instruction for designing that function? Or perhaps even a thread or link where I could find a downloadable GUI that would serve that purpose? Perhaps a Larry Vales or King's Quest GUI?

Thanks.
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: R4L on Tue 24/10/2006 02:24:04
Just make another GUI, with all the options on it, and on the other GUI, the one w/ the button, just add some code for the button, something like this:

if (button == BUTTON#){
gIconGUI.Visible = false;
gOptionsGUI.Visible = true;
}

BUTTON# meaning the actual button number of the GUI object.
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: gypsysnail on Tue 24/10/2006 02:47:08
I had been wondering about this part too - being new to this, I would like to know if this
Quoteif (button == BUTTON#){
gIconGUI.Visible = false;
gOptionsGUI.Visible = true;
}

BUTTON# meaning the actual button number of the GUI object.

includes the functions to make each part inside that GUI button work. If I have posted this in this thread, sorry about that - not sure if I should create a new thread on this or stay in this one but don't yell please if I have added this question in this thread. I just wonder how to make the save quit speed etc etc functions work within that button? Yes I know I have to design the box of those things, pull up and down handles (like levers lol). Just wondering. Good question by the way WackyWildCard! Look forward to your game coming out :).
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: Theeph on Tue 24/10/2006 02:56:46
That's just the code to get the button to open up another gui.

To get those functions to work you'll have to make them yourself.

Never tried it for the brightness and sound, but it wouldn't be that hard... ah yes, thank you help file:

slider.Max = (whatever your max volume/brightness is);
slider.Min = 0;

then the onClick for the exit gui button should have something like:

SetMusicMasterVolume(slider.Value);

or

SetAmbientTint(0,0,0,0,slider.Value);
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: gypsysnail on Tue 24/10/2006 03:04:24
Thankies Theeph!! :):) I'll try this at the weekend when work ends for the week once again ahhhhhh looking fwd to that! I am going to ask another question but in a new thread because it doesnt relate to this thread's topic.
Cheers
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: R4L on Tue 24/10/2006 11:47:16
I was just pointing Wacky towards the right direction. Maybe a module should be made for quick imported options.
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: Theeph on Tue 24/10/2006 12:58:12
Quote from: R4L on Tue 24/10/2006 11:47:16
I was just pointing Wacky towards the right direction. Maybe a module should be made for quick imported options.

Didn't mean to imply otherwise R4L. Module idea is a great one too. Somebody should look into that... I'm gonna start. :)
Title: Re: Newbie Question About Sierra-Style GUI Design/Importing
Post by: WackyWildCard on Tue 24/10/2006 17:41:53
 ;D

Thanks guys, for all the help!
This info will assist me in my Game Project.

It would be cool also to have a GUI Module as well! ;D