Merge remote-tracking branch 'runelite/master'
This commit is contained in:
@@ -102,7 +102,7 @@ public class ClientThread implements Executor
|
||||
{
|
||||
assert client.isClientThread();
|
||||
Iterator<BooleanSupplier> ir = invokes.iterator();
|
||||
for (; ir.hasNext(); )
|
||||
while (ir.hasNext())
|
||||
{
|
||||
BooleanSupplier r = ir.next();
|
||||
boolean remove = true;
|
||||
|
||||
@@ -49,6 +49,7 @@ public class ModifierlessKeybind extends Keybind
|
||||
* KeyReleased event this returns if the event is this hotkey being
|
||||
* released
|
||||
*/
|
||||
@Override
|
||||
public boolean matches(KeyEvent e)
|
||||
{
|
||||
return matches(e, true);
|
||||
|
||||
@@ -283,11 +283,11 @@ public class ItemManager
|
||||
* */
|
||||
public int getItemPrice(int itemID, boolean ignoreUntradeableMap)
|
||||
{
|
||||
if (itemID == ItemID.COINS_995)
|
||||
if (itemID == COINS_995)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (itemID == ItemID.PLATINUM_TOKEN)
|
||||
if (itemID == PLATINUM_TOKEN)
|
||||
{
|
||||
return 1000;
|
||||
}
|
||||
@@ -527,7 +527,7 @@ public class ItemManager
|
||||
*/
|
||||
private BufferedImage loadItemOutline(final int itemId, final int itemQuantity, final Color outlineColor)
|
||||
{
|
||||
final Sprite itemSprite = client.createItemSprite(itemId, itemQuantity, 1, 0, 0, false, Constants.CLIENT_DEFAULT_ZOOM);
|
||||
final Sprite itemSprite = client.createItemSprite(itemId, itemQuantity, 1, 0, 0, false, CLIENT_DEFAULT_ZOOM);
|
||||
return itemSprite.toBufferedOutline(outlineColor);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ public class SkillIconManager
|
||||
public BufferedImage getSkillImage(Skill skill, boolean small)
|
||||
{
|
||||
int skillIdx = skill.ordinal() + (small ? Skill.values().length : 0);
|
||||
BufferedImage skillImage;
|
||||
|
||||
if (imgCache[skillIdx] != null)
|
||||
{
|
||||
@@ -50,7 +49,7 @@ public class SkillIconManager
|
||||
String skillIconPath = (small ? "/skill_icons_small/" : "/skill_icons/")
|
||||
+ skill.getName().toLowerCase() + ".png";
|
||||
log.debug("Loading skill icon from {}", skillIconPath);
|
||||
skillImage = ImageUtil.getResourceStreamFromClass(getClass(), skillIconPath);
|
||||
BufferedImage skillImage = ImageUtil.getResourceStreamFromClass(getClass(), skillIconPath);
|
||||
imgCache[skillIdx] = skillImage;
|
||||
|
||||
return skillImage;
|
||||
|
||||
@@ -47,6 +47,7 @@ import net.runelite.api.widgets.WidgetTextAlignment;
|
||||
import net.runelite.api.widgets.WidgetType;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import net.runelite.client.ui.JagexColors;
|
||||
|
||||
@Singleton
|
||||
public class ChatboxItemSearch extends ChatboxTextInput
|
||||
@@ -141,7 +142,7 @@ public class ChatboxItemSearch extends ChatboxTextInput
|
||||
item.setOriginalY(y + FONT_SIZE * 2);
|
||||
item.setOriginalHeight(ICON_HEIGHT);
|
||||
item.setOriginalWidth(ICON_WIDTH);
|
||||
item.setName("<col=ff9040>" + itemDefinition.getName());
|
||||
item.setName(JagexColors.MENU_TARGET_TAG + itemDefinition.getName());
|
||||
item.setItemId(itemDefinition.getId());
|
||||
item.setItemQuantity(10000);
|
||||
item.setItemQuantityMode(ItemQuantityMode.NEVER);
|
||||
|
||||
@@ -48,7 +48,7 @@ class ClientConfigLoader
|
||||
|
||||
final RSConfig config = new RSConfig();
|
||||
|
||||
try (final Response response = okHttpClient.newCall(request).execute())
|
||||
try (Response response = okHttpClient.newCall(request).execute())
|
||||
{
|
||||
if (!response.isSuccessful())
|
||||
{
|
||||
|
||||
@@ -54,7 +54,8 @@ public class JagexColors
|
||||
/*
|
||||
* Colors relating to right-click menus.
|
||||
*/
|
||||
public static final Color MENU_TARGET = new Color(255, 144, 64);
|
||||
public static final Color MENU_TARGET = new Color(0xFF9040);
|
||||
public static final String MENU_TARGET_TAG = "<col=ff9040>";
|
||||
|
||||
/*
|
||||
* Colors relating to tooltips.
|
||||
|
||||
@@ -72,7 +72,6 @@ public class MaterialTab extends JLabel
|
||||
{
|
||||
super(string);
|
||||
|
||||
/* The tab's containing group */
|
||||
this.content = content;
|
||||
|
||||
if (selected)
|
||||
|
||||
@@ -34,7 +34,20 @@ import java.util.Set;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Setter;
|
||||
import net.runelite.api.widgets.Widget;
|
||||
import static net.runelite.api.widgets.WidgetID.*;
|
||||
import static net.runelite.api.widgets.WidgetID.BANK_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.BANK_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.DEPOSIT_BOX_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.EQUIPMENT_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.EQUIPMENT_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.GRAND_EXCHANGE_INVENTORY_GROUP_ID;
|
||||
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.WidgetID.DUEL_INVENTORY_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.DUEL_INVENTORY_OTHER_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.PLAYER_TRADE_SCREEN_GROUP_ID;
|
||||
import static net.runelite.api.widgets.WidgetID.PLAYER_TRADE_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;
|
||||
@@ -129,7 +142,11 @@ public abstract class WidgetItemOverlay extends Overlay
|
||||
GUIDE_PRICES_INVENTORY_GROUP_ID,
|
||||
EQUIPMENT_INVENTORY_GROUP_ID,
|
||||
INVENTORY_GROUP_ID,
|
||||
SEED_VAULT_INVENTORY_GROUP_ID);
|
||||
SEED_VAULT_INVENTORY_GROUP_ID,
|
||||
DUEL_INVENTORY_GROUP_ID,
|
||||
DUEL_INVENTORY_OTHER_GROUP_ID,
|
||||
PLAYER_TRADE_SCREEN_GROUP_ID,
|
||||
PLAYER_TRADE_INVENTORY_GROUP_ID);
|
||||
}
|
||||
|
||||
protected void showOnBank()
|
||||
|
||||
@@ -45,7 +45,7 @@ public class WildcardMatcher
|
||||
}
|
||||
else
|
||||
{
|
||||
matcher.appendReplacement(sb, "\\\\Q" + matcher.group(0) + "\\\\E");
|
||||
matcher.appendReplacement(sb, Matcher.quoteReplacement(Pattern.quote(matcher.group(0))));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user