v0.5.4 released! Keyword is data-protection. Many small bugfixes, but

main changes are:
- Modified marker (* character before name) goes up the project tree by
marking all parents of a modified object as modified.
- Impact management when changing an object's ID. Allows for some
refactoring to occur, while marking the impacted elements as modified,
or aven creating "altered" versions if imapcted element was only in game
source.
This commit is contained in:
Zukero
2017-04-07 10:01:31 +02:00
parent 49f19abb91
commit bd8576df0c
43 changed files with 462 additions and 91 deletions

View File

@@ -62,7 +62,6 @@ public class TMXMap extends GameDataElement {
public Integer outside = null;
public ColorFilter colorFilter = null;
public boolean writable = false;
public boolean changedOnDisk = false;
public int dismissNextChangeNotif = 0;
@@ -129,6 +128,7 @@ public class TMXMap extends GameDataElement {
clone.groups = new ArrayList<MapObjectGroup>();
}
MapObjectGroup group = new MapObjectGroup((tiled.core.ObjectGroup) layer, this);
group.link();
clone.groups.add(group);
}
}
@@ -201,7 +201,7 @@ public class TMXMap extends GameDataElement {
}
@Override
public String getDesc() {
return ((this.state == State.modified || this.state == State.created) ? "*" : "")+id;
return (needsSaving() ? "*" : "")+id;
}
@Override
@@ -315,7 +315,7 @@ public class TMXMap extends GameDataElement {
if (this.state == GameDataElement.State.init) {
parse();
}
if (this.state == GameDataElement.State.parsed || this.state == GameDataElement.State.created) {
if (this.state == GameDataElement.State.parsed) {
if (groups != null) {
for (MapObjectGroup group : groups) {
group.link();