Highlight the fine coordinate on mouse-over when placing a location.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@206 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: IsoSceneView.java,v 1.32 2001/08/09 05:44:07 shaper Exp $
|
||||
// $Id: IsoSceneView.java,v 1.33 2001/08/09 06:26:52 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -334,11 +334,21 @@ public class IsoSceneView implements EditableSceneView
|
||||
|
||||
public void setHighlightedTile (int sx, int sy)
|
||||
{
|
||||
if (sx == -1 && sy == -1) {
|
||||
_htile.setLocation(-1, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
IsoUtil.screenToTile(_model, sx, sy, _htile);
|
||||
}
|
||||
|
||||
public void setHighlightedFull (int x, int y)
|
||||
{
|
||||
if (x == -1 && y == -1) {
|
||||
_hfull.setLocation(-1, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
IsoUtil.screenToFull(_model, x, y, _hfull);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user