mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Tooltip auto-scaling! All tooltips now have equal widths, even in different languages.
This commit is contained in:
1 parent
22bf688fbd
commit
f19a8f9e64
13 files changed
+235
-119
No files matched your search
@@ -34,7 +34,7 @@ public class ItemUpgrade extends ItemMekanism implements IUpgradeItem
|
||||
list.add(LangUtils.localize("tooltip.hold") + " " + EnumColor.AQUA + "shift" + EnumColor.GREY + " " + LangUtils.localize("tooltip.forDetails"));
|
||||
}
|
||||
else {
|
||||
list.addAll(MekanismUtils.splitLines(getUpgradeType(itemstack).getDescription()));
|
||||
list.addAll(MekanismUtils.splitTooltip(getUpgradeType(itemstack).getDescription(), itemstack));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user