package com.haxademic.sketch.system;

import com.haxademic.core.app.P;
import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.constants.AppSettings;
import com.haxademic.core.draw.context.DrawUtil;
import com.haxademic.core.draw.context.OpenGLUtil;
import com.haxademic.core.math.easing.EasingFloat;

public class DebugDisplayTest
extends PAppletHax {
	public static void main(String args[]) { PAppletHax.main(Thread.currentThread().getStackTrace()[1].getClassName()); }
	
	public float easeFactor = 6f;
	protected EasingFloat _easingX = new EasingFloat(0, 6f);
	protected EasingFloat _easingY = new EasingFloat(0, 6f);

	protected void overridePropsFile() {
		p.appConfig.setProperty( AppSettings.FPS, 90 );
		p.appConfig.setProperty( AppSettings.WIDTH, 800 );
		p.appConfig.setProperty( AppSettings.HEIGHT, 600 );
		p.appConfig.setProperty( AppSettings.APP_NAME, "Debug Display Test" );
	}

	public void setup() {
		super.setup();
		p.showDebug = true;
		p.debugView.setHelpLine("Test info here", "");
		p.debugView.setHelpLine("[key]", "[Value]");
	}

	public void drawApp() {
		background(0);

		debugView.updateInputs();
		debugView.setValue("Max mouse", P.max(p.mouseX, p.mouseY));
		
		_easingX.setEaseFactor(easeFactor);
		_easingY.setEaseFactor(easeFactor);
		
		_easingX.setTarget(p.mouseX);
		_easingY.setTarget(p.mouseY);

		_easingX.update();
		_easingY.update();
		
		DrawUtil.setDrawCenter(p);
		p.fill(255);
		p.ellipse(_easingX.value(), _easingY.value(), 40, 40);
	}

}

@@ -19,14 +19,12 @@
 mic.
-sketch
+demo
 .sys
@@ -206,59 +206,8 @@
 il;%0A
-import com.haxademic.core.draw.context.OpenGLUtil;%0A
 impo
@@ -273,22 +273,20 @@
 s De
-bugDisplayTest
+mo_DebugView
 %0Aext

Fix debugview demo