aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-11-02 19:04:30 +0000
committerGitHub <noreply@github.com>2022-11-02 20:04:30 +0100
commit5f0291595204c06be9c6462dce6b166b03c19f68 (patch)
tree1ed8ea6d8d55d23c0fd8a8cc12ad29f6096a001f /src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
parent6382bdc0d84f2a39c2adeb13c686f422f1914f45 (diff)
downloadnotenoughupdates-5f0291595204c06be9c6462dce6b166b03c19f68.tar.gz
notenoughupdates-5f0291595204c06be9c6462dce6b166b03c19f68.tar.bz2
notenoughupdates-5f0291595204c06be9c6462dce6b166b03c19f68.zip
Gui editor (#316)
* kinda working ig * gui editor kinda works. map and drill fuel doesnt show yet. weird overlapping issues. overlays that have itemstacks glitch out on the left side * POV: im making scuffed af code during business class * a * made it so you ""can"" move the map * works for everything but the map (AAAAAAAA) * remove options * everything working™️ besides the hollows overlay buggin * hearth 💀 * swap the thingies * Update Position.java * Change arbitrary if statement * Fixed dontRenderOverlay * Made code more sane * Add powder overlay and cleaned up NEUConfig * less work for new gui overlays in the future * its not a bug its a feature suggestion * Fixed map on f1 (thank soopy) * Fixed map on entrance and fixed interp for e and f1 * no more warning !! Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
index f8e02fef..7884b2ac 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TextOverlay.java
@@ -43,6 +43,8 @@ public abstract class TextOverlay {
public boolean shouldUpdateFrequent = false;
+ public boolean shouldRenderInGuiEditor = true;
+
private static final int PADDING_X = 5;
private static final int PADDING_Y = 5;
@@ -127,6 +129,10 @@ public abstract class TextOverlay {
return new Vector2f(x, y);
}
+ public Position getPosition() {
+ return position;
+ }
+
protected void renderLine(String line, Vector2f position, boolean dummy) {
}