Add Wiki plugin
This has the side affect of making the click mask around the run orb correct in fixed mode
This commit is contained in:
@@ -1569,4 +1569,9 @@ public interface Client extends GameEngine
|
||||
int getRasterizer3D_clipMidY2();
|
||||
|
||||
void checkClickbox(Model model, int orientation, int pitchSin, int pitchCos, int yawSin, int yawCos, int x, int y, int z, long hash);
|
||||
|
||||
/**
|
||||
* Sets if a widget is in target mode
|
||||
*/
|
||||
void setSpellSelected(boolean selected);
|
||||
}
|
||||
|
||||
@@ -1172,7 +1172,7 @@ public final class SpriteID
|
||||
public static final int MINIMAP_ORB_XP_ACTIVATED = 1197;
|
||||
public static final int MINIMAP_ORB_XP_HOVERED = 1198;
|
||||
public static final int MINIMAP_ORB_XP_ACTIVATED_HOVERED = 1199;
|
||||
public static final int UNKNOWN_BLACK_BLOBS = 1200;
|
||||
public static final int MINIMAP_CLICK_MASK = 1200;
|
||||
public static final int OPTIONS_ZOOM_SLIDER_THUMB = 1201;
|
||||
public static final int EMOTE_SIT_UP = 1202;
|
||||
public static final int EMOTE_STAR_JUMP = 1203;
|
||||
|
||||
@@ -79,6 +79,7 @@ public interface Widget
|
||||
|
||||
/**
|
||||
* Gets the current click configuration of the widget.
|
||||
* @see WidgetConfig
|
||||
*
|
||||
* @see WidgetConfig
|
||||
*/
|
||||
@@ -551,6 +552,13 @@ public interface Widget
|
||||
*/
|
||||
void setOnMouseOverListener(Object... args);
|
||||
|
||||
/**
|
||||
* Sets a script to be ran every frame when the mouse is in the widget bounds
|
||||
*
|
||||
* @param args A ScriptID, then the args for the script
|
||||
*/
|
||||
void setOnMouseRepeatListener(Object... args);
|
||||
|
||||
/**
|
||||
* Sets a script to be ran when the mouse leaves the widget bounds
|
||||
*
|
||||
@@ -565,6 +573,20 @@ public interface Widget
|
||||
*/
|
||||
void setOnTimerListener(Object... args);
|
||||
|
||||
/**
|
||||
* Sets a script to be ran when the target mode has been activated for this widget
|
||||
*
|
||||
* @param args A ScriptID, then the args for the script
|
||||
*/
|
||||
void setOnTargetEnterListener(Object... args);
|
||||
|
||||
/**
|
||||
* Sets a script to be ran when the target mode has been deactivated for this widget
|
||||
*
|
||||
* @param args A ScriptID, then the args for the script
|
||||
*/
|
||||
void setOnTargetLeaveListener(Object... args);
|
||||
|
||||
/**
|
||||
* If this widget has any listeners on it
|
||||
*/
|
||||
@@ -769,4 +791,34 @@ public interface Widget
|
||||
* Sets if the rectangle is filled or just stroked
|
||||
*/
|
||||
void setFilled(boolean filled);
|
||||
|
||||
/**
|
||||
* Verb for spell targets
|
||||
*/
|
||||
String getTargetVerb();
|
||||
|
||||
/**
|
||||
* Verb for spell targets
|
||||
*/
|
||||
void setTargetVerb(String targetVerb);
|
||||
|
||||
/**
|
||||
* Can widgets under this widgets be clicked in this widgets bounding box
|
||||
*/
|
||||
boolean getNoClickThrough();
|
||||
|
||||
/**
|
||||
* Can widgets under this widgets be clicked in this widgets bounding box
|
||||
*/
|
||||
void setNoClickThrough(boolean noClickThrough);
|
||||
|
||||
/**
|
||||
* Can widgets under this widgets be scrolled in this widgets bounding box
|
||||
*/
|
||||
boolean getNoScrollThrough();
|
||||
|
||||
/**
|
||||
* Can widgets under this widgets be scrolled in this widgets bounding box
|
||||
*/
|
||||
void setNoScrollThrough(boolean noScrollThrough);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.widgets;
|
||||
|
||||
import net.runelite.api.MenuAction;
|
||||
|
||||
/**
|
||||
* Utility class used for defining options to be used on the click mask
|
||||
* of a {@link Widget}.
|
||||
@@ -36,12 +38,61 @@ public class WidgetConfig
|
||||
* Enables displaying a ninth option on a menu.
|
||||
*/
|
||||
public static final int SHOW_MENU_OPTION_NINE = 1 << 9;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a item on the floor
|
||||
*/
|
||||
public static final int USE_GROUND_ITEM = 1 << 11;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a NPC
|
||||
*/
|
||||
public static final int USE_NPC = 2 << 11;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a game object
|
||||
*/
|
||||
public static final int USE_OBJECT = 4 << 11;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a player
|
||||
*/
|
||||
public static final int USE_PLAYER = 8 << 11;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a item in your inventory
|
||||
*/
|
||||
public static final int USE_ITEM = 16 << 11;
|
||||
|
||||
/**
|
||||
* Can this widget be used on a widget with the WIDGET_USE_TARGET flag
|
||||
*/
|
||||
public static final int USE_WIDGET = 32 << 11;
|
||||
|
||||
/**
|
||||
* Controls whether or not a widget can have another dragged onto it.
|
||||
*/
|
||||
public static final int DRAG_ON = 1 << 17;
|
||||
|
||||
/**
|
||||
* Controls whether or not a widget can be dragged around.
|
||||
*/
|
||||
public static final int DRAG = 1 << 20;
|
||||
|
||||
/**
|
||||
* Can widgets with USE_WIDGET be used on this widget
|
||||
*/
|
||||
public static final int WIDGET_USE_TARGET = 1 << 21;
|
||||
|
||||
/**
|
||||
* Is the widget an (inventory?) item
|
||||
*/
|
||||
public static final int ITEM = 1 << 30;
|
||||
|
||||
/**
|
||||
* Add a USE option
|
||||
*
|
||||
* @see MenuAction#ITEM_USE
|
||||
*/
|
||||
public static final int ITEM_USE_OP = 1 << 31;
|
||||
}
|
||||
|
||||
@@ -125,6 +125,7 @@ public class WidgetID
|
||||
public static final int SKOTIZO_GROUP_ID = 308;
|
||||
public static final int ENTERING_HOUSE_GROUP_ID = 71;
|
||||
public static final int FULLSCREEN_MAP_GROUP_ID = 165;
|
||||
public static final int QUESTLIST_GROUP_ID = 399;
|
||||
|
||||
static class WorldMap
|
||||
{
|
||||
@@ -292,6 +293,7 @@ public class WidgetID
|
||||
static final int TOGGLE_RUN_ORB = 22; // Has the "Toggle run" name
|
||||
static final int RUN_ORB_TEXT = 23;
|
||||
static final int SPEC_ORB = 28;
|
||||
static final int WORLDMAP_ORB = 40;
|
||||
}
|
||||
|
||||
static class LoginClickToPlayScreen
|
||||
@@ -747,4 +749,11 @@ public class WidgetID
|
||||
{
|
||||
static final int ROOT = 25;
|
||||
}
|
||||
|
||||
static class QuestList
|
||||
{
|
||||
static final int FREE_CONTAINER = 9;
|
||||
static final int MEMBERS_CONTAINER = 10;
|
||||
static final int MINIQUEST_CONTAINER = 11;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,6 +159,7 @@ public enum WidgetInfo
|
||||
MINIMAP_RUN_ORB_TEXT(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.RUN_ORB_TEXT),
|
||||
MINIMAP_HEALTH_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.HEALTH_ORB),
|
||||
MINIMAP_SPEC_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.SPEC_ORB),
|
||||
MINIMAP_WORLDMAP_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
||||
|
||||
LOGIN_CLICK_TO_PLAY_SCREEN(WidgetID.LOGIN_CLICK_TO_PLAY_GROUP_ID, 0),
|
||||
LOGIN_CLICK_TO_PLAY_SCREEN_MESSAGE_OF_THE_DAY(WidgetID.LOGIN_CLICK_TO_PLAY_GROUP_ID, WidgetID.LoginClickToPlayScreen.MESSAGE_OF_THE_DAY),
|
||||
@@ -463,7 +464,11 @@ public enum WidgetInfo
|
||||
|
||||
SKOTIZO_CONTAINER(WidgetID.SKOTIZO_GROUP_ID, WidgetID.Skotizo.CONTAINER),
|
||||
|
||||
FULLSCREEN_MAP_ROOT(WidgetID.FULLSCREEN_MAP_GROUP_ID, WidgetID.FullScreenMap.ROOT);
|
||||
FULLSCREEN_MAP_ROOT(WidgetID.FULLSCREEN_MAP_GROUP_ID, WidgetID.FullScreenMap.ROOT),
|
||||
|
||||
QUESTLIST_FREE_CONTAINER(WidgetID.QUESTLIST_GROUP_ID, WidgetID.QuestList.FREE_CONTAINER),
|
||||
QUESTLIST_MEMBERS_CONTAINER(WidgetID.QUESTLIST_GROUP_ID, WidgetID.QuestList.MEMBERS_CONTAINER),
|
||||
QUESTLIST_MINIQUEST_CONTAINER(WidgetID.QUESTLIST_GROUP_ID, WidgetID.QuestList.MINIQUEST_CONTAINER);
|
||||
|
||||
private final int groupId;
|
||||
private final int childId;
|
||||
|
||||
Reference in New Issue
Block a user