ToolTipFix

ToolTipFix

4M Downloads

Suggestion, Compatibility and Enhancement(?)

Laifsyn opened this issue ยท 1 comments

commented

image
This is REI Tooltip
image
This is tooltipfix(even though I have \n in CraftTweaker's script, it apparently doesn't reflect on Vanilla's tooltip. - Long Short, It's a long ass line without your mod)

var text1 = "Mix this in a big puddle with sand \nto produce Quartz Crystals" as string;
var text2 = "Press Shift for more info" as string;
<item:ae2:certus_quartz_dust>.
addShiftTooltip(((text1 + text2) as TextComponent).setStyle(Style.empty().withColor(c_cyan)),(text2 as TextComponent).setStyle(Style.empty().withColor(c_moreinfo)));

So, let it to be able to detect those \n linefeeds, and reflect them accordingly and probly even adjust the tooltip width with the linefeed?

commented

ToolTipFix 1.0.5(only for 1.19 at the moment) does have support for \n