Let object action handlers have a crack at modifying the tool tip text
for an action (we already let them have a crack at the icon). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2930 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MisoScenePanel.java,v 1.53 2003/12/13 02:52:00 mdb Exp $
|
// $Id: MisoScenePanel.java,v 1.54 2004/01/07 22:03:08 ray Exp $
|
||||||
|
|
||||||
package com.threerings.miso.client;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -1005,7 +1005,8 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
*/
|
*/
|
||||||
protected String getTipText (SceneObject scobj, String action)
|
protected String getTipText (SceneObject scobj, String action)
|
||||||
{
|
{
|
||||||
return action;
|
ObjectActionHandler oah = ObjectActionHandler.lookup(action);
|
||||||
|
return (oah == null) ? action : oah.getTipText(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ObjectActionHandler.java,v 1.1 2003/04/17 19:21:16 mdb Exp $
|
// $Id: ObjectActionHandler.java,v 1.2 2004/01/07 22:03:08 ray Exp $
|
||||||
|
|
||||||
package com.threerings.miso.client;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -30,6 +30,14 @@ public class ObjectActionHandler
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the human readable object tip for the specified action.
|
||||||
|
*/
|
||||||
|
public String getTipText (String action)
|
||||||
|
{
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the tooltip icon for the specified action or null if the
|
* Returns the tooltip icon for the specified action or null if the
|
||||||
* action has no tooltip icon.
|
* action has no tooltip icon.
|
||||||
|
|||||||
Reference in New Issue
Block a user