[SOLVED] mouse clicks intercepted... by what?

Started by Monsieur OUXX, Sun 02/03/2014 19:19:59

Previous topic - Next topic

Monsieur OUXX

I have this gui. It's "normal, initially on" (not modal). Inside of it there's a listbox.
When I click on the listbox, the selection doesn't change.

Since I have a shitload of scripts managing gui events, I fail to see what could be "intecepting" the clicks:
- i don't have an on_event
- I don't have a function bound to "on selection change", but by AGS design the graphical gui should still react to the click by changing the selection
- the game is paused, but I've tested AGS' behaviour and it normally doesn't prevent listboxes from reacting to clicks.
- there is no other gui on top of it
- I test mouse.IsButtonDown in repeatedly_execute_always for other reasons, but I doubt that would "consume" the click?


PS (unrelated) : ProcessClick is only for simulating a click in a game scene, not on a gui, right?
 

Khris

Yes, ProcessClick() goes straight to the scene, ignoring GUIs.

What do you get when you check GUI.GetAtScreenXY and GUIControl.GetAtScreenXY?

Monsieur OUXX

Quote from: Khris on Sun 02/03/2014 19:27:15
What do you get when you check GUI.GetAtScreenXY and GUIControl.GetAtScreenXY?
Those are correct.

But I just found the cause: there was a "DisableInterface" hidden somewhere ;)
Thanks for helping though.
 

SMF spam blocked by CleanTalk