X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_Overlay.pde;h=827223a5e83f89ef70c8be045290c94ea10a1eea;hb=0e3c55427eb3c56557e42dd3a21aa159e47243de;hp=d33e4a14d33a9e4ac9318a3d6f1c48788d8f7d9b;hpb=b11ff42b4235ebf514245ac177cb4809067c988b;p=SugarCubes.git diff --git a/_Overlay.pde b/_Overlay.pde index d33e4a1..827223a 100644 --- a/_Overlay.pde +++ b/_Overlay.pde @@ -70,7 +70,12 @@ abstract class OverlayUI { textFont(titleFont); textAlign(LEFT); fill(#666666); - text("FPS: " + (((int)(frameRate * 10)) / 10.), 4, height-6); + text("FPS: " + (((int)(frameRate * 10)) / 10.), 4, height-6); + text("Target (-/+):", 50, height-6); + fill(#000000); + rect(104, height-16, 20, 12); + fill(#666666); + text("" + targetFramerate, 108, height-6); } protected int drawObjectList(int yPos, String title, Object[] items, Method stateMethod) { @@ -148,7 +153,7 @@ abstract class OverlayUI { return (mouseY - firstItemY) / lineHeight; } - abstract public void draw(); + abstract public void draw(); abstract public void mousePressed(); abstract public void mouseDragged(); abstract public void mouseReleased();