Foundry and discord bot
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m51s

This commit is contained in:
2026-10-11 22:26:29 +02:00
parent a2b512699a
commit 1402045001
65 changed files with 5962 additions and 144 deletions

View File

@@ -1,10 +1,16 @@
<script setup>
import TopSearchBar from './topbar/TopSearchBar.vue';
import { useCampaignService } from '~/services/Campaign.js';
import { ClearWindow, CreateWindow } from '~/services/Windows';
const campaignName = computed(() => {
return 'Campaign';
});
const { Campaign } = useCampaignService();
const campaignName = computed(() => Campaign.value?.name || 'Campaign');
function OpenCampaignSettings() {
if (!Campaign.value) return;
ClearWindow({ type: 'campaign_settings' });
CreateWindow('campaign_settings', { campaign: Campaign.value });
}
</script>
<template>
@@ -18,7 +24,11 @@ const campaignName = computed(() => {
<div class="center">
<TopSearchBar></TopSearchBar>
</div>
<div class="right"></div>
<div class="right">
<button class="btn-primary settings-button sound-click" type="button" @click="OpenCampaignSettings">
{{ $t('main-menu.settings') }}
</button>
</div>
</div>
</template>
@@ -40,16 +50,25 @@ const campaignName = computed(() => {
left: 6px;
}
.left, .right {
.left {
flex: 1;
}
.center {
display: flex;
align-items: center;
}
.right {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
padding-right: 10px;
justify-content: flex-end;
flex: 1;
padding: 0 10px;
}
.settings-button {
padding: 5px 10px;
}
.top-bar-title {