trackeditor: show error dialog for trackgen fatal errors
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8369 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: e12678f08eea9755f0c0ff40a6e57eda30a03d03 Former-commit-id: 6ae420a62c1c312016ca183d1a419ae866d193d6
This commit is contained in:
parent
8a072a8692
commit
0918200014
1 changed files with 8 additions and 0 deletions
|
@ -117,6 +117,11 @@ public class TrackgenPanel extends JDialog implements Runnable
|
|||
JOptionPane.showMessageDialog(this, str.substring(index + 6), "Export AC3D", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
}
|
||||
index = str.indexOf("FATAL:");
|
||||
if (index != -1)
|
||||
{
|
||||
JOptionPane.showMessageDialog(this, str.substring(index + 6), "Export AC3D", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
if (ls_in.ready())
|
||||
|
@ -147,6 +152,9 @@ public class TrackgenPanel extends JDialog implements Runnable
|
|||
}else if (tmp.equals("YSize"))
|
||||
{
|
||||
this.ySizeLabel.setText(ls_str);
|
||||
}else if (tmp.equals("FATAL:"))
|
||||
{
|
||||
JOptionPane.showMessageDialog(this, ls_str, "Export AC3D", JOptionPane.ERROR_MESSAGE);
|
||||
}else
|
||||
{
|
||||
this.nodesTextField.setText(ls_str);
|
||||
|
|
Loading…
Reference in a new issue