From 0f6f77163634d1358fd77b226b660f132513fb90 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Thu, 9 Aug 2001 06:26:52 +0000 Subject: [PATCH] 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 --- .../com/threerings/miso/client/IsoSceneView.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/client/IsoSceneView.java b/src/java/com/threerings/miso/client/IsoSceneView.java index 6ea481862..8946bfe86 100644 --- a/src/java/com/threerings/miso/client/IsoSceneView.java +++ b/src/java/com/threerings/miso/client/IsoSceneView.java @@ -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); }