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 ist noch keine Skill-Leiste geplant.

- +

Makro – Makro-Taste halten, läuft von oben nach unten

diff --git a/includes/gear_macro.php b/includes/gear_macro.php index 92bb1f4..7c0e3df 100644 --- a/includes/gear_macro.php +++ b/includes/gear_macro.php @@ -29,7 +29,7 @@ const GEAR_MACRO_DELAY_DEFAULT = 10; const GEAR_MACRO_KEYS = [ '1' => 'Taste 1', '2' => 'Taste 2', '3' => 'Taste 3', '4' => 'Taste 4', '5' => 'Taste 5', '6' => 'Taste 6', '7' => 'Taste 7', '8' => 'Taste 8', - 'Q' => 'Taste Q', 'E' => 'Taste E', 'LM' => 'Linke Maustaste', 'RM' => 'Rechte Maustaste', + 'Q' => 'Taste Q', 'E' => 'Taste E', 'LM' => 'Taste R (linke Maustaste)', 'RM' => 'Taste T (rechte Maustaste)', ]; // Skills je Taste: die Reihen 0-3 im Skill-Fenster. Reihe 0 zeigt die Leiste, das Makro nutzt sie der Reihe nach. const GEAR_MACRO_KEY_ROWS = 4; @@ -313,11 +313,13 @@ function gear_macro_key_html(string $key): string if ($key !== 'LM' && $key !== 'RM') { return '' . e($key) . ''; } + // Im Spiel liegen die Maustasten auf R (links) und T (rechts): "R (Maus links)", "T (Maus rechts)" $button = $key === 'LM' ? 'M5 1A4 4 0 0 0 1 5v1.5h4z' : 'M5 1a4 4 0 0 1 4 4v1.5H5z'; + $letter = $key === 'LM' ? 'R' : 'T'; return '' - . '('; + . ')'; } /** Name eines Skills der Leiste (auch fuer Skills, die nicht zur Klasse gehoeren). */