2024-09-06 13:27:00 +00:00
|
|
|
<script setup>
|
|
|
|
import WindowHandle from '@/views/partials/WindowHandle.vue';
|
|
|
|
|
|
|
|
import { onMounted, ref } from 'vue';
|
|
|
|
import { SetupHandle, SetSize, ResetPosition } from '@/services/Windows';
|
|
|
|
const props = defineProps(['data']);
|
|
|
|
const data = props.data;
|
|
|
|
|
|
|
|
const handle = ref(null);
|
|
|
|
|
|
|
|
let id = data.id;
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
SetupHandle(id, handle);
|
|
|
|
SetSize(id, {x: 750, y: 850});
|
|
|
|
ResetPosition(id, {x: window.innerWidth - 600, y: 60});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="window-wrapper" :id="'window-wrapper-' + id">
|
|
|
|
<WindowHandle :window="id" ref="handle" handleHeight="105px" custom="true" color="#731A2B"></WindowHandle>
|
|
|
|
<div class="header-info">
|
|
|
|
<div class="header-left-info">
|
|
|
|
<span class="header-char-name">Thrak Thor</span>
|
|
|
|
<span class="header-class-info">Lv. 1 Rogue</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-right-info">
|
|
|
|
<div class="header-xp-bar-container">
|
|
|
|
<span class="xp-text">33 / 300 XP</span>
|
|
|
|
<div class="xp-progress-bar">
|
|
|
|
<div class="xp-progress-bar-content"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="header-xp-level">13</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-09-06 23:42:57 +00:00
|
|
|
|
|
|
|
<div class="bookmarks">
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/lorc/cog.svg">
|
|
|
|
</div>
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/sbed/electric.svg">
|
|
|
|
</div>
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/delapouite/light-backpack.svg">
|
|
|
|
</div>
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/lorc/burning-blobs.svg">
|
|
|
|
</div>
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/delapouite/skills.svg">
|
|
|
|
</div>
|
|
|
|
<div class="bookmark">
|
|
|
|
<img class="icon-no-filter" draggable="false" src="icons/game-icons/ffffff/willdabeast/white-book.svg">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="header-attr">
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">STR</span>
|
|
|
|
<span class="attr-bonus">+1</span>
|
|
|
|
<span class="attr-score">13</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">DEX</span>
|
|
|
|
<span class="attr-bonus">+3</span>
|
|
|
|
<span class="attr-score">16</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">CON</span>
|
|
|
|
<span class="attr-bonus">+2</span>
|
|
|
|
<span class="attr-score">14</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">INT</span>
|
|
|
|
<span class="attr-bonus">+1</span>
|
|
|
|
<span class="attr-score">12</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">WIS</span>
|
|
|
|
<span class="attr-bonus">-1</span>
|
|
|
|
<span class="attr-score">8</span>
|
|
|
|
</div>
|
|
|
|
<div class="header-hex">
|
|
|
|
<span class="attr-name">CHA</span>
|
|
|
|
<span class="attr-bonus">+1</span>
|
|
|
|
<span class="attr-score">13</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
Hola
|
2024-09-06 13:27:00 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-09-06 23:42:57 +00:00
|
|
|
.bookmarks {
|
|
|
|
position: absolute;
|
|
|
|
top: 120px;
|
|
|
|
left: 750px;
|
|
|
|
|
|
|
|
.bookmark {
|
|
|
|
background-color: #181818;
|
|
|
|
padding: 10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 9px;
|
|
|
|
border: solid 1px #9e9e9e22;
|
|
|
|
border-left-width: 0px;
|
|
|
|
|
|
|
|
.icon-no-filter {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-attr {
|
|
|
|
position: absolute;
|
|
|
|
top: 70px;
|
|
|
|
right: 100px;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-hex {
|
|
|
|
width: 70px;
|
|
|
|
height: 70px;
|
|
|
|
margin-right: 5px;
|
|
|
|
background: #DED4D6;
|
|
|
|
-webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
|
|
|
|
clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.attr-name {
|
|
|
|
margin-top: 7px;
|
|
|
|
color: #1B1A18;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.attr-bonus {
|
|
|
|
color: #1B1A18;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-top: -5px;
|
|
|
|
font-size: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.attr-score {
|
|
|
|
font-size: 12px;
|
|
|
|
margin-top: -5px;
|
|
|
|
color: #1B1A18;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-06 13:27:00 +00:00
|
|
|
.header-info {
|
|
|
|
height: 105px;
|
|
|
|
pointer-events: none;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: -105px; /* Adjust to fixed height header */
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-left-info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-right: auto;
|
|
|
|
align-items: left;
|
|
|
|
|
|
|
|
.header-char-name {
|
|
|
|
font-family:NodestoCapsCondensed;
|
|
|
|
font-size: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-class-info {
|
|
|
|
text-align: left;
|
|
|
|
margin-top: -10px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-right-info {
|
|
|
|
margin-left: auto;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.header-xp-bar-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: left;
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
.xp-progress-bar {
|
|
|
|
height: 10px;
|
|
|
|
width: 200px;
|
|
|
|
background-color: #1B1A18;
|
|
|
|
border-width: 2px;
|
|
|
|
border-color: #AA9E89;
|
|
|
|
border-style: solid;
|
|
|
|
|
|
|
|
.xp-progress-bar-content {
|
|
|
|
width:20px;
|
|
|
|
height: 100%;
|
|
|
|
background-color: #AA9E89;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.xp-text {
|
|
|
|
text-align: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-xp-level {
|
|
|
|
font-size: 32px;
|
|
|
|
font-weight: bold;
|
|
|
|
width: 70px;
|
|
|
|
height: 70px;
|
|
|
|
background-color: #1B1A18;
|
|
|
|
line-height: 68px;
|
|
|
|
border-radius: 35px;
|
|
|
|
border-color: #AA9E89;
|
|
|
|
border-width: 4px;
|
|
|
|
border-style: solid;
|
|
|
|
margin-right: 20px;
|
|
|
|
|
|
|
|
font-family:'Courier New', Courier, monospace;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.window-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-09-06 23:42:57 +00:00
|
|
|
border: solid 1px #AA9E89aa;
|
2024-09-06 13:27:00 +00:00
|
|
|
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|