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
e62c85a971
commit
58feedb53d
11 changed files with 66 additions and 0 deletions
|
|
@ -85,6 +85,12 @@ export const allInOnePc = defineObject({
|
|||
applyFit();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@ export const djPlayer = defineObject({
|
|||
applyFit();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null && options.customPicture !== '') {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -95,6 +95,12 @@ export const laptopPc = defineObject({
|
|||
applyFit();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -161,6 +161,12 @@ export const pictureFrame = defineObject({
|
|||
applyDepth();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -93,6 +93,12 @@ export const poster = defineObject({
|
|||
applySize();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -52,6 +52,12 @@ export const tabletopFlag = defineObject({
|
|||
applyFit();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -93,6 +93,12 @@ export const tabletopGlassPictureFrame = defineObject({
|
|||
applySize();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -166,6 +166,12 @@ export const tabletopPictureFrame = defineObject({
|
|||
applyDepth();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -97,6 +97,12 @@ export const tapestry = defineObject({
|
|||
applySize();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,12 @@ export const wallCanvas = defineObject({
|
|||
applySize();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
|
|
@ -93,6 +93,12 @@ export const wallGlassPictureFrame = defineObject({
|
|||
applySize();
|
||||
|
||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||
// テクスチャの読み込みに失敗したときの救済
|
||||
// TODO: 丁寧な実装に直す
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 10000);
|
||||
|
||||
if (options.customPicture != null) {
|
||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue