runelite-api: add various widget accessors
This commit is contained in:
@@ -1156,6 +1156,20 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
String[] getStringStack();
|
String[] getStringStack();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the cs2 vm's active widget
|
||||||
|
*
|
||||||
|
* This is used for all {@code cc_*} operations with a {@code 0} operand
|
||||||
|
*/
|
||||||
|
Widget getScriptActiveWidget();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the cs2 vm's "dot" widget
|
||||||
|
*
|
||||||
|
* This is used for all {@code .cc_*} operations with a {@code 1} operand
|
||||||
|
*/
|
||||||
|
Widget getScriptDotWidget();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether a player is on the friends list.
|
* Checks whether a player is on the friends list.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -972,4 +972,35 @@ public interface Widget
|
|||||||
* @param args A ScriptID, then the args for the script
|
* @param args A ScriptID, then the args for the script
|
||||||
*/
|
*/
|
||||||
void setOnReleaseListener(Object ...args);
|
void setOnReleaseListener(Object ...args);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a script to be ran when a drag operation is finished on this widget
|
||||||
|
*
|
||||||
|
* @param args A ScriptID, then the args for the script
|
||||||
|
*/
|
||||||
|
void setOnDragCompleteListener(Object ...args);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a script to be ran when this widget moves due to a drag
|
||||||
|
*
|
||||||
|
* @param args A ScriptID, then the args for the script
|
||||||
|
*/
|
||||||
|
void setOnDragListener(Object ...args);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Container this can be dragged in
|
||||||
|
*/
|
||||||
|
Widget getDragParent();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Container this can be dragged in
|
||||||
|
*/
|
||||||
|
void setDragParent(Widget dragParent);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets a script to be ran when a varplayer changes
|
||||||
|
*
|
||||||
|
* @param args A ScriptID, then the args for the script
|
||||||
|
*/
|
||||||
|
void setOnVarTransmitListener(Object ...args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user