Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Pogwizd on Sun 28/07/2019 18:38:56

Title: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Pogwizd on Sun 28/07/2019 18:38:56
I have a question regarding custom GUIs set as default dialogue GUI (in General Settings).

I've created one and set it as a default dialogue GUI, but when I trigger a dialogue only the GUI's background is displayed as the dialogue box with the dialogue options. What I mean is that other elements of the GUI, like buttons or labels, are ignored and not displayed at all. Am I doing something wrong or the only thing this setting does is showing the background of the GUI?
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Khris on Sun 28/07/2019 19:26:47
You're not supposed to put controls on a dialog GUI. Just use multiple GUIs instead.
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Pogwizd on Tue 30/07/2019 19:50:10
First of all, thank you for a quick response.

I am sorry to be a pain but I have tried doing what you've suggested but I couldn't make it work the way I wanted. I set up one gui as a main dialogue gui and the other to be displayed when dialogue options are shown (didn't really know when to make it displayed, so I did it in the dialog_options_get_dimensions function). But because the dialogue, as far as I understand, is a blocking script my gui with a button is not clickable during a dialogue. Is there a way to make my GUI with a button active when the dialogue GUI is on?
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Khris on Tue 30/07/2019 20:10:25
What is the button supposed to do? Please explain the big picture, because you might be stuck on an unsuitable approach right now.
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Pogwizd on Tue 30/07/2019 21:23:41
I've been trying to find a way to redraw/update the currently displayed dialogue options (when a dialogue is on) triggered by a button on a GUI. Basically, what I'm after is a "simple" dialogue scrolling function.
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Khris on Tue 30/07/2019 22:01:37
Just use this: https://www.adventuregamestudio.co.uk/forums/index.php?topic=27930.0
Title: Re: GUI set as a default dialogue GUI - buttons and labels not showing up
Post by: Pogwizd on Thu 01/08/2019 14:16:01
Thank you Khris, that's what I'm going to do.