mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-29 08:26:37 +01:00
0/10 not ported
- Fixed text wrapping on ponder text elements
This commit is contained in:
parent
ab147722d5
commit
72789caa01
1 changed files with 5 additions and 3 deletions
|
@ -9,7 +9,6 @@ import com.simibubi.create.foundation.ponder.PonderScene;
|
|||
import com.simibubi.create.foundation.ponder.PonderUI;
|
||||
import com.simibubi.create.foundation.ponder.content.PonderPalette;
|
||||
import com.simibubi.create.foundation.utility.ColorHelper;
|
||||
import com.simibubi.create.foundation.utility.FontHelper;
|
||||
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
import net.minecraft.util.math.vector.Matrix4f;
|
||||
|
@ -126,8 +125,11 @@ public class TextWindowElement extends AnimatedOverlayElement {
|
|||
}
|
||||
|
||||
ms.translate(0, 0, 400);
|
||||
FontHelper.drawSplitString(ms, screen.getFontRenderer(), bakedText, targetX - 10, 3, textWidth,
|
||||
ColorHelper.applyAlpha(brighterColor, fade));
|
||||
for (int i = 0; i < lines.size(); i++) {
|
||||
screen.getFontRenderer()
|
||||
.draw(ms, lines.get(i)
|
||||
.getString(), targetX - 10, 3 + 9 * i, ColorHelper.applyAlpha(brighterColor, fade));
|
||||
}
|
||||
ms.pop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue