feat(nds): add 2d css NDS and move 3d nds to NDS3D component
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m21s

This commit is contained in:
2026-02-15 22:41:21 +01:00
parent 8bdfbe1bff
commit ee60239f3f
3 changed files with 470 additions and 7 deletions

View File

@@ -27,19 +27,19 @@ const bottomScreenCanvas = computed(() => bottomScreen.value?.canvas ?? null);
<TresAmbientLight />
<TresDirectionalLight />
<NDS
<NDS3D
v-if="topScreenCanvas && bottomScreenCanvas"
:top-screen-canvas="topScreenCanvas"
:bottom-screen-canvas="bottomScreenCanvas"
/>
</TresCanvas>
<div
<NDS2D
:style="{
visibility: app.settings.renderingMode === '3d' ? 'hidden' : 'visible',
}"
>
<div>
<template #topScreen>
<Screen ref="topScreen">
<IntroTopScreen v-if="!app.booted" />
<HomeTopScreen v-else-if="app.screen === 'home'" />
@@ -52,8 +52,8 @@ const bottomScreenCanvas = computed(() => bottomScreen.value?.canvas ?? null);
<AchievementsNotification />
<CommonConfetti screen="top" />
</Screen>
</div>
<div>
</template>
<template #bottomScreen>
<Screen ref="bottomScreen">
<IntroBottomScreen v-if="!app.booted" />
<HomeBottomScreen v-else-if="app.screen === 'home'" />
@@ -65,7 +65,7 @@ const bottomScreenCanvas = computed(() => bottomScreen.value?.canvas ?? null);
<CommonConfetti screen="bottom" />
</Screen>
</div>
</div>
</template>
</NDS2D>
</div>
</template>