Merge remote-tracking branch 'runelite/master' into upstreamememememe
This commit is contained in:
@@ -97,12 +97,14 @@ public class ChatFilterPlugin extends Plugin
|
||||
{
|
||||
updateConfig();
|
||||
updateFilteredPatterns();
|
||||
client.refreshChat();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void shutDown() throws Exception
|
||||
{
|
||||
filteredPatterns.clear();
|
||||
client.refreshChat();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -255,6 +257,9 @@ public class ChatFilterPlugin extends Plugin
|
||||
|
||||
updateConfig();
|
||||
updateFilteredPatterns();
|
||||
|
||||
//Refresh chat after config change to reflect current rules
|
||||
client.refreshChat();
|
||||
}
|
||||
|
||||
private void updateConfig()
|
||||
|
||||
@@ -107,10 +107,11 @@ class PrayerBarOverlay extends Overlay
|
||||
final double t = plugin.getTickProgress();
|
||||
final int halfBarWidth = (barWidth / 2) - HD_PRAYER_BAR_PADDING;
|
||||
|
||||
final int xOffset = (int) (-Math.cos(t) * halfBarWidth) + ((barWidth / 2) - halfBarWidth);
|
||||
final int xOffset = (int) (-Math.cos(t) * halfBarWidth) + halfBarWidth;
|
||||
|
||||
graphics.setColor(FLICK_HELP_COLOR);
|
||||
graphics.fillRect(barX + xOffset + HD_PRAYER_BAR_PADDING, barY + HD_PRAYER_BAR_PADDING, 1, barHeight - HD_PRAYER_BAR_PADDING * 2);
|
||||
// Padding is accounted for in the offset calculation
|
||||
graphics.fillRect(barX + xOffset, barY + HD_PRAYER_BAR_PADDING, 1, barHeight - HD_PRAYER_BAR_PADDING * 2);
|
||||
}
|
||||
|
||||
return new Dimension(barWidth, barHeight);
|
||||
|
||||
@@ -43,6 +43,8 @@ import static net.runelite.api.widgets.WidgetID.GUIDE_PRICES_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.SEED_VAULT_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.SHOP_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetInfo.BANK_CONTENT_CONTAINER;
|
||||
import static net.runelite.api.widgets.WidgetInfo.BANK_TAB_CONTAINER;
|
||||
import static net.runelite.api.widgets.WidgetInfo.TO_GROUP;
|
||||
import net.runelite.api.widgets.WidgetItem;
|
||||
|
||||
@@ -73,8 +75,10 @@ public abstract class WidgetItemOverlay extends Overlay
|
||||
Widget widget = widgetItem.getWidget();
|
||||
int interfaceGroup = TO_GROUP(widget.getId());
|
||||
|
||||
// Don't draw if this widget isn't one of the allowed
|
||||
if (!interfaceGroups.contains(interfaceGroup))
|
||||
// Don't draw if this widget isn't one of the allowed nor in tag tab/item tab
|
||||
if (!interfaceGroups.contains(interfaceGroup) ||
|
||||
(interfaceGroup == BANK_GROUP_ID
|
||||
&& (widget.getParentId() == BANK_CONTENT_CONTAINER.getId() || widget.getParentId() == BANK_TAB_CONTAINER.getId())))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user