aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-11 10:30:06 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-11 10:30:06 +0200
commit1ab7422957a76158883e0449ed593ac216c9ef80 (patch)
treeeb3bb5434a1b860941f85d2fdb543264d094f2de /src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl
parentd888d6b7358226792bf0cedbe67c7bb26204983f (diff)
parentf3aac4876936dc58e6251bffae4a203d7b964051 (diff)
downloadOneConfig-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/oneconfig/utils/dsl')
-rw-r--r--src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/DSLs.kt2
-rw-r--r--src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/NetworkUtilsDSL.kt2
-rw-r--r--src/main/kotlin/cc/polyfrost/oneconfig/utils/dsl/RenderManagerDSL.kt2
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) {