tesing rounded corners

This commit is contained in:
2025-04-21 00:20:43 +02:00
parent 1741e8c0b9
commit 8f1d1f0ce8
@@ -1,6 +1,5 @@
package org.saturnclient.ui2.elements; package org.saturnclient.ui2.elements;
import org.joml.Quaternionf;
import org.saturnclient.ui2.Element; import org.saturnclient.ui2.Element;
import org.saturnclient.ui2.RenderScope; import org.saturnclient.ui2.RenderScope;
@@ -23,13 +22,8 @@ public class Text extends Element {
renderScope.matrices.push(); renderScope.matrices.push();
renderScope.matrices.multiply(net.minecraft.util.math.RotationAxis.POSITIVE_Z.rotationDegrees(90.0f));
renderScope.matrices.translate(300, 300, 0);
renderScope.matrices.scale(0.1f, 0.1f, 1.0f); renderScope.matrices.scale(0.1f, 0.1f, 1.0f);
int r = 90; // Radius of the corner int r = 90; // Radius of the corner
int h = (rectHeight / 2) * 10; // Height of the box int h = (rectHeight / 2) * 10; // Height of the box
int w = (rectWidth / 2) * 10; // Width of the box int w = (rectWidth / 2) * 10; // Width of the box