feat: accessibility settings, subtitle/QTE improvements, docs update

This commit is contained in:
2026-06-09 19:42:08 +08:00
parent 33ad26ed52
commit c9d29019a0
8 changed files with 387 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, watch, computed } from 'vue'
import { useGameStore } from '@/stores/gameStore'
interface SubCue {
start: number
@@ -14,6 +15,7 @@ const props = defineProps<{
lang?: string
}>()
const store = useGameStore()
const cues = ref<SubCue[]>([])
const currentText = ref('')
const loadedUrl = ref('')
@@ -96,7 +98,13 @@ function vttTimeToSeconds(ts: string): number {
<template>
<div class="subtitles" v-if="currentText">
<div class="sub-text">{{ currentText }}</div>
<div
class="sub-text"
:style="{
fontSize: store.subFontSize + 'px',
background: `rgba(0, 0, 0, ${store.subBgAlpha})`,
}"
>{{ currentText }}</div>
</div>
</template>