Fixed bug in saving clusters to XML. Added checkbox to editor to

allow display of locations and cluster indexes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@212 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-10 21:17:07 +00:00
parent ff101fb4ef
commit 8d7c2fc4e9
8 changed files with 168 additions and 58 deletions
@@ -1,5 +1,5 @@
//
// $Id: IsoSceneViewModel.java,v 1.5 2001/08/08 22:29:39 shaper Exp $
// $Id: IsoSceneViewModel.java,v 1.6 2001/08/10 21:17:07 shaper Exp $
package com.threerings.miso.scene;
@@ -62,6 +62,9 @@ public class IsoSceneModel
/** Whether tile coordinates should be drawn. */
public boolean showCoords;
/** Whether locations in the scene should be drawn. */
public boolean showLocs;
/**
* Construct an IsoSceneModel with reasonable default values.
*/
@@ -72,6 +75,7 @@ public class IsoSceneModel
setBounds(600, 600);
setOrigin(bounds.width / 2, -(9 * tilehei));
showCoords = false;
showLocs = false;
}
/**
@@ -86,6 +90,42 @@ public class IsoSceneModel
finegran = gran;
}
/**
* Return whether locations in the scene are currently drawn.
*/
public boolean getShowLocations ()
{
return showLocs;
}
/**
* Set whether locations in the scene should be drawn.
*
* @param show whether to show locations.
*/
public void setShowLocations (boolean show)
{
showLocs = show;
}
/**
* Return whether coordinates are currently drawn for each tile.
*/
public boolean getShowCoordinates ()
{
return showCoords;
}
/**
* Set whether coordinates should be drawn for each tile.
*
* @param show whether to show coordinates.
*/
public void setShowCoordinates (boolean show)
{
showCoords = show;
}
/**
* Set the dimensions of the tiles that comprise the base layer of
* the isometric view and therefore drive the view geometry as a