diff --git a/public/css/hud.css b/public/css/hud.css index c5600fb..3b9f48c 100644 --- a/public/css/hud.css +++ b/public/css/hud.css @@ -253,6 +253,24 @@ display: block; } +/* Eisen – Bild aus der Datenbank */ +.hud-res-icon-iron { + width: 20px; + height: 20px; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; +} + +.hud-res-icon-iron img { + width: 20px; + height: 20px; + object-fit: contain; + filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); + display: block; +} + .hud-res-value { font-family: "Cinzel", serif; font-size: 11px; diff --git a/public/js/hud.js b/public/js/hud.js index 45ef7b0..00c0c5b 100644 --- a/public/js/hud.js +++ b/public/js/hud.js @@ -22,6 +22,7 @@ function applyHudData(data) { set("hud-gems", data.gems); set("hud-wood", data.wood); set("hud-stone", data.stone); + set("hud-iron", data.iron); } export async function loadHud() { diff --git a/views/launcher.ejs b/views/launcher.ejs index c294c0f..612d3a3 100644 --- a/views/launcher.ejs +++ b/views/launcher.ejs @@ -320,12 +320,16 @@