aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-29 15:26:36 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-29 15:26:36 +0700
commit98eedb30ac2f4e6ab9b0b1b04127e4afdcba0315 (patch)
treea26d876b223229a35d05ef93c81a429ea1d877cd /src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java
parentce370c8e2768383b57212fccd4018f92f88b8847 (diff)
downloadOneConfig-98eedb30ac2f4e6ab9b0b1b04127e4afdcba0315.tar.gz
OneConfig-98eedb30ac2f4e6ab9b0b1b04127e4afdcba0315.tar.bz2
OneConfig-98eedb30ac2f4e6ab9b0b1b04127e4afdcba0315.zip
kotlin dsl
RenderManager reorganization fix build error in CommandHelper
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java b/src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java
index 614d138..f6ad3f5 100644
--- a/src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java
+++ b/src/main/java/cc/polyfrost/oneconfig/test/TestNanoVGGui_Test.java
@@ -18,10 +18,10 @@ public class TestNanoVGGui_Test extends UScreen {
RenderManager.setupAndDraw((vg) -> {
RenderManager.drawRect(vg, 0, 0, 100, 100, Color.BLUE.getRGB());
RenderManager.drawRoundedRect(vg, 305, 305, 100, 100, Color.YELLOW.getRGB(), 8);
- RenderManager.drawString(vg, "Hello!", 100, 100, Color.WHITE.getRGB(), 50, Fonts.BOLD);
+ RenderManager.drawText(vg, "Hello!", 100, 100, Color.WHITE.getRGB(), 50, Fonts.BOLD);
RenderManager.drawLine(vg, 0, 0, 100, 100, 7, Color.PINK.getRGB());
RenderManager.drawCircle(vg, 200, 200, 50, Color.WHITE.getRGB());
- RenderManager.drawString(vg, (float) (System.nanoTime() - startTime) / 1000000f + "ms", 500, 500, Color.WHITE.getRGB(), 100, Fonts.BOLD);
+ RenderManager.drawText(vg, (float) (System.nanoTime() - startTime) / 1000000f + "ms", 500, 500, Color.WHITE.getRGB(), 100, Fonts.BOLD);
});
}
}