Added facility for toggling whether object footprints are to be shown.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1469 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2002-06-17 18:01:47 +00:00
parent e52a400a3f
commit a68638ddb9
2 changed files with 15 additions and 2 deletions
@@ -1,5 +1,5 @@
//
// $Id: IsoSceneViewModel.java,v 1.24 2002/05/17 19:06:23 ray Exp $
// $Id: IsoSceneViewModel.java,v 1.25 2002/06/17 18:01:47 shaper Exp $
package com.threerings.miso.scene;
@@ -206,6 +206,15 @@ public class IsoSceneViewModel
notifyListeners(IsoSceneViewModelListener.SHOW_COORDINATES_CHANGED);
}
/**
* Toggle whether footprints should be drawn for each object tile.
*/
public void toggleShowFootprints ()
{
showFootprints = !showFootprints;
notifyListeners(IsoSceneViewModelListener.SHOW_FOOTPRINTS_CHANGED);
}
/**
* Pre-calculate various member data that are commonly used in working
* with an isometric view.
@@ -1,5 +1,5 @@
//
// $Id: IsoSceneViewModelListener.java,v 1.3 2001/11/18 04:09:22 mdb Exp $
// $Id: IsoSceneViewModelListener.java,v 1.4 2002/06/17 18:01:47 shaper Exp $
package com.threerings.miso.scene;
@@ -16,6 +16,10 @@ public interface IsoSceneViewModelListener
* configuration has changed.. */
public static final int SHOW_COORDINATES_CHANGED = 0;
/** Notification event constant indicating that the "show footprints"
* configuration has changed.. */
public static final int SHOW_FOOTPRINTS_CHANGED = 1;
/**
* Called by the {@link com.threerings.miso.scene.IsoSceneView} when
* the model is changed.