aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/elements/text
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-07-25 22:01:01 +0900
committerGitHub <noreply@github.com>2022-07-25 14:01:01 +0100
commit045ca00486e62c89a4da5f880f6f52016e4dd14a (patch)
treef77f40fbaed328b0d6b54a98adb49d7dd9b38229 /src/main/java/cc/polyfrost/oneconfig/gui/elements/text
parent8a01f36d1021159f2c49ae8083febc046a4a8502 (diff)
downloadOneConfig-045ca00486e62c89a4da5f880f6f52016e4dd14a.tar.gz
OneConfig-045ca00486e62c89a4da5f880f6f52016e4dd14a.tar.bz2
OneConfig-045ca00486e62c89a4da5f880f6f52016e4dd14a.zip
fix: stop using internal asset classes everywhere (#69)
* fix: stop using internal asset classes everywhere new: add wrapper classes for NanoVG rendering and rename original Image wrapper to OneImage * I love regex Co-authored-by: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/elements/text')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/text/TextInputField.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/text/TextInputField.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/text/TextInputField.java
index 3c2cb1c..1052487 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/text/TextInputField.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/text/TextInputField.java
@@ -2,10 +2,10 @@ package cc.polyfrost.oneconfig.gui.elements.text;
import cc.polyfrost.oneconfig.gui.elements.BasicElement;
import cc.polyfrost.oneconfig.internal.assets.Colors;
-import cc.polyfrost.oneconfig.internal.assets.SVGs;
import cc.polyfrost.oneconfig.libs.universal.UKeyboard;
import cc.polyfrost.oneconfig.platform.Platform;
import cc.polyfrost.oneconfig.renderer.RenderManager;
+import cc.polyfrost.oneconfig.renderer.SVG;
import cc.polyfrost.oneconfig.renderer.font.Fonts;
import cc.polyfrost.oneconfig.renderer.scissor.Scissor;
import cc.polyfrost.oneconfig.renderer.scissor.ScissorManager;
@@ -35,12 +35,12 @@ public class TextInputField extends BasicElement {
protected boolean onlyNums = false;
protected boolean errored = false;
protected boolean centered = false;
- protected SVGs icon;
+ protected SVG icon;
protected ArrayList<String> wrappedText = null;
private long clickTimeD1;
private int lines = 1;
- public TextInputField(int width, int height, String defaultText, boolean multiLine, boolean password, SVGs icon) {
+ public TextInputField(int width, int height, String defaultText, boolean multiLine, boolean password, SVG icon) {
super(width, height, false);
this.multiLine = multiLine;
this.defaultText = defaultText;