trackeditor: warn about fence barriers with width

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

Former-commit-id: c8b288e5338ebfe82b79e8f9deec3ab92706e86c
Former-commit-id: 6ab920ad60ea85cd6cfb23b2f5c9f561b0655974
This commit is contained in:
iobyte 2023-05-29 00:20:24 +00:00
parent f3a4f88f40
commit e7b2872098
2 changed files with 23 additions and 1 deletions

View file

@ -148,6 +148,28 @@ public class CheckDialog extends JDialog
}
}
}
for (int i = 0; i < segments.size(); i++)
{
Segment segment = segments.get(i);
if ("fence".equals(segment.getValidLeftBarrierStyle(editorFrame)))
{
double width = segment.getValidLeftBarrierWidth(editorFrame);
if (width != 0)
{
textArea.append("Segment " + segment.getName() + " Left barrier style is fence with " + width + " width (set barrier style to wall or don't set a width)\n");
}
}
if ("fence".equals(segment.getValidRightBarrierStyle(editorFrame)))
{
double width = segment.getValidRightBarrierWidth(editorFrame);
if (width != 0)
{
textArea.append("Segment " + segment.getName() + " Right barrier style is fence with " + width + " width (set barrier style to wall or don't set a width)\n");
}
}
}
}
public void checkHeader()

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