blob: b98bc0152cb49ed1c928baee870003a1cdeeee25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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 abstract class Page {
protected final String title;
Page(String title) {
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 void finishUpAndClose() {
}
public String getTitle() {
return title;
}
public void keyTyped(char key, int keyCode) {
}
}
|