Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Alarconte on Tue 20/05/2008 00:41:35

Title: Problem: Use GUI for dialog options (SOLVED)
Post by: Alarconte on Tue 20/05/2008 00:41:35
Well, Testing in my nearly finished game, I tried to use a GUI for dialog options, and then I found that I have no idea or how to make working a GUI for dialog options, but WORST than that, I can fix the game to his anterior state; If I Put 0 in "use gui for dialog options", The dialog options don't works as before.

I was been searching in the forum and the help file and founds nothing about what to make this propierty to work (or go back to the state without GUI for dialog options).

What type of GUI is, GUI, or Text Window GUI? In the any of the two cases, How I have to configure it?

Always Don't work for me no more, Showing graphic errors but not the dialog options.

I need to fix this to continue major part of my work, please, give me a little help.

Thanks
Title: Re: Problem: Use GUI for dialog options
Post by: TwinMoon on Tue 20/05/2008 00:56:23
It's just a normal gui, not a text window gui. You'll have to set the visibility to popup modal.

What happens is that the dialog options will be displayed on top of it.
Benefits are:
- you can put the gui anywhere you like, so dialogs won't just be displayed at the bottom of the screen.
- you can use a background with it.

Be sure to make it large enough for the dialog to fit.
Title: Re: Problem: Use GUI for dialog options
Post by: Alarconte on Tue 20/05/2008 01:42:31
I prove to do it but the dialogs don't shows. (And the background image are large as the width of the screen. Is for that I'm Seeking help; I can't make this work.

Sure there isn't anything you forgot to the GUI configuration?

EDIT: The reason I can see the dialogs (or the GUI) I think is the background image of the normal message gui over the dialog options gui.

How I can fix this?
Title: Re: Problem: Use GUI for dialog options
Post by: Alarconte on Tue 20/05/2008 17:24:27
Please, I need to fix this error ('Cause is an AGS error), I need to implement the Gui for dialog options cause don't let to me disable the option one time I used (I can't turn to put 0).

Anybody can help me?
Title: Re: Problem: Use GUI for dialog options
Post by: TwinMoon on Tue 20/05/2008 17:47:36
In the properties tab there's z-order. Make sure the z-order of the Dialog GUI is lower than that of the normal gui.
Dialog gui z-order should be 0, normal gui z-order should be 1.

In the dialog GUI you can change the width by changing the WIDTH property. According to your post, it's now set to 320 or 640, make the number smaller.
(You might also want to change the LEFT property from 0 to something higher to center the GUI.)

Does that help?
Title: Re: Problem: Use GUI for dialog options
Post by: Alarconte on Tue 20/05/2008 18:31:47
BAH. xD

As normally, I'm sometimes crazy idiot xD I has a wrong sprite number in "dialog bullet sprite" and don't know how ocuppes all the window and that was that don't let see the dialog options Y_Y

I needed to do a lot of changes in GUIs to realise xD sorry :P
Title: Re: Problem: Use GUI for dialog options (SOLVED)
Post by: TwinMoon on Tue 20/05/2008 18:55:14
Most of the times it's just something small like this :)

Glad it's sorted.