This commit is contained in:
syuilo 2026-06-13 15:59:23 +09:00
commit 600dae3d68
7 changed files with 16 additions and 2 deletions

View file

@ -4042,3 +4042,4 @@ _miRoom:
kakejiku: "掛軸"
_kakejiku:
image: "画像"
"image:kitsuaishinsei": "喫藍心整"

View file

@ -22,6 +22,8 @@ export const kakejiku = defineFuniture(kakejiku_schema, {
let url: string | null = null;
if (options.image.type === '_custom_') {
url = options.image.custom?.url ?? null;
} else if (options.image.type === 'kitsuaishinsei') {
url = '/client-assets/world/objects/kakejiku/images/kitsuaishinsei.png';
}
return textureManager.change(url, options.image.fit, options.image.rotation).then((tex) => {
imageMaterial.albedoTexture = tex;

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -12,6 +12,11 @@ export const kakejiku_ui = defineFurnitureUi<typeof kakejiku_schema>({
options: {
image: {
label: i18n.ts._miRoom._furnitures._kakejiku.image,
presets: {
'kitsuaishinsei': {
label: i18n.ts._miRoom._furnitures._kakejiku['image:kitsuaishinsei'],
},
},
},
},
});

View file

@ -15032,6 +15032,10 @@ export interface Locale extends ILocale {
*
*/
"image": string;
/**
*
*/
"image:kitsuaishinsei": string;
};
};
};

View file

@ -10,11 +10,13 @@ export const kakejiku_schema = defineFurnitureSchema({
schema: {
image: {
type: 'image',
presets: [],
presets: [{
value: 'kitsuaishinsei',
}],
},
},
default: {
image: { type: null },
image: { type: 'kitsuaishinsei' },
},
},
placement: 'side',