diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 10:30:06 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 10:30:06 +0200 |
commit | 1ab7422957a76158883e0449ed593ac216c9ef80 (patch) | |
tree | eb3bb5434a1b860941f85d2fdb543264d094f2de /src/main/kotlin/cc/polyfrost | |
parent | d888d6b7358226792bf0cedbe67c7bb26204983f (diff) | |
parent | f3aac4876936dc58e6251bffae4a203d7b964051 (diff) | |
download | OneConfig-1ab7422957a76158883e0449ed593ac216c9ef80.tar.gz OneConfig-1ab7422957a76158883e0449ed593ac216c9ef80.tar.bz2 OneConfig-1ab7422957a76158883e0449ed593ac216c9ef80.zip |
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to 'src/main/kotlin/cc/polyfrost')
3 files changed, 4 insertions, 2 deletions
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) { |