diff --git a/.github/labels.yml b/.github/labels.yml index b2323c2..0c578ea 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,30 +1,31 @@ -- name: priority:low - color: bfe5bf -- name: priority:medium - color: bfe5bf -- name: priority:high - color: bfe5bf -- name: status:accepted - color: fef2c0 -- name: status:unconfirmed - color: fef2c0 -- name: status:needs more info - color: fef2c0 -- name: status:rejected - color: fef2c0 -- name: status:under consideration - color: fef2c0 -- name: type:bug - color: f7c6c7 -- name: type:feature - color: f7c6c7 -- name: type:improvement - color: f7c6c7 -- name: type:question - color: f7c6c7 -- name: os:windows - color: "666699" -- name: os:mac - color: "666699" -- name: os:other - color: "666699" \ No newline at end of file +labels: + - name: priority:low + color: bfe5bf + - name: priority:medium + color: bfe5bf + - name: priority:high + color: bfe5bf + - name: status:accepted + color: fef2c0 + - name: status:unconfirmed + color: fef2c0 + - name: status:needs more info + color: fef2c0 + - name: status:rejected + color: fef2c0 + - name: status:under consideration + color: fef2c0 + - name: type:bug + color: f7c6c7 + - name: type:feature + color: f7c6c7 + - name: type:improvement + color: f7c6c7 + - name: type:question + color: f7c6c7 + - name: os:windows + color: "666699" + - name: os:mac + color: "666699" + - name: os:other + color: "666699" \ No newline at end of file diff --git a/src/main/java/org/parabot/core/Context.java b/src/main/java/org/parabot/core/Context.java index 943d051..e709ff9 100644 --- a/src/main/java/org/parabot/core/Context.java +++ b/src/main/java/org/parabot/core/Context.java @@ -185,9 +185,13 @@ public class Context { panel.add(gameApplet); panel.validate(); + serverProvider.preAppletInit(); + gameApplet.init(); gameApplet.start(); + serverProvider.postAppletStart(); + java.util.Timer t = new java.util.Timer(); t.schedule(new TimerTask() { @Override diff --git a/src/main/java/org/parabot/environment/servers/ServerProvider.java b/src/main/java/org/parabot/environment/servers/ServerProvider.java index da9b465..6765781 100644 --- a/src/main/java/org/parabot/environment/servers/ServerProvider.java +++ b/src/main/java/org/parabot/environment/servers/ServerProvider.java @@ -146,4 +146,20 @@ public abstract class ServerProvider implements Opcodes { } + /** + * Called in Context.setApplet before applet.init() is called. Exclusively used for manipulating the Frame attached + * to the applet of Roatpkz. + */ + public void preAppletInit() { + + } + + /** + * Called in Context.setApplet before after applet.start() and applet.init() are called. Exclusively used for manipulating the Frame attached + * to the applet of Roatpkz. + */ + public void postAppletStart() { + + } + }