diff --git a/src/java/com/threerings/miso/client/MisoScenePanel.java b/src/java/com/threerings/miso/client/MisoScenePanel.java index 85bd1086e..2b4af68b9 100644 --- a/src/java/com/threerings/miso/client/MisoScenePanel.java +++ b/src/java/com/threerings/miso/client/MisoScenePanel.java @@ -1040,7 +1040,7 @@ public class MisoScenePanel extends VirtualMediaPanel // if we have an object action handler, possibly let them veto // the display of this tooltip and action ObjectActionHandler oah = ObjectActionHandler.lookup(action); - if (oah != null && !oah.actionAllowed(action)) { + if (oah != null && !oah.isVisible(action)) { continue; } diff --git a/src/java/com/threerings/miso/client/ObjectActionHandler.java b/src/java/com/threerings/miso/client/ObjectActionHandler.java index c7db154f0..eabdc0298 100644 --- a/src/java/com/threerings/miso/client/ObjectActionHandler.java +++ b/src/java/com/threerings/miso/client/ObjectActionHandler.java @@ -40,14 +40,24 @@ public class ObjectActionHandler { /** * Returns true if we should allow this object action, false if we - * should not. This is used to completely hide actions that should not - * be visible without the proper privileges. + * should not. */ public boolean actionAllowed (String action) { return true; } + /** + * Returns true if we should display the text for the action. By default + * this returns whether the action is allowed or not, but can be + * overridden by subclasses. This is used to completely hide actions that + * should not be visible without the proper privileges. + */ + public boolean isVisible (String action) + { + return actionAllowed(action); + } + /** * Get the human readable object tip for the specified action. */