mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 10:14:16 +02:00
wip
This commit is contained in:
@@ -85,6 +85,12 @@ export const allInOnePc = defineObject({
|
|||||||
applyFit();
|
applyFit();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ export const djPlayer = defineObject({
|
|||||||
applyFit();
|
applyFit();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null && options.customPicture !== '') {
|
if (options.customPicture != null && options.customPicture !== '') {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -95,6 +95,12 @@ export const laptopPc = defineObject({
|
|||||||
applyFit();
|
applyFit();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -161,6 +161,12 @@ export const pictureFrame = defineObject({
|
|||||||
applyDepth();
|
applyDepth();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ export const poster = defineObject({
|
|||||||
applySize();
|
applySize();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -52,6 +52,12 @@ export const tabletopFlag = defineObject({
|
|||||||
applyFit();
|
applyFit();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ export const tabletopGlassPictureFrame = defineObject({
|
|||||||
applySize();
|
applySize();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -166,6 +166,12 @@ export const tabletopPictureFrame = defineObject({
|
|||||||
applyDepth();
|
applyDepth();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -97,6 +97,12 @@ export const tapestry = defineObject({
|
|||||||
applySize();
|
applySize();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -83,6 +83,12 @@ export const wallCanvas = defineObject({
|
|||||||
applySize();
|
applySize();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
@@ -93,6 +93,12 @@ export const wallGlassPictureFrame = defineObject({
|
|||||||
applySize();
|
applySize();
|
||||||
|
|
||||||
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
const applyCustomPicture = () => new Promise<void>((resolve) => {
|
||||||
|
// テクスチャの読み込みに失敗したときの救済
|
||||||
|
// TODO: 丁寧な実装に直す
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 10000);
|
||||||
|
|
||||||
if (options.customPicture != null) {
|
if (options.customPicture != null) {
|
||||||
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
const tex = new BABYLON.Texture(options.customPicture, scene, false, false);
|
||||||
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;
|
||||||
|
|||||||
Reference in New Issue
Block a user