mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 23:55:48 +02:00
wip
This commit is contained in:
@@ -46,11 +46,17 @@ export const tabletopDigitalClock = defineObject({
|
||||
'4g': root.getChildMeshes().find(m => m.name.includes('__TIME_7SEG_4G__')),
|
||||
};
|
||||
|
||||
const colonMeshes = root.getChildMeshes().filter(m => m.name.includes('__TIME_7SEG_COLON__'));
|
||||
|
||||
const onMeshes = get7segMeshesOfCurrentTime(meshes);
|
||||
|
||||
for (const mesh of Object.values(meshes)) {
|
||||
mesh.isVisible = onMeshes.includes(mesh);
|
||||
}
|
||||
|
||||
for (const mesh of colonMeshes) {
|
||||
mesh.isVisible = Date.now() % 2000 < 1000;
|
||||
}
|
||||
}, 1000));
|
||||
},
|
||||
interactions: {},
|
||||
|
||||
Reference in New Issue
Block a user