diff --git a/assets/plugins/plugin-performance-0.0.2.jar b/assets/plugins/plugin-performance-0.0.2.jar index 10cc612c..883aea66 100644 Binary files a/assets/plugins/plugin-performance-0.0.2.jar and b/assets/plugins/plugin-performance-0.0.2.jar differ diff --git a/plugin-performance/src/main/java/games/rednblack/editor/plugin/performance/PerformancePanelMediator.java b/plugin-performance/src/main/java/games/rednblack/editor/plugin/performance/PerformancePanelMediator.java index a21f9e7e..7242b610 100644 --- a/plugin-performance/src/main/java/games/rednblack/editor/plugin/performance/PerformancePanelMediator.java +++ b/plugin-performance/src/main/java/games/rednblack/editor/plugin/performance/PerformancePanelMediator.java @@ -1,6 +1,7 @@ package games.rednblack.editor.plugin.performance; import com.badlogic.ashley.core.Engine; +import games.rednblack.h2d.common.MsgAPI; import org.puremvc.java.interfaces.INotification; import org.puremvc.java.patterns.mediator.Mediator; @@ -8,10 +9,6 @@ public class PerformancePanelMediator extends Mediator { private static final String TAG = PerformancePanelMediator.class.getCanonicalName(); public static final String NAME = TAG; - public static final String SCENE_LOADED = "games.rednblack.editor.proxy.SceneDataManager.SCENE_LOADED"; - public static final String NEW_ITEM_ADDED = "games.rednblack.editor.factory.ItemFactory.NEW_ITEM_ADDED"; - public static final String ACTION_DELETE = "games.rednblack.editor.controller.commands.DeleteItemsCommandDONE"; - private PerformancePlugin performancePlugin; public PerformancePanelMediator(PerformancePlugin performancePlugin) { @@ -24,9 +21,7 @@ public class PerformancePanelMediator extends Mediator { @Override public String[] listNotificationInterests() { return new String[]{ - SCENE_LOADED, - NEW_ITEM_ADDED, - ACTION_DELETE, + MsgAPI.SCENE_LOADED, PerformancePlugin.PANEL_OPEN }; } @@ -35,7 +30,7 @@ public class PerformancePanelMediator extends Mediator { public void handleNotification(INotification notification) { super.handleNotification(notification); switch (notification.getName()) { - case SCENE_LOADED: + case MsgAPI.SCENE_LOADED: viewComponent.initView(); Engine engine = performancePlugin.getAPI().getEngine(); viewComponent.setEngine(engine);