diff --git a/JWA-Source/de/prplx/jwa/JWebApplet.java b/JWA-Source/de/prplx/jwa/JWebApplet.java index 9848b9b..859b01f 100644 --- a/JWA-Source/de/prplx/jwa/JWebApplet.java +++ b/JWA-Source/de/prplx/jwa/JWebApplet.java @@ -68,12 +68,22 @@ public void setHandshake(JWAHandshake handshake) { this.handshake = handshake; } + private int webFrameRate = 24; + + public void setFramerate(int framerate) { + this.webFrameRate = framerate; + } + + public int getFrameRate() { + return webFrameRate; + } + public void setWebInterface(String webInterface) { this.webInterface = webInterface; } public String getWebInterface() { - return webInterface; + return webInterface.replace("/*FRAMERATE*/", String.valueOf(webFrameRate)); } public void setDefaultScene(JWAScene scene) { diff --git a/JWA-Source/de/prplx/jwa/resources/WebInterface.html b/JWA-Source/de/prplx/jwa/resources/WebInterface.html index 2ca2faf..720ffd9 100644 --- a/JWA-Source/de/prplx/jwa/resources/WebInterface.html +++ b/JWA-Source/de/prplx/jwa/resources/WebInterface.html @@ -7,7 +7,9 @@ loading...