trackeditor: only export race line file

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9236 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
iobyte 2024-01-07 16:38:02 +00:00
parent cd126c4c17
commit 0ab3e21df1
3 changed files with 15 additions and 3 deletions

View File

@ -2349,7 +2349,7 @@ public class EditorFrame extends JFrame
ac3E2Action = new ExportAC3E2Action("AC3 with terrain and white track elevation map", null, "Create AC3 file and terrain and white track elevation map.", null);
ac3E3Action = new ExportAC3E3Action("AC3 with track elevation map", null, "Create AC3 file and track elevation map.", null);
ac3E4Action = new ExportAC3E4Action("AC3 with track with height steps elevation map", null, "Create AC3 file and track with height steps elevation map.", null);
ac3RacelineAction = new ExportAC3RacelineAction("AC3 with race line", null, "Create AC3 file with race line.", null);
ac3RacelineAction = new ExportAC3RacelineAction("AC3 race line", null, "Create AC3 race line file.", null);
calcDeltaAction = new CalcDeltaAction("Delta's", createNavigationIcon("Calc24"), "Calculate Delta's for x,y,z and angle.", KeyEvent.VK_S);
importAction = new ImportAction("Speed Dreams", null, "Speed Dreams xml file", null);
exportAction = new ExportAction("Speed Dreams", null, "Speed Dreams xml file", null);

View File

@ -99,11 +99,23 @@ public class TrackgenPanel extends JDialog implements Runnable
String trackName = path.substring(path.lastIndexOf(sep) + 1);
String category = " -c " + editorFrame.getTrackData().getHeader().getCategory();
String name = " -n " + trackName;
String args = " -a" + category + name;
String args = category + name;
if (additionalArgs != null)
{
args = args + additionalArgs;
// don't create everything for race line
if (!args.contains("-r"))
{
args += " -a";
}
}
else
{
args += " -a";
}
System.out.println(args);
try

View File

@ -34,7 +34,7 @@ public class Properties
private static Properties instance = new Properties();
private Vector<ActionListener> propertiesListeners = new Vector<ActionListener>();
public final String title = "sd2-trackeditor";
public final String version = "1.3.30";
public final String version = "1.3.31";
private String path;
private double imageScale = 1;