trackeditor: warn about track border style plan with height

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8959 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 044c1d3f7acef1ac84f09ace4e3dcf029e31ae4b
Former-commit-id: 9862faa21bd3a884c1d5966c39d5b19f852fe3b9
This commit is contained in:
iobyte 2023-05-30 14:52:16 +00:00
parent 09c03858be
commit 9a8b4a8c66
2 changed files with 20 additions and 2 deletions

View file

@ -152,7 +152,25 @@ public class CheckDialog extends JDialog
for (int i = 0; i < segments.size(); i++)
{
Segment segment = segments.get(i);
if ("plan".equals(segment.getValidLeftBorderStyle(editorFrame)))
{
double height = segment.getValidLeftBorderHeight(editorFrame);
if (height != 0)
{
textArea.append("Segment " + segment.getName() + " Left border style is plan with " + height + " height (set border style to curb or wall or don't set a height)\n");
}
}
if ("plan".equals(segment.getValidRightBorderStyle(editorFrame)))
{
double height = segment.getValidRightBorderHeight(editorFrame);
if (height != 0)
{
textArea.append("Segment " + segment.getName() + " Right border style is plan with " + height + " height (set border style to curb or wall or don't set a height)\n");
}
}
if ("fence".equals(segment.getValidLeftBarrierStyle(editorFrame)))
{
double width = segment.getValidLeftBarrierWidth(editorFrame);

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.2.21";
public final String version = "1.2.22";
private String path;
private double imageScale = 1;