aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-01 14:38:12 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-01 14:38:12 +0200
commitbeba1324ee295f669c2a75d77dec2a69c6883b55 (patch)
treef1702f41996f9bed8cd37626181b21e088067dd8 /src/main/java/io/polyfrost
parent727fdcfedf5a15891a7f56b07eaab3e00bee76d1 (diff)
parentbe7a79478835aae4562d6f95a5b083228721b3ee (diff)
downloadOneConfig-beba1324ee295f669c2a75d77dec2a69c6883b55.tar.gz
OneConfig-beba1324ee295f669c2a75d77dec2a69c6883b55.tar.bz2
OneConfig-beba1324ee295f669c2a75d77dec2a69c6883b55.zip
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to 'src/main/java/io/polyfrost')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/OneConfig.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/OneConfig.java b/src/main/java/io/polyfrost/oneconfig/OneConfig.java
index 0715f4a..5e25ee0 100644
--- a/src/main/java/io/polyfrost/oneconfig/OneConfig.java
+++ b/src/main/java/io/polyfrost/oneconfig/OneConfig.java
@@ -6,6 +6,8 @@ import io.polyfrost.oneconfig.config.core.ConfigCore;
import io.polyfrost.oneconfig.config.data.Mod;
import io.polyfrost.oneconfig.config.data.ModType;
import io.polyfrost.oneconfig.hud.HudCore;
+import io.polyfrost.oneconfig.lwjgl.RenderManager;
+import io.polyfrost.oneconfig.lwjgl.font.Fonts;
import io.polyfrost.oneconfig.test.TestConfig;
import net.minecraft.client.Minecraft;
import net.minecraftforge.client.ClientCommandHandler;
@@ -47,6 +49,11 @@ public class OneConfig {
ClientCommandHandler.instance.registerCommand(new OneConfigCommand());
MinecraftForge.EVENT_BUS.register(this);
MinecraftForge.EVENT_BUS.register(new HudCore());
+ RenderManager.setupAndDraw((vg) -> {
+ RenderManager.drawRoundedRect(vg, -100, -100, 50, 50, -1, 12f);
+ RenderManager.drawString(vg, "OneConfig loading...", -100, -100, -1, 12f, Fonts.INTER_MEDIUM);
+ RenderManager.drawImage(vg, "/assets/oneconfig/textures/icon.png", -100, -100, 50, 50);
+ });
}
@net.minecraftforge.fml.common.Mod.EventHandler