Closed ivan-mogilko closed 4 months ago
The refactor changes are good and the other changes appear alright too. Later, is it needed to include position for the OnClick GUI/Button events, created by the editor, too?
Later, is it needed to include position for the OnClick GUI/Button events, created by the editor, too?
I don't think so, the OnClick event are corresponding to the sole fact of control being interacted, not where (this corresponds to interaction events of characters and others).
We might need a separate event for mouse (or pointer device) being pressed down on a gui layer, or merge this in "on_mouse_click".
Resolves #2468
These changes are fully backwards compatible, as the engine was previously taught to skip trailing parameters if the script has declared these functions with less number of arguments.