Fixed Dialogue Tree bug and spacing issues.

v0.6.14 released.
Dialogue Tree bug caused by copy-pasting code created NPEs when not
activating translator mode. Made Dialogue Tree node spacing double when
activating translator mode.
This commit is contained in:
Zukero
2018-09-17 20:55:18 +02:00
parent 1b01ecd37d
commit 00c05e7507
5 changed files with 6 additions and 6 deletions

View File

@@ -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.13";
public static final String APP_VERSION = "v0.6.14";
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";

View File

@@ -160,7 +160,7 @@ public class DialogueGraphView extends Display {
// now create the main layout routine
ActionList layout = new ActionList();//Activity.INFINITY);
NodeLinkTreeLayout treeLayout = new NodeLinkTreeLayout(GRAPH, prefuse.Constants.ORIENT_LEFT_RIGHT, 120, 40, 40);
NodeLinkTreeLayout treeLayout = new NodeLinkTreeLayout(GRAPH, prefuse.Constants.ORIENT_LEFT_RIGHT, 120, translatorMode ? 80 : 40, translatorMode ? 80 : 40);
treeLayout.setLayoutAnchor(new Point2D.Double(25,300));
layout.add(treeLayout);
layout.add(new EdgesLabelDecoratorLayout(EDGES_LABELS));
@@ -252,7 +252,7 @@ public class DialogueGraphView extends Display {
};
};
} else {
label = dialogue.message;
label = r.text;
}
rNode.setString(LABEL, label);
if (t != null) t.start();