Finished character screen panel
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
<div class="hidden sm:flex gap-1.5 flex-wrap">
|
||||
<button @click.stop="userPanelScreen = 'inventory'" :class="{ 'active': userPanelScreen === 'inventory' }" class="btn-cyan py-1.5 px-4 min-w-24">Inventory</button>
|
||||
<button @click.stop="userPanelScreen = 'equipment'" :class="{ 'active': userPanelScreen === 'equipment' }" class="btn-cyan py-1.5 px-4 min-w-24">Equipment</button>
|
||||
<button class="btn-cyan py-1.5 px-4 min-w-24">Character</button>
|
||||
<button @click.stop="userPanelScreen = 'characterScreen'" :class="{ 'active': userPanelScreen === 'characterScreen' }" class="btn-cyan py-1.5 px-4 min-w-24">Character</button>
|
||||
<button class="btn-cyan py-1.5 px-4 min-w-24">Settings</button>
|
||||
</div>
|
||||
<div class="flex gap-2.5">
|
||||
@ -17,12 +17,13 @@
|
||||
<div class="flex sm:hidden gap-1.5 flex-wrap">
|
||||
<button @click.stop="userPanelScreen = 'inventory'" :class="{ 'active': userPanelScreen === 'inventory' }" class="btn-cyan py-1.5 px-4 min-w-24">Inventory</button>
|
||||
<button @click.stop="userPanelScreen = 'equipment'" :class="{ 'active': userPanelScreen === 'equipment' }" class="btn-cyan py-1.5 px-4 min-w-24">Equipment</button>
|
||||
<button class="btn-cyan py-1.5 px-4 min-w-24">Character</button>
|
||||
<button @click.stop="userPanelScreen = 'characterScreen'" :class="{ 'active': userPanelScreen === 'characterScreen' }" class="btn-cyan py-1.5 px-4 min-w-24">Character</button>
|
||||
<button class="btn-cyan py-1.5 px-4 min-w-24">Settings</button>
|
||||
</div>
|
||||
</div>
|
||||
<InventoryItems v-show="userPanelScreen === 'inventory'" />
|
||||
<InventoryEquipment v-show="userPanelScreen === 'equipment'" />
|
||||
<Inventory v-show="userPanelScreen === 'inventory'" />
|
||||
<Equipment v-show="userPanelScreen === 'equipment'" />
|
||||
<CharacterScreen v-show="userPanelScreen === 'characterScreen'" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -30,8 +31,9 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useGameStore } from '@/stores/game';
|
||||
import InventoryItems from '@/components/gui/partials/Inventory.vue';
|
||||
import InventoryEquipment from '@/components/gui/partials/Equipment.vue';
|
||||
import Inventory from '@/components/gui/partials/Inventory.vue';
|
||||
import Equipment from '@/components/gui/partials/Equipment.vue';
|
||||
import CharacterScreen from '@/components/gui/partials/CharacterScreen.vue';
|
||||
|
||||
const gameStore = useGameStore()
|
||||
let userPanelScreen = ref('inventory')
|
||||
|
Reference in New Issue
Block a user