Skip to content

Commit

Permalink
Fix old TextInputField constructor not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Dec 24, 2023
1 parent 8046e5c commit 2c0f8dd
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 @@ -984,6 +984,7 @@ public class cc/polyfrost/oneconfig/gui/elements/text/TextInputField : cc/polyfr
protected field x F
protected field y F
public fun <init> (IILjava/lang/String;ZZ)V
public fun <init> (IILjava/lang/String;ZZLcc/polyfrost/oneconfig/renderer/asset/SVG;)V
public fun <init> (IILjava/lang/String;ZZLcc/polyfrost/oneconfig/renderer/asset/SVG;F)V
public fun <init> (IIZF)V
public fun <init> (IIZLjava/lang/String;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public TextInputField(int width, int height, String defaultText, boolean multiLi
this.radius = radius;
}

public TextInputField(int width, int height, String defaultText, boolean multiLine, boolean password, SVG icon) {
this(width, height, defaultText, multiLine, password, null, 12);
}

public TextInputField(int width, int height, String defaultText, boolean multiLine, boolean password) {
this(width, height, defaultText, multiLine, password, null, 12);
}
Expand Down

0 comments on commit 2c0f8dd

Please sign in to comment.