runelite-client: add basic attack indicator plugin

This commit is contained in:
honeyhoney
2017-11-13 18:27:00 -05:00
committed by Adam
parent fda56fb235
commit 2a406a0170
8 changed files with 463 additions and 1 deletions

View File

@@ -91,6 +91,21 @@ public enum Varbits
POISON(102, 0, 5),
VENOM(102, 6, 9),
/**
* Attack Style
*/
ATTACK_STYLE(43, 0, 7),
/**
* Equipped weapon type
*/
EQUIPPED_WEAPON_TYPE(357, 843, 0, 5),
/**
* Defensive casting mode
*/
DEFENSIVE_CASTING_MODE(2668, 439, 8, 8),
/**
* Options
*/

View File

@@ -46,6 +46,7 @@ class WidgetID
static final int DIALOG_NPC_GROUP_ID = 231;
static final int SLAYER_REWARDS_GROUP_ID = 426;
static final int PRIVATE_CHAT = 163;
static final int CHATBOX_GROUP_ID = 162;
static class SlayerRewards
{
@@ -137,6 +138,12 @@ class WidgetID
static final int RESIZABLE_VIEWPORT_BOTTOM_LINE = 12;
}
static class Chatbox
{
static final int CHATBOX_MESSAGES = 29;
static final int CHATBOX_BUTTONS = 1;
}
static class Prayer
{
static final int THICK_SKIN = 4;

View File

@@ -90,7 +90,11 @@ public enum WidgetInfo
PRIVATE_CHAT_MESSAGE(WidgetID.PRIVATE_CHAT, 0),
SLAYER_REWARDS_TOPBAR(WidgetID.SLAYER_REWARDS_GROUP_ID, WidgetID.SlayerRewards.TOP_BAR);
SLAYER_REWARDS_TOPBAR(WidgetID.SLAYER_REWARDS_GROUP_ID, WidgetID.SlayerRewards.TOP_BAR),
CHATBOX(WidgetID.CHATBOX_GROUP_ID, 0),
CHATBOX_MESSAGES(WidgetID.CHATBOX_GROUP_ID, WidgetID.Chatbox.CHATBOX_MESSAGES),
CHATBOX_BUTTONS(WidgetID.CHATBOX_GROUP_ID, WidgetID.Chatbox.CHATBOX_BUTTONS);
private final int groupId;