Added world creation dialog

This commit is contained in:
Alexis
2024-09-09 22:09:59 +02:00
parent f6898da2f2
commit c19262e3c2
12 changed files with 403 additions and 62 deletions

View File

@@ -0,0 +1,20 @@
<script lang="ts" setup>
import { type RPGColor, rpgColors } from "~/models/Color";
const model = defineModel<RPGColor>()
</script>
<template>
<UiSelect v-model="model">
<UiSelectTrigger>
<UiSelectValue :placeholder="$t('ui.colors.selectOne')" />
</UiSelectTrigger>
<UiSelectContent>
<UiSelectGroup>
<UiSelectItem v-for="color in rpgColors" :key="color" :value="color">
{{ $t(`ui.colors.${color}`) }}
</UiSelectItem>
</UiSelectGroup>
</UiSelectContent>
</UiSelect>
</template>