Hotspot Gui Text Overlaying a Speech Gui

Started by Ghostlady, Sat 05/07/2025 21:25:46

Previous topic - Next topic

Ghostlady

I am seeing Hotspot Text sitting on top of a Speech Gui.  If I move the mouse off of the hotspot, it goes away.  How do I stop this from happening?

My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

eri0o

You can change the ZOrder of one so that you can have the order you want.

Ghostlady

Currently, the speech gui is sitting at 6 and the overlayhotspot gui is sitting at 9. But both are showing at the same time.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

eri0o

Visibility is controlled by the Visible property.

The order on screen is controlled by ZOrder - like a "Z axis". The biggest ZOrder puts the thing in front and the next big one behind this one and so on until the lowest value ZOrder on the GUI layer gets drawn.

Ghostlady

I made the speech gui a higher number and that worked.  I was thinking it worked in the reverse order. Thank you very much for your help.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

Crimson Wizard

#5
I don't know how your speech is done (and I cannot see your screenshot, it does not load for me for some reason).
But if yours is a normal blocking speech, then I believe that the common approach is to set hotspot label as not visible when the blocking action is performed.

In a most primitive way this may be done like:
Code: ags
function repeatedly_execute_always()
{
    gHotspotDescription.Visible = IsInterfaceEnabled();
}

EDIT: There's a global settings that hides GUI when the interface is disabled, but unfortunately there is no per-GUI setting like that, so it has to be done in script...

SMF spam blocked by CleanTalk