trackeditor: fix saving of edited object map objects
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9214 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
8ab6fd749e
commit
878857f1a1
|
@ -482,7 +482,6 @@ public class TrackObjectDialog extends JDialog
|
|||
return;
|
||||
}
|
||||
editorFrame.setCurrentObjectMap(objectMapComboBox.getSelectedIndex());
|
||||
changed = true;
|
||||
}
|
||||
|
||||
private void objectComboBoxChanged()
|
||||
|
@ -561,7 +560,7 @@ public class TrackObjectDialog extends JDialog
|
|||
JOptionPane.showMessageDialog(this, "No object selected!", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
setRGB(rgb);
|
||||
|
||||
if (objectShape != null)
|
||||
|
@ -588,6 +587,7 @@ public class TrackObjectDialog extends JDialog
|
|||
String newName = (String) objectComboBox.getSelectedItem();
|
||||
|
||||
objectShape.setName(newName);
|
||||
editorFrame.getObjectMaps().get(editorFrame.getCurrentObjectMap()).setChanged(true);
|
||||
}
|
||||
|
||||
if (graphicObject == null)
|
||||
|
|
|
@ -2435,6 +2435,8 @@ public class CircuitView extends JComponent implements KeyListener, MouseListene
|
|||
{
|
||||
if (objects.elementAt(j) == shape)
|
||||
{
|
||||
editorFrame.setCurrentObjectMap(i);
|
||||
|
||||
Undo.add(new UndoEditObject(objectMap, shape));
|
||||
|
||||
TrackObjectDialog editObjectDialog = new TrackObjectDialog(editorFrame, false, shape, me.getXOnScreen(), me.getYOnScreen());
|
||||
|
|
|
@ -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.25";
|
||||
public final String version = "1.3.26";
|
||||
private String path;
|
||||
|
||||
private double imageScale = 1;
|
||||
|
|
Loading…
Reference in New Issue