diff --git a/assets/css/style.css b/assets/css/style.css index 9fe65e9..bb87416 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -6727,6 +6727,36 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY /* Makro wie die Liste im Spiel: grosse Nummer, Skill mit Tasten-Abzeichen und Stufe, Verzoegerung auf der Trennlinie */ .gear-guide-macro { margin: 0; padding: 0.2rem 0 0; list-style: none; counter-reset: macro; +.gear-guide-hotbar { margin-top: 0.9rem; } +/* Skill-Leiste wie das Skill-Fenster im Spiel (includes/gear_guide.php): Spalten je Taste, Reihen 3-0, Tastenreihe unten */ +.gear-guide-skillbar-wrap { overflow-x: auto; padding-bottom: 2px; } +.gear-guide-skillbar { display: flex; gap: 4px; min-width: 470px; } +.gear-guide-skillbar-key { display: flex; flex: 1 1 0; flex-direction: column; gap: 4px; min-width: 0; } +.gear-guide-skillbar-key.is-group-end { margin-right: 6px; } +.gear-guide-skillbar-cell { + position: relative; display: block; aspect-ratio: 1; border-radius: 2px; + background: #353b46; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); overflow: hidden; +} +.gear-guide-skillbar-cell.is-empty::before { + content: '✦'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; + color: rgba(225, 232, 245, 0.35); font-size: 0.65rem; +} +.gear-guide-skillbar-cell.is-hotkey { margin-top: 8px; background: #2c323c; } +.gear-guide-skillbar-cell.is-hotkey .gear-guide-skillbar-skill { filter: brightness(0.6); } +.gear-guide-skillbar-skill { position: absolute; inset: 0; display: block; } +.gear-guide-skillbar-skill img { width: 100%; height: 100%; object-fit: cover; display: block; } +.gear-guide-skillbar-skill .gear-macro-initial { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 700; } +.gear-guide-skillbar-lv { position: absolute; right: 3px; bottom: 1px; color: #fff; font-size: clamp(0.5rem, 0.95vw, 0.72rem); font-weight: 700; line-height: 1.2; text-shadow: 0 0 3px #000, 0 0 2px #000; } +.gear-guide-skillbar-keyname { position: absolute; left: 1px; top: 1px; z-index: 1; } +.gear-guide-skillbar .gear-guide-skillbar-keyname .gear-macro-key { + min-width: 13px; height: 13px; padding: 0 2px; border-radius: 2px; background: rgba(10, 12, 16, 0.85); color: #fff; font-size: 0.6rem; font-weight: 700; +} +.gear-guide-skillbar-keyname .gear-macro-key-mouse svg { width: 7px; height: 10px; } +.gear-guide-skillbar-rows { display: flex; flex: 0 0 1.6rem; flex-direction: column; gap: 4px; } +.gear-guide-skillbar-rows span { display: flex; flex: 1 1 0; align-items: center; justify-content: center; color: #f2f2f2; font-size: 1.15rem; font-weight: 700; } +.gear-guide-skillbar-rows span:last-child { margin-top: 8px; } +/* Maustasten: "R (Maus)" bzw. "T (Maus)" */ +.gear-macro-key-mouse { display: inline-flex; align-items: center; margin-left: 2px; font-weight: 400; opacity: 0.85; } } .gear-guide-macro li { position: relative; counter-increment: macro; display: flex; flex-direction: column; align-items: center; padding-top: 0.5rem; } .gear-guide-macro li::before { content: counter(macro); position: absolute; left: 0.2rem; top: 1.4rem; color: #d8cdb4; font-size: 2rem; font-weight: 700; line-height: 1; } diff --git a/includes/gear_guide.php b/includes/gear_guide.php index 128eba2..fc6bb68 100644 --- a/includes/gear_guide.php +++ b/includes/gear_guide.php @@ -737,17 +737,54 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
Für Preset = $preset ?> ist noch keine Skill-Leiste geplant= $isOwn ? ' – belege sie im Reiter „Makro“, dann kannst du hier jede Taste erklären' : '' ?>.
- +