diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 07:38:22 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 07:38:22 +0700 |
commit | a81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032 (patch) | |
tree | 939ef5ca9e1911d3fa9186d3c7b8f2f9472952a5 /api | |
parent | 511269ba2d250893481cb55f84ae22cba9ba0dc6 (diff) | |
download | OneConfig-a81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032.tar.gz OneConfig-a81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032.tar.bz2 OneConfig-a81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032.zip |
pass a UMatrixStack in HUD API
From 1.17+, most matrix transformations can only be done with a MatrixStack instance, thus to prepare for a OneConfig 1.17+ port this has been done.
Diffstat (limited to 'api')
-rw-r--r-- | api/OneConfig.api | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/api/OneConfig.api b/api/OneConfig.api index a0a2e2f..fa4e477 100644 --- a/api/OneConfig.api +++ b/api/OneConfig.api @@ -390,7 +390,8 @@ public class cc/polyfrost/oneconfig/events/event/ChatReceiveEvent : cc/polyfrost public class cc/polyfrost/oneconfig/events/event/HudRenderEvent { public final field deltaTicks F - public fun <init> (F)V + public final field matrices Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack; + public fun <init> (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;F)V } public class cc/polyfrost/oneconfig/events/event/InitializationEvent { @@ -877,11 +878,11 @@ public abstract class cc/polyfrost/oneconfig/hud/Hud { public fun <init> (ZII)V public fun <init> (ZIIFZIIILcc/polyfrost/oneconfig/config/core/OneColor;ZFLcc/polyfrost/oneconfig/config/core/OneColor;)V public fun <init> (ZIII)V - public abstract fun draw (IIF)V - public fun drawAll (FFFZ)V + public abstract fun draw (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;IIF)V + public fun drawAll (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;FFFZ)V public fun drawBackground ()Z - public fun drawExample (IIF)V - public fun drawExampleAll (FFFZ)V + public fun drawExample (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;IIF)V + public fun drawExampleAll (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;FFFZ)V public fun getExampleHeight (F)I public fun getExampleWidth (F)I public abstract fun getHeight (F)I @@ -913,7 +914,7 @@ public abstract class cc/polyfrost/oneconfig/hud/TextHud : cc/polyfrost/oneconfi public field textType I public fun <init> (Z)V public fun <init> (ZII)V - public fun draw (IIF)V + public fun draw (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;IIF)V protected fun getExampleLines (Ljava/util/List;)V protected fun getExampleLinesFrequent (Ljava/util/List;)V public fun getHeight (F)I |