diff --git a/ATCS_JAR.jardesc b/ATCS_JAR.jardesc index 0624630..10a46ab 100644 --- a/ATCS_JAR.jardesc +++ b/ATCS_JAR.jardesc @@ -1,6 +1,6 @@ - + diff --git a/packaging/ATCS_latest b/packaging/ATCS_latest index 19d7022..66e8b11 100644 --- a/packaging/ATCS_latest +++ b/packaging/ATCS_latest @@ -1 +1 @@ -v0.6.14 \ No newline at end of file +v0.6.15 \ No newline at end of file diff --git a/packaging/Windows/ATCS_Installer.nsi b/packaging/Windows/ATCS_Installer.nsi index 3e98602..e0e2591 100644 --- a/packaging/Windows/ATCS_Installer.nsi +++ b/packaging/Windows/ATCS_Installer.nsi @@ -1,7 +1,7 @@ !include MUI2.nsh -!define VERSION "0.6.14" -!define TRAINER_VERSION "0.1.4" +!define VERSION "0.6.15" +!define TRAINER_VERSION "0.1.5" !define JAVA_BIN "javaw" Name "Andor's Trail Content Studio v${VERSION}" diff --git a/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java b/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java index 2ea2d4f..b982c64 100644 --- a/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java +++ b/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java @@ -43,7 +43,7 @@ import com.gpl.rpg.atcontentstudio.ui.WorkspaceSelector; public class ATContentStudio { public static final String APP_NAME = "Andor's Trail Content Studio"; - public static final String APP_VERSION = "v0.6.14"; + public static final String APP_VERSION = "v0.6.15"; public static final String CHECK_UPDATE_URL = "https://andorstrail.com/static/ATCS_latest"; public static final String DOWNLOAD_URL = "https://andorstrail.com/viewtopic.php?f=6&t=4806"; diff --git a/src/com/gpl/rpg/atcontentstudio/ui/map/TMXMapEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/map/TMXMapEditor.java index afabd11..93947f1 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/map/TMXMapEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/map/TMXMapEditor.java @@ -2463,10 +2463,10 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe return false; } - JLabel noTileGround = new JLabel(new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT))); - JLabel noTileObjects = new JLabel(new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT))); - JLabel noTileAbove = new JLabel(new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT))); - JLabel noTileTop = new JLabel(new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT))); + JLabel noTileGround = new JLabel("None", new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT)), SwingConstants.LEFT); + JLabel noTileObjects = new JLabel("None", new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT)), SwingConstants.LEFT); + JLabel noTileAbove = new JLabel("None", new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT)), SwingConstants.LEFT); + JLabel noTileTop = new JLabel("None", new ImageIcon(DefaultIcons.getNullifyImage().getScaledInstance(32, 32, Image.SCALE_DEFAULT)), SwingConstants.LEFT); { noTileGround.setPreferredSize(new Dimension(32, 32)); noTileObjects.setPreferredSize(new Dimension(32, 32)); @@ -2491,16 +2491,19 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe JPanel content = new JPanel(); content.setLayout(new JideBoxLayout(content, JideBoxLayout.PAGE_AXIS)); if (tooltippedTile != null) { - Image tile; + tiled.core.Tile tile; + Image tileImage; JLabel label; if (top != null && top.getTileAt(tooltippedTile.x, tooltippedTile.y) != null) { - tile = top.getTileAt(tooltippedTile.x, tooltippedTile.y).getImage(); + tile = top.getTileAt(tooltippedTile.x, tooltippedTile.y); + tileImage = tile.getImage(); } else { tile = null; + tileImage = null; } - if (tile != null) { - label = new JLabel(new ImageIcon(tile)); + if (tileImage != null) { + label = new JLabel(tile.getTileSet().getName(), new ImageIcon(tileImage), SwingConstants.LEFT); label.setPreferredSize(new Dimension(32,32)); content.add(label, JideBoxLayout.FIX); //Fix when (if?) Top is advertised publicly. @@ -2509,12 +2512,14 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe } if (above != null && above.getTileAt(tooltippedTile.x, tooltippedTile.y) != null) { - tile = above.getTileAt(tooltippedTile.x, tooltippedTile.y).getImage(); + tile = above.getTileAt(tooltippedTile.x, tooltippedTile.y); + tileImage = tile.getImage(); } else { tile = null; + tileImage = null; } - if (tile != null) { - label = new JLabel(new ImageIcon(tile)); + if (tileImage != null) { + label = new JLabel(tile.getTileSet().getName(), new ImageIcon(tileImage), SwingConstants.LEFT); label.setPreferredSize(new Dimension(32,32)); content.add(label, JideBoxLayout.FIX); } else { @@ -2522,12 +2527,14 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe } if (objects != null && objects.getTileAt(tooltippedTile.x, tooltippedTile.y) != null) { - tile = objects.getTileAt(tooltippedTile.x, tooltippedTile.y).getImage(); + tile = objects.getTileAt(tooltippedTile.x, tooltippedTile.y); + tileImage = tile.getImage(); } else { tile = null; + tileImage = null; } - if (tile != null) { - label = new JLabel(new ImageIcon(tile)); + if (tileImage != null) { + label = new JLabel(tile.getTileSet().getName(), new ImageIcon(tileImage), SwingConstants.LEFT); label.setPreferredSize(new Dimension(32,32)); content.add(label, JideBoxLayout.FIX); } else { @@ -2535,12 +2542,14 @@ public class TMXMapEditor extends Editor implements TMXMap.MapChangedOnDiskListe } if (ground != null && ground.getTileAt(tooltippedTile.x, tooltippedTile.y) != null) { - tile = ground.getTileAt(tooltippedTile.x, tooltippedTile.y).getImage(); + tile = ground.getTileAt(tooltippedTile.x, tooltippedTile.y); + tileImage = tile.getImage(); } else { tile = null; + tileImage = null; } - if (tile != null) { - label = new JLabel(new ImageIcon(tile)); + if (tileImage != null) { + label = new JLabel(tile.getTileSet().getName(), new ImageIcon(tileImage), SwingConstants.LEFT); label.setPreferredSize(new Dimension(32,32)); content.add(label, JideBoxLayout.FIX); } else {