Typo fix
This commit is contained in:
@@ -9,3 +9,5 @@ plugin-9patch/build/
|
||||
plugin-performance/build/
|
||||
plugin-tiled/build/
|
||||
assets/configs/config.pit
|
||||
assets/tiled.atlas
|
||||
assets/tiled.png
|
||||
|
||||
@@ -22,14 +22,11 @@ import com.puremvc.patterns.observer.Notification;
|
||||
import games.rednblack.editor.controller.SandboxCommand;
|
||||
import games.rednblack.editor.proxy.ProjectManager;
|
||||
|
||||
/**
|
||||
* Created by azakhary on 11/3/2015.
|
||||
*/
|
||||
public class ExportProjectCommand extends SandboxCommand { @Override
|
||||
public void execute(Notification notification) {
|
||||
ProjectManager projectManager = facade.retrieveProxy(ProjectManager.NAME);
|
||||
projectManager.exportProject();
|
||||
}
|
||||
|
||||
public class ExportProjectCommand extends SandboxCommand {
|
||||
|
||||
@Override
|
||||
public void execute(Notification notification) {
|
||||
ProjectManager projectManager = facade.retrieveProxy(ProjectManager.NAME);
|
||||
projectManager.exportProject();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -920,7 +920,6 @@ public class ProjectManager extends BaseProxy {
|
||||
}
|
||||
|
||||
public void exportProject() {
|
||||
|
||||
String defaultBuildPath = currentProjectPath + "/export";
|
||||
exportPacks(defaultBuildPath);
|
||||
if (!currentProjectVO.projectMainExportPath.isEmpty()) {
|
||||
@@ -950,7 +949,6 @@ public class ProjectManager extends BaseProxy {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void exportStyles(String targetPath) {
|
||||
String srcPath = currentProjectPath + "/assets/orig";
|
||||
FileHandle origDirectoryHandle = Gdx.files.absolute(srcPath);
|
||||
@@ -1256,22 +1254,6 @@ public class ProjectManager extends BaseProxy {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean deleteImage(String imageName) {
|
||||
Path path = Paths.get(currentProjectPath, "/assets/orig/images/", imageName);
|
||||
|
||||
ArrayList<Path> possibleFiles = Lists.newArrayList(
|
||||
path.resolveSibling(path.getFileName() + ".png"),
|
||||
path.resolveSibling(path.getFileName() + ".9.png"));
|
||||
|
||||
for(Path p : possibleFiles) {
|
||||
if (p.toFile().exists())
|
||||
return p.toFile().delete();
|
||||
}
|
||||
|
||||
throw new IllegalStateException(String.format("The file %s is not found",path.toString()));
|
||||
|
||||
}
|
||||
|
||||
public boolean deleteSingleImage(String imageName) {
|
||||
String imagesPath = currentProjectPath + File.separator + IMAGE_DIR_PATH + File.separator;
|
||||
String filePath = imagesPath + imageName + ".png";
|
||||
|
||||
@@ -25,7 +25,7 @@ public class EditMenu extends H2DMenu {
|
||||
copy = new MenuItem("Copy", new MenuItemListener(COPY, null, EDIT_MENU)).setShortcut(Input.Keys.CONTROL_LEFT, Input.Keys.C);
|
||||
paste = new MenuItem("Paste", new MenuItemListener(PASTE, null, EDIT_MENU)).setShortcut(Input.Keys.CONTROL_LEFT, Input.Keys.V);
|
||||
undo = new MenuItem("Undo", new MenuItemListener(UNDO, null, EDIT_MENU)).setShortcut(Input.Keys.CONTROL_LEFT, Input.Keys.Z);
|
||||
redo = new MenuItem("Redo", new MenuItemListener(REDO, null, EDIT_MENU)).setShortcut(Input.Keys.CONTROL_LEFT,Input.Keys.SHIFT_LEFT, Input.Keys.S);
|
||||
redo = new MenuItem("Redo", new MenuItemListener(REDO, null, EDIT_MENU)).setShortcut(Input.Keys.CONTROL_LEFT,Input.Keys.SHIFT_LEFT, Input.Keys.Z);
|
||||
addItem(cut);
|
||||
addItem(copy);
|
||||
addItem(paste);
|
||||
|
||||
Reference in New Issue
Block a user