mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
ab9d6947ae
commit
600dae3d68
7 changed files with 16 additions and 2 deletions
|
|
@ -4042,3 +4042,4 @@ _miRoom:
|
|||
kakejiku: "掛軸"
|
||||
_kakejiku:
|
||||
image: "画像"
|
||||
"image:kitsuaishinsei": "喫藍心整"
|
||||
|
|
|
|||
|
|
@ -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.
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
|
|
@ -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'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15032,6 +15032,10 @@ export interface Locale extends ILocale {
|
|||
* 画像
|
||||
*/
|
||||
"image": string;
|
||||
/**
|
||||
* 喫藍心整
|
||||
*/
|
||||
"image:kitsuaishinsei": string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue