Fixed missing attributes in TMX file loading and writing (sizes in

tilesets).
Added a fancy logo in the workspace selector... could look better
though.
This commit is contained in:
Zukero
2015-08-12 15:14:30 +02:00
parent 1c90d47bdf
commit c870be2d1f
4 changed files with 23 additions and 3 deletions

View File

@@ -257,7 +257,11 @@ public class TMXMapWriter
if (tileBitmapFile != null) {
w.startElement("image");
w.writeAttribute("source", getRelativePath(wp, tileBitmapFile));
if (set.sheetDimensions != null) {
w.writeAttribute("width", set.sheetDimensions.width);
w.writeAttribute("height", set.sheetDimensions.height);
}
Color trans = set.getTransparentColor();
if (trans != null) {
w.writeAttribute("trans", Integer.toHexString(