Pages
Learn more about OneConfig's pages
Last updated
Was this helpful?
Learn more about OneConfig's pages
Last updated
Was this helpful?
Was this helpful?
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
}
// SCROLLING
// 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)
}