Create a way to find out what the resource path is for the component & action in question.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@517 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mike Thomas
2008-05-30 03:17:24 +00:00
parent 3839762bc8
commit c2561037f0
3 changed files with 31 additions and 0 deletions
@@ -350,6 +350,17 @@ public class BundledComponentRepository
}
}
// from interface FrameProvider
public String getFramePath (CharacterComponent component, String action, String type)
{
String imgpath = action;
if (type != null) {
imgpath += "_" + type;
}
String root = component.componentClass.name + "/" + component.name + "/";
return _bundle.getIdent() + root + imgpath + BundleUtil.IMAGE_EXTENSION;
}
@Override // from IMImageProvider
public Mirage getTileImage (String path, Rectangle bounds, Colorization[] zations)
{