Skip to content

Commit

Permalink
fix compat with neu
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Aug 5, 2023
1 parent c77ace4 commit 7281a54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/OneConfig.api
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ public class cc/polyfrost/oneconfig/gui/elements/config/ConfigPageButton : cc/po
}

public class cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider : cc/polyfrost/oneconfig/config/elements/BasicOption, cc/polyfrost/oneconfig/gui/elements/IFocusable {
public fun <init> (Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;FFI)V
public fun <init> (Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;FFIZ)V
public static fun create (Ljava/lang/reflect/Field;Ljava/lang/Object;)Lcc/polyfrost/oneconfig/gui/elements/config/ConfigSlider;
public fun draw (JIILcc/polyfrost/oneconfig/utils/InputHandler;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public class ConfigSlider extends BasicOption implements IFocusable {
private boolean animReset;
private float lastX = -1;

public ConfigSlider(Field field, Object parent, String name, String description, String category, String subcategory, float min, float max, int step) {
this(field, parent, name, description, category, subcategory, min, max, step, false);
}

public ConfigSlider(Field field, Object parent, String name, String description, String category, String subcategory, float min, float max, int step, boolean instant) {
super(field, parent, name, description, category, subcategory, 2);
this.min = min;
Expand Down

0 comments on commit 7281a54

Please sign in to comment.