Learn more about OneConfig's pages

What are Pages?

Pages are the name given to the displays inside the OneConfig UI, and they are 1056x728 (1024x696 usable) rectangles of the GUI. All the content of OneConfig is displayed inside this area. They are fully scrollable, and you can even make your own pages if you want!

Custom Pages

Custom pages can be created easily by just extending the Page class, like this:

public class MyPage extends Page {
    public MyPage() {
        super("My Page"); // set the name of the page
    public void draw(long vg, int x, int y) {
        // draw script for the page
    // if you want it to be scrollable, you can use the following methods:
    public int drawStatic(long vg, int x, int y) {
        // draw elements that are not going to be scrollable
        return 12; // return the height of the elements that are drawn in this method
    public int getMaxScrollHeight() {
        return 1240; // return the total length of the page (how far can be scrolled)

You can use this in combination with a Custom Pages decorative config component to open the page, so the user can access it with the click of a button!

Last updated