Huge refactoring of codebase to support latest version of Java PureMVC (v2.2)
This commit is contained in:
-5
@@ -4,13 +4,10 @@ import com.badlogic.ashley.core.Engine;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.kotcrab.vis.ui.widget.VisLabel;
|
||||
import com.kotcrab.vis.ui.widget.VisTable;
|
||||
import com.puremvc.patterns.facade.SimpleFacade;
|
||||
import games.rednblack.h2d.common.UIDraggablePanel;
|
||||
|
||||
public class PerformancePanel extends UIDraggablePanel {
|
||||
|
||||
private SimpleFacade facade;
|
||||
|
||||
private VisTable mainTable;
|
||||
|
||||
private VisLabel entitiesCount;
|
||||
@@ -22,8 +19,6 @@ public class PerformancePanel extends UIDraggablePanel {
|
||||
super("Performance");
|
||||
addCloseButton();
|
||||
|
||||
facade = SimpleFacade.getInstance();
|
||||
|
||||
mainTable = new VisTable();
|
||||
|
||||
getContentTable().add(mainTable).left().width(150).pad(5);
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
package games.rednblack.editor.plugin.performance;
|
||||
|
||||
import com.badlogic.ashley.core.Engine;
|
||||
import com.puremvc.patterns.mediator.SimpleMediator;
|
||||
import com.puremvc.patterns.observer.Notification;
|
||||
import org.puremvc.java.interfaces.INotification;
|
||||
import org.puremvc.java.patterns.mediator.Mediator;
|
||||
|
||||
public class PerformancePanelMediator extends SimpleMediator<PerformancePanel> {
|
||||
public class PerformancePanelMediator extends Mediator<PerformancePanel> {
|
||||
private static final String TAG = PerformancePanelMediator.class.getCanonicalName();
|
||||
public static final String NAME = TAG;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class PerformancePanelMediator extends SimpleMediator<PerformancePanel> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleNotification(Notification notification) {
|
||||
public void handleNotification(INotification notification) {
|
||||
super.handleNotification(notification);
|
||||
switch (notification.getName()) {
|
||||
case SCENE_LOADED:
|
||||
|
||||
Reference in New Issue
Block a user