aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-04-24 14:46:10 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-04-24 14:46:10 +0200
commit087267b1e9a0562ca80604d583fc6c0790e0f733 (patch)
tree53019267804181b9e8ff42d90783d04c3119efa5 /src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
parent9a3d070d80d569bea3f1b6b162bb061a7d9446db (diff)
parent5417c7bd2d43c306863707bb91e7c88a651a696b (diff)
downloadOneConfig-087267b1e9a0562ca80604d583fc6c0790e0f733.tar.gz
OneConfig-087267b1e9a0562ca80604d583fc6c0790e0f733.tar.bz2
OneConfig-087267b1e9a0562ca80604d583fc6c0790e0f733.zip
Merge branch 'master' of github.com:Polyfrost/OneConfig
merge or smthing
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
index 72fa3a3..492a1f9 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
@@ -1,4 +1,23 @@
package io.polyfrost.oneconfig.gui.pages;
+import io.polyfrost.oneconfig.lwjgl.RenderManager;
+import io.polyfrost.oneconfig.lwjgl.font.Fonts;
+
+/**
+ * A page is a 1056x728 rectangle of the GUI. It is the main content of the gui, and can be switched back and forwards easily. All the content of OneConfig is in a page.
+ */
public class Page {
+ protected final String title;
+
+ Page(String title) {
+ this.title = title;
+ }
+
+ public void draw(long vg, int x, int y) {
+ RenderManager.drawString(vg, "If you are seeing this, something went quite wrong.", x + 12, y + 12, -1, 24f, Fonts.INTER_BOLD);
+ }
+
+ public String getTitle() {
+ return title;
+ }
}