loot tracker: add ea display to tooltips
This commit is contained in:
@@ -375,8 +375,19 @@ class LootTrackerBox extends JPanel
|
|||||||
final long gePrice = item.getTotalGePrice();
|
final long gePrice = item.getTotalGePrice();
|
||||||
final long haPrice = item.getTotalHaPrice();
|
final long haPrice = item.getTotalHaPrice();
|
||||||
final String ignoredLabel = item.isIgnored() ? " - Ignored" : "";
|
final String ignoredLabel = item.isIgnored() ? " - Ignored" : "";
|
||||||
return "<html>" + name + " x " + quantity + ignoredLabel
|
final StringBuilder sb = new StringBuilder("<html>");
|
||||||
+ "<br>GE: " + QuantityFormatter.quantityToStackSize(gePrice)
|
sb.append(name).append(" x ").append(QuantityFormatter.formatNumber(quantity)).append(ignoredLabel);
|
||||||
+ "<br>HA: " + QuantityFormatter.quantityToStackSize(haPrice) + "</html>";
|
sb.append("<br>GE: ").append(QuantityFormatter.quantityToStackSize(gePrice));
|
||||||
|
if (quantity > 1)
|
||||||
|
{
|
||||||
|
sb.append(" (").append(QuantityFormatter.quantityToStackSize(item.getGePrice())).append(" ea)");
|
||||||
|
}
|
||||||
|
sb.append("<br>HA: ").append(QuantityFormatter.quantityToStackSize(haPrice));
|
||||||
|
if (quantity > 1)
|
||||||
|
{
|
||||||
|
sb.append(" (").append(QuantityFormatter.quantityToStackSize(item.getHaPrice())).append(" ea)");
|
||||||
|
}
|
||||||
|
sb.append("</html>");
|
||||||
|
return sb.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user