aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/gui/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/pages')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java5
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java2
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java5
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java12
4 files changed, 19 insertions, 5 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java
index 0dfd983..9d71527 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java
@@ -20,4 +20,9 @@ public class HomePage extends Page {
//RenderManager.drawRoundedRect(vg);
btn.draw(vg, x + 432, y + 658);
}
+
+ @Override
+ public boolean isBase() {
+ return true;
+ }
}
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java
index 4839c61..1287f67 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModConfigPage.java
@@ -16,7 +16,7 @@ public class ModConfigPage extends Page {
private String selectedCategory;
public ModConfigPage(OptionPage page) {
- super("Mod: " + page.mod.name);
+ super(page.name);
this.page = page;
if (page.categories.size() == 0) return;
for (String category : page.categories.keySet()) {
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java
index 7834e0b..2db82cc 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java
@@ -68,4 +68,9 @@ public class ModsPage extends Page {
modCategories.get(i).setToggled(false);
}
}
+
+ @Override
+ public boolean isBase() {
+ return true;
+ }
}
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 b98bc01..91d0efd 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/Page.java
@@ -13,12 +13,9 @@ public abstract class Page {
this.title = title;
}
- public void draw(long vg, int x, int y) {
- RenderManager.drawString(vg, "Doesn't appear there is any content to this page :(", x + 12, y + 18, -1, 24f, Fonts.INTER_BOLD);
- }
+ public abstract void draw(long vg, int x, int y);
public void finishUpAndClose() {
-
}
public String getTitle() {
@@ -27,4 +24,11 @@ public abstract class Page {
public void keyTyped(char key, int keyCode) {
}
+
+ /**
+ * Overwrite this method and make it return true if you want this to always be the base in breadcrumbs
+ */
+ public boolean isBase() {
+ return false;
+ }
}