Hide ground items when interface is open (#160)
* Add viewport WidgetInfo * Add side panels varbit * Change ground items plugin to only display within viewport * Change viewport ids to main interface viewport * Hide ground items when viewport interfaces are open * Change fixed viewport widget id
This commit is contained in:
@@ -83,7 +83,12 @@ public enum Varbits
|
||||
* Venom - 1,000,000 (6dmg/hit) - 1,000,008 (20 dmg/hit)
|
||||
*/
|
||||
POISON(102, 0, 5),
|
||||
VENOM(102, 6, 9);
|
||||
VENOM(102, 6, 9),
|
||||
|
||||
/**
|
||||
* Options
|
||||
*/
|
||||
SIDE_PANELS(4607, 1055, 8, 8);
|
||||
|
||||
/**
|
||||
* varbit id
|
||||
|
||||
@@ -34,6 +34,9 @@ class WidgetID
|
||||
static final int MINIMAP_GROUP_ID = 160;
|
||||
static final int LOGIN_CLICK_TO_PLAY_GROUP_ID = 378;
|
||||
static final int CLUE_SCROLL_GROUP_ID = 203;
|
||||
static final int FIXED_VIEWPORT_GROUP_ID = 548;
|
||||
static final int RESIZABLE_VIEWPORT_OLD_SCHOOL_BOX_GROUP_ID = 161;
|
||||
static final int RESIZABLE_VIEWPORT_BOTTOM_LINE_GROUP_ID = 164;
|
||||
|
||||
static class PestControl
|
||||
{
|
||||
@@ -92,4 +95,11 @@ class WidgetID
|
||||
{
|
||||
static final int XP_ORB = 1;
|
||||
}
|
||||
|
||||
static class Viewport
|
||||
{
|
||||
static final int FIXED_VIEWPORT = 20;
|
||||
static final int RESIZABLE_VIEWPORT_OLD_SCHOOL_BOX = 12;
|
||||
static final int RESIZABLE_VIEWPORT_BOTTOM_LINE = 12;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,11 @@ public enum WidgetInfo
|
||||
|
||||
MINIMAP_XP_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.XP_ORB),
|
||||
|
||||
LOGIN_CLICK_TO_PLAY_SCREEN(WidgetID.LOGIN_CLICK_TO_PLAY_GROUP_ID, 0);
|
||||
LOGIN_CLICK_TO_PLAY_SCREEN(WidgetID.LOGIN_CLICK_TO_PLAY_GROUP_ID, 0),
|
||||
|
||||
FIXED_VIEWPORT(WidgetID.FIXED_VIEWPORT_GROUP_ID, WidgetID.Viewport.FIXED_VIEWPORT),
|
||||
RESIZABLE_VIEWPORT_OLD_SCHOOL_BOX(WidgetID.RESIZABLE_VIEWPORT_OLD_SCHOOL_BOX_GROUP_ID, WidgetID.Viewport.RESIZABLE_VIEWPORT_OLD_SCHOOL_BOX),
|
||||
RESIZABLE_VIEWPORT_BOTTOM_LINE(WidgetID.RESIZABLE_VIEWPORT_BOTTOM_LINE_GROUP_ID, WidgetID.Viewport.RESIZABLE_VIEWPORT_BOTTOM_LINE);
|
||||
|
||||
|
||||
private final int groupId;
|
||||
|
||||
Reference in New Issue
Block a user