Hi all,
According to the manual :
It doesn't say anything specific about GUIs.
Yet, when I click on a GUI (it's "on" and "clickable"), then on_mouse_click is not called. When i click outside, it's called.
I don't understand why. As a workaround I call "IsButtonDown" in repeatedly_execute_always.
According to the manual :
Quoteon_mouse_click (MouseButton button)
Called when the player clicks a mouse button. BUTTON is either LEFT, RIGHT or MIDDLE, depending on which button was clicked. The "mouse.x" and "mouse.y" global variables contain the mouse's position.
It doesn't say anything specific about GUIs.
Yet, when I click on a GUI (it's "on" and "clickable"), then on_mouse_click is not called. When i click outside, it's called.
I don't understand why. As a workaround I call "IsButtonDown" in repeatedly_execute_always.