mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 06:54:08 +02:00
Update tabletopLcdButtonsController.ts
This commit is contained in:
@@ -74,6 +74,12 @@ export const tabletopLcdButtonsController = 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user