runelite-api: Add setAllWidgetsAreOpTargetable

This commit is contained in:
Max Weber
2019-08-27 13:32:46 -06:00
parent d066ca97a3
commit 34c685a82d
2 changed files with 16 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ import net.runelite.api.hooks.Callbacks;
import net.runelite.api.hooks.DrawCallbacks;
import net.runelite.api.vars.AccountType;
import net.runelite.api.widgets.Widget;
import net.runelite.api.widgets.WidgetConfig;
import net.runelite.api.widgets.WidgetInfo;
import org.slf4j.Logger;
@@ -1635,6 +1636,11 @@ public interface Client extends GameEngine
*/
int getIf1DraggedItemIndex();
/**
* Is a widget is in target mode?
*/
boolean getSpellSelected();
/**
* 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
*/
int getItemCount();
/**
* Makes all widgets behave as if they are {@link WidgetConfig#WIDGET_USE_TARGET}
*/
void setAllWidgetsAreOpTargetable(boolean value);
}

View File

@@ -230,6 +230,11 @@ public enum MenuAction
*/
WIDGET_DEFAULT(57),
/**
* Casting a spell / op target on a widget
*/
SPELL_CAST_ON_WIDGET(58),
/**
* Menu action triggered by examining an object.
*/