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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user