api: add arguments and mousey to scriptevent

This commit is contained in:
Adam
2021-12-28 12:19:41 -05:00
parent 637ee563d6
commit 98279d4cfd

View File

@@ -53,6 +53,12 @@ public interface ScriptEvent
*/ */
ScriptEvent setSource(Widget widget); ScriptEvent setSource(Widget widget);
/**
* Arguments passed to the script. Index 0 is the script being run and is not an argument.
* @return
*/
Object[] getArguments();
/** /**
* Gets the menu index of the event * Gets the menu index of the event
* *
@@ -73,6 +79,11 @@ public interface ScriptEvent
*/ */
int getMouseX(); int getMouseX();
/**
* Parent relative y coordinate for mouse related events
*/
int getMouseY();
/** /**
* Jagex typed keycode * Jagex typed keycode
* *