pop19
This commit is contained in:
parent
9883d10904
commit
84e43cfe2e
@ -212,18 +212,17 @@ body {
|
|||||||
========================= */
|
========================= */
|
||||||
|
|
||||||
.character {
|
.character {
|
||||||
display: flex;
|
position: absolute;
|
||||||
align-items: center;
|
top: 90px;
|
||||||
justify-content: center;
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
#character-ui {
|
#character-ui {
|
||||||
display: flex;
|
position: relative;
|
||||||
justify-content: center;
|
width: 500px;
|
||||||
gap: 60px;
|
height: 420px;
|
||||||
|
margin: auto;
|
||||||
margin-bottom: 40px;
|
|
||||||
margin-top: -20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.equip-left,
|
.equip-left,
|
||||||
@ -246,7 +245,7 @@ body {
|
|||||||
.equip-slot {
|
.equip-slot {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
|
position: relative;
|
||||||
background-image: url("/images/items/slot_mittel.png");
|
background-image: url("/images/items/slot_mittel.png");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
@ -256,6 +255,86 @@ body {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.slot-label {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -18px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #3a2413;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Slot Basis */
|
||||||
|
|
||||||
|
.slot {
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
width: 70px;
|
||||||
|
height: 70px;
|
||||||
|
|
||||||
|
background-image: url("/images/items/slot_mittel.png");
|
||||||
|
background-size: cover;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Slot Positionen */
|
||||||
|
|
||||||
|
.helmet {
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.shoulder {
|
||||||
|
top: 60px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amulet {
|
||||||
|
top: 60px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gloves {
|
||||||
|
top: 150px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon {
|
||||||
|
top: 150px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.belt {
|
||||||
|
top: 230px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shield {
|
||||||
|
top: 230px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ring1 {
|
||||||
|
top: 310px;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ring2 {
|
||||||
|
top: 310px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boots {
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
Inventory
|
Inventory
|
||||||
========================= */
|
========================= */
|
||||||
|
|||||||
@ -5,55 +5,25 @@ export async function loadWohnhaus() {
|
|||||||
|
|
||||||
<div id="character-ui">
|
<div id="character-ui">
|
||||||
|
|
||||||
<div class="equip-left">
|
<div class="slot helmet" data-slot="helmet"></div>
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="helmet" title="Helm">
|
<div class="slot shoulder" data-slot="shoulder"></div>
|
||||||
<img src="/images/items/slot_helmet.png">
|
<div class="slot amulet" data-slot="amulet"></div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="shoulder" title="Schulter">
|
|
||||||
<img src="/images/items/slot_shoulder.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="gloves" title="Handschuhe">
|
|
||||||
<img src="/images/items/slot_gloves.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="belt" title="Gürtel">
|
|
||||||
<img src="/images/items/slot_belt.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="boots" title="Stiefel">
|
|
||||||
<img src="/images/items/slot_boots.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div class="slot gloves" data-slot="gloves"></div>
|
||||||
|
<div class="slot weapon" data-slot="weapon"></div>
|
||||||
|
|
||||||
<div class="character">
|
<div class="character">
|
||||||
<img src="/images/avatar.png">
|
<img src="/images/avatar.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="slot belt" data-slot="belt"></div>
|
||||||
|
<div class="slot shield" data-slot="shield"></div>
|
||||||
|
|
||||||
<div class="equip-right">
|
<div class="slot ring1" data-slot="ring"></div>
|
||||||
|
<div class="slot ring2" data-slot="ring"></div>
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="amulet" title="Amulett">
|
<div class="slot boots" data-slot="boots"></div>
|
||||||
<img src="/images/items/slot_amulet.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="weapon" title="Waffe">
|
|
||||||
<img src="/images/items/slot_weapon.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="shield" title="Schild">
|
|
||||||
<img src="/images/items/slot_shield.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="equip-slot" data-slot="ring" title="Ring">
|
|
||||||
<img src="/images/items/slot_ring.png">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -120,7 +90,7 @@ function initEquip() {
|
|||||||
const slotType = item.dataset.slot;
|
const slotType = item.dataset.slot;
|
||||||
|
|
||||||
const target = document.querySelector(
|
const target = document.querySelector(
|
||||||
'.equip-slot[data-slot="' + slotType + '"]',
|
'.slot[data-slot="' + slotType + '"]',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!target) return;
|
if (!target) return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user