loot tracker: don't show unneeded tooltip lines for coins and platinum
This commit is contained in:
@@ -50,6 +50,7 @@ import javax.swing.SwingConstants;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import net.runelite.api.ItemID;
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import net.runelite.client.ui.ColorScheme;
|
||||
import net.runelite.client.ui.FontManager;
|
||||
@@ -377,11 +378,24 @@ class LootTrackerBox extends JPanel
|
||||
final String ignoredLabel = item.isIgnored() ? " - Ignored" : "";
|
||||
final StringBuilder sb = new StringBuilder("<html>");
|
||||
sb.append(name).append(" x ").append(QuantityFormatter.formatNumber(quantity)).append(ignoredLabel);
|
||||
if (item.getId() == ItemID.COINS_995)
|
||||
{
|
||||
sb.append("</html>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
sb.append("<br>GE: ").append(QuantityFormatter.quantityToStackSize(gePrice));
|
||||
if (quantity > 1)
|
||||
{
|
||||
sb.append(" (").append(QuantityFormatter.quantityToStackSize(item.getGePrice())).append(" ea)");
|
||||
}
|
||||
|
||||
if (item.getId() == ItemID.PLATINUM_TOKEN)
|
||||
{
|
||||
sb.append("</html>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
sb.append("<br>HA: ").append(QuantityFormatter.quantityToStackSize(haPrice));
|
||||
if (quantity > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user