Replace PureMVC with gdx-puremvc
This commit is contained in:
@@ -17,6 +17,8 @@ dependencies {
|
||||
|
||||
implementation 'net.mountainblade:modular:1.0'
|
||||
|
||||
implementation "games.rednblack.puremvc:core:$pureMvcVersion"
|
||||
|
||||
implementation project(":hyperlap2d-common-api")
|
||||
implementation project(":hyperlap2d-runtime-libgdx")
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.kotcrab.vis.ui.widget.VisLabel;
|
||||
import com.kotcrab.vis.ui.widget.VisTable;
|
||||
import com.kotcrab.vis.ui.widget.VisTextButton;
|
||||
import games.rednblack.h2d.common.H2DDialog;
|
||||
import org.puremvc.java.interfaces.IFacade;
|
||||
import games.rednblack.puremvc.Facade;
|
||||
|
||||
/**
|
||||
* Created by azakhary on 8/18/2015.
|
||||
@@ -20,7 +20,7 @@ public class MainPanel extends H2DDialog {
|
||||
|
||||
public static final String SAVE_CLICKED = CLASS_NAME + ".SAVE_CLICKED";
|
||||
|
||||
private IFacade facade;
|
||||
private Facade facade;
|
||||
|
||||
private VisTable mainTable;
|
||||
private TextureRegion texture;
|
||||
@@ -31,7 +31,7 @@ public class MainPanel extends H2DDialog {
|
||||
private EditingZone editingZone;
|
||||
private PreviewWidget previewWidget;
|
||||
|
||||
public MainPanel(IFacade facade) {
|
||||
public MainPanel(Facade facade) {
|
||||
super("Nine Patch", false);
|
||||
addCloseButton();
|
||||
|
||||
|
||||
+6
-8
@@ -4,14 +4,14 @@ import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.g2d.NinePatch;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||
import games.rednblack.editor.renderer.components.MainItemComponent;
|
||||
import games.rednblack.editor.renderer.components.NinePatchComponent;
|
||||
import games.rednblack.editor.renderer.components.TextureRegionComponent;
|
||||
import games.rednblack.editor.renderer.factory.EntityFactory;
|
||||
import games.rednblack.editor.renderer.utils.ComponentRetriever;
|
||||
import org.puremvc.java.interfaces.INotification;
|
||||
import org.puremvc.java.patterns.mediator.Mediator;
|
||||
import games.rednblack.puremvc.Mediator;
|
||||
import games.rednblack.puremvc.interfaces.INotification;
|
||||
import games.rednblack.puremvc.util.Interests;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.BufferedWriter;
|
||||
@@ -36,12 +36,10 @@ public class MainPanelMediator extends Mediator<MainPanel> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] listNotificationInterests() {
|
||||
return new String[]{
|
||||
NinePatchPlugin.EDIT_NINE_PATCH,
|
||||
public void listNotificationInterests(Interests interests) {
|
||||
interests.add(NinePatchPlugin.EDIT_NINE_PATCH,
|
||||
NinePatchPlugin.CONVERT_TO_NINE_PATCH,
|
||||
MainPanel.SAVE_CLICKED
|
||||
};
|
||||
MainPanel.SAVE_CLICKED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user