runelite-api: Add setAllWidgetsAreOpTargetable
This commit is contained in:
@@ -38,6 +38,7 @@ import net.runelite.api.hooks.Callbacks;
|
|||||||
import net.runelite.api.hooks.DrawCallbacks;
|
import net.runelite.api.hooks.DrawCallbacks;
|
||||||
import net.runelite.api.vars.AccountType;
|
import net.runelite.api.vars.AccountType;
|
||||||
import net.runelite.api.widgets.Widget;
|
import net.runelite.api.widgets.Widget;
|
||||||
|
import net.runelite.api.widgets.WidgetConfig;
|
||||||
import net.runelite.api.widgets.WidgetInfo;
|
import net.runelite.api.widgets.WidgetInfo;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
@@ -1635,6 +1636,11 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
int getIf1DraggedItemIndex();
|
int getIf1DraggedItemIndex();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is a widget is in target mode?
|
||||||
|
*/
|
||||||
|
boolean getSpellSelected();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets if a widget is in target mode
|
* Sets if a widget is in target mode
|
||||||
*/
|
*/
|
||||||
@@ -1660,4 +1666,9 @@ public interface Client extends GameEngine
|
|||||||
* Returns the max item index + 1 from cache
|
* Returns the max item index + 1 from cache
|
||||||
*/
|
*/
|
||||||
int getItemCount();
|
int getItemCount();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Makes all widgets behave as if they are {@link WidgetConfig#WIDGET_USE_TARGET}
|
||||||
|
*/
|
||||||
|
void setAllWidgetsAreOpTargetable(boolean value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,6 +230,11 @@ public enum MenuAction
|
|||||||
*/
|
*/
|
||||||
WIDGET_DEFAULT(57),
|
WIDGET_DEFAULT(57),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Casting a spell / op target on a widget
|
||||||
|
*/
|
||||||
|
SPELL_CAST_ON_WIDGET(58),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Menu action triggered by examining an object.
|
* Menu action triggered by examining an object.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user