if (function instanceof SubMenu) {
this.switchTo(function.getFunctionName().split("_")[1]);
} else if (function == InterfaceFunctions.MENU_EDITOR) {
try {
Engine.getInstance().switchState(
new Editor(this, this.getWidth(), this.getHeight(), 1));
} catch (IOException e) {
Log.error("Fehler beim Erstellen des Editors: "
+ e.getMessage());
e.printStackTrace();
}