From 78a8a15a48b25d2fe38c01a3ddb74bb6b24fa4f4 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 11 Jun 2022 10:02:41 +0700 Subject: start using essential relocate again update kotlin --- src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt | 2 +- src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt | 2 +- src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl') diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt index cd0596e..c8c18e4 100644 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt @@ -1,6 +1,6 @@ package cc.polyfrost.oneconfig.utils.dsl -import gg.essential.universal.UMinecraft +import cc.polyfrost.oneconfig.libs.universal.UMinecraft /** * Gets the current [net.minecraft.client.Minecraft] instance. diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt index 7ce6c93..4e8bca8 100644 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt @@ -1,7 +1,7 @@ package cc.polyfrost.oneconfig.utils.dsl import cc.polyfrost.oneconfig.utils.NetworkUtils -import gg.essential.universal.UDesktop +import cc.polyfrost.oneconfig.libs.universal.UDesktop import java.io.File /** diff --git a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt index 0000fc1..21c33f0 100644 --- a/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt +++ b/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt @@ -42,6 +42,8 @@ fun nanoVG(mcScaling: Boolean = false, block: VG.() -> Unit) = RenderManager.set ) } +fun nanoVG(context: Long, block: VG.() -> Unit) = block.invoke(VG(context)) + fun Long.drawRect(x: Number, y: Number, width: Number, height: Number, color: Int, bypassOneConfig: Boolean = false) = if (bypassOneConfig) { -- cgit