fis: uri
This commit is contained in:
parent
d2bb1273ac
commit
37561dd66a
|
@ -149,7 +149,7 @@ export default (latus) => class Pictured extends decorate(Trait) {
|
||||||
const {fromResourceType: {Image}} = resource(latus);
|
const {fromResourceType: {Image}} = resource(latus);
|
||||||
const sprites = await mapValuesAsync(
|
const sprites = await mapValuesAsync(
|
||||||
this.params.images,
|
this.params.images,
|
||||||
async (json) => new Sprite(await Image.load(json)),
|
async (json) => new Sprite(await Image.load(json.uri)),
|
||||||
);
|
);
|
||||||
Object.keys(sprites).forEach((key) => {
|
Object.keys(sprites).forEach((key) => {
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
|
@ -178,6 +178,9 @@ export default (latus) => class Pictured extends decorate(Trait) {
|
||||||
}
|
}
|
||||||
|
|
||||||
showImage(key) {
|
showImage(key) {
|
||||||
|
if (!this.entity.container) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!this.#sprites) {
|
if (!this.#sprites) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user