From 158dfe128df8d95971b7d0db2bd5dfaf700818b3 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 11 Sep 2022 21:08:52 +0200 Subject: fix: fix description bugs --- api/OneConfig.api | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'api') diff --git a/api/OneConfig.api b/api/OneConfig.api index a922b10..3e5688f 100644 --- a/api/OneConfig.api +++ b/api/OneConfig.api @@ -293,6 +293,7 @@ public abstract class cc/polyfrost/oneconfig/config/elements/BasicOption { public final field description Ljava/lang/String; protected final field field Ljava/lang/reflect/Field; public final field name Ljava/lang/String; + protected field nameColor I protected field parent Ljava/lang/Object; public final field size I public final field subcategory Ljava/lang/String; @@ -301,11 +302,12 @@ public abstract class cc/polyfrost/oneconfig/config/elements/BasicOption { public fun addHideCondition (Ljava/util/function/Supplier;)V public fun addListener (Ljava/lang/Runnable;)V public abstract fun draw (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V - public fun drawDescription (JIIILcc/polyfrost/oneconfig/utils/InputHandler;)V + public fun drawDescription (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V public fun drawLast (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V public fun get ()Ljava/lang/Object; public fun getField ()Ljava/lang/reflect/Field; public abstract fun getHeight ()I + protected fun getNameX (I)F public fun getParent ()Ljava/lang/Object; public fun isEnabled ()Z public fun isHidden ()Z @@ -728,6 +730,7 @@ public class cc/polyfrost/oneconfig/gui/elements/config/ConfigCheckbox : cc/poly public static fun create (Ljava/lang/reflect/Field;Ljava/lang/Object;)Lcc/polyfrost/oneconfig/gui/elements/config/ConfigCheckbox; public fun draw (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V public fun getHeight ()I + protected fun getNameX (I)F } public class cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement : cc/polyfrost/oneconfig/config/elements/BasicOption { @@ -799,6 +802,7 @@ public class cc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch : cc/polyfr public static fun create (Ljava/lang/reflect/Field;Ljava/lang/Object;)Lcc/polyfrost/oneconfig/gui/elements/config/ConfigSwitch; public fun draw (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V public fun getHeight ()I + protected fun getNameX (I)F } public class cc/polyfrost/oneconfig/gui/elements/config/ConfigTextBox : cc/polyfrost/oneconfig/config/elements/BasicOption { @@ -1337,6 +1341,8 @@ public class cc/polyfrost/oneconfig/renderer/scissor/ScissorManager { public fun ()V public static fun clearScissors (J)V public static fun resetScissor (JLcc/polyfrost/oneconfig/renderer/scissor/Scissor;)V + public static fun restore (J)V + public static fun save ()V public static fun scissor (JFFFF)Lcc/polyfrost/oneconfig/renderer/scissor/Scissor; } -- cgit