Gear-Planer Guide: Skills in Texten wie Links im Fliesstext (Icon und Name ohne Kasten, Spezialisierung kursiv in Anfuehrungszeichen), mehr Zeilenabstand; Stigmen-Prioritaet aller Spielweisen untereinander, Umschalter nur noch fuer die passiven Skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8e69705e50
commit
47e351ff85
2 changed files with 52 additions and 34 deletions
|
|
@ -6669,6 +6669,9 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
|||
.gear-guide-prio [data-guide-style-off] { display: none; }
|
||||
.gear-guide-style-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.8rem; }
|
||||
.gear-guide-style-tabs[hidden] { display: none; }
|
||||
.gear-guide-prio-stigma { margin-bottom: 0.6rem; }
|
||||
.gear-guide-prio-head { margin: 0; color: #c4a6f2; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
|
||||
.gear-guide-prio-stigma .gear-guide-skill-row + .gear-guide-skill-row { padding-top: 0.35rem; border-top: 1px dashed rgba(160, 120, 230, 0.25); }
|
||||
.gear-guide-style-tab { padding: 0.2rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; }
|
||||
.gear-guide-style-tab:hover { color: var(--text); border-color: rgba(201, 162, 39, 0.5); }
|
||||
.gear-guide-style-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.18); color: var(--gold); }
|
||||
|
|
@ -6790,14 +6793,19 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
|||
.gear-guide-order input { width: 4.5rem; }
|
||||
.gear-guide-key-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
|
||||
.gear-guide-key-row textarea { min-height: 2.4rem; }
|
||||
.gear-guide-skill-chip { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0 0.1rem; padding: 0.05rem 0.5rem 0.05rem 0.15rem; border: 1px solid rgba(201, 162, 39, 0.45); border-radius: 999px; background: rgba(201, 162, 39, 0.1); color: var(--text); font-weight: 600; font-size: 0.9em; line-height: 1.5; white-space: nowrap; vertical-align: baseline; }
|
||||
.gear-guide-skill-chip img { width: 1.35em; height: 1.35em; border-radius: 50%; object-fit: cover; }
|
||||
.gear-guide-skill-chip.is-stigma { border-color: rgba(160, 120, 230, 0.55); background: rgba(160, 120, 230, 0.12); }
|
||||
/* [[Skillname:2]]: Spezialisierung bzw. Stigma-Bonus mit Nummer und Text */
|
||||
.gear-guide-skill-chip.is-spec { max-width: 100%; white-space: normal; }
|
||||
.gear-guide-spec-no { flex: none; min-width: 1.3em; padding: 0 0.3em; border-radius: 4px; background: rgba(201, 162, 39, 0.3); color: #f1d98a; font-size: 0.85em; text-align: center; }
|
||||
.gear-guide-skill-chip.is-stigma .gear-guide-spec-no { background: rgba(160, 120, 230, 0.35); color: #e1d0ff; }
|
||||
.gear-guide-spec-text { overflow: hidden; max-width: 24em; color: var(--text-muted); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
|
||||
/* Skills in Guide-Texten ([[Skillname]], includes/gear_guide.php): wie ein Link im Fliesstext - kleines Icon und Name in
|
||||
Gold (Stigmen lila), ohne Kasten, damit die Zeilen gleichmaessig bleiben; beim Drueberfahren die Info-Blase */
|
||||
.gear-guide-skill-chip { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #e3bd6e; font-weight: 600; white-space: nowrap; cursor: help; }
|
||||
.gear-guide-skill-chip img { width: 1.2em; height: 1.2em; margin-right: 0.25em; border-radius: 3px; object-fit: cover; vertical-align: -0.22em; box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45); }
|
||||
.gear-guide-skill-chip:hover, .gear-guide-skill-chip:focus-visible { outline: none; text-decoration: underline; text-decoration-color: rgba(227, 189, 110, 0.55); text-underline-offset: 3px; }
|
||||
.gear-guide-skill-chip.is-stigma { color: #c9adf5; }
|
||||
.gear-guide-skill-chip.is-stigma img { box-shadow: 0 0 0 1px rgba(160, 120, 230, 0.6); }
|
||||
/* [[Skillname:2]]: dazu die Nummer der Spezialisierung (Stigmen: des Bonus) und ihr Text in Anfuehrungszeichen */
|
||||
.gear-guide-spec-no { display: inline-block; margin: 0 0.3em 0 0.35em; padding: 0 0.35em; border-radius: 3px; background: rgba(201, 162, 39, 0.22); color: #f1d98a; font-size: 0.75em; font-weight: 700; line-height: 1.45; vertical-align: 0.1em; }
|
||||
.gear-guide-skill-chip.is-stigma .gear-guide-spec-no { background: rgba(160, 120, 230, 0.28); color: #e1d0ff; }
|
||||
.gear-guide-spec-text { color: var(--text-muted); font-weight: 400; font-style: italic; white-space: normal; }
|
||||
.gear-guide-spec-text::before { content: '„'; }
|
||||
.gear-guide-spec-text::after { content: '“'; }
|
||||
.gear-guide-order + .gear-guide-order { margin-left: 0; }
|
||||
.gear-guide-chip-hint code { padding: 0.05rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
|
||||
.gear-guide-stats { margin-bottom: 1rem; }
|
||||
|
|
@ -6881,7 +6889,7 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
|||
.gear-guide-tips strong { display: block; margin-bottom: 0.3rem; }
|
||||
.gear-guide-form textarea { width: 100%; resize: vertical; }
|
||||
.gear-guide-tip-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
|
||||
.gear-description-text { max-width: 900px; line-height: 1.6; overflow-wrap: anywhere; }
|
||||
.gear-description-text { max-width: 900px; line-height: 1.75; overflow-wrap: anywhere; }
|
||||
.gear-description-text p { margin: 0 0 0.75rem; }
|
||||
.gear-description-text p:last-child { margin-bottom: 0; }
|
||||
@media (max-width: 900px) {
|
||||
|
|
|
|||
|
|
@ -599,13 +599,6 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
|
|||
$styles = $guide['styles'];
|
||||
$alts = gear_guide_alt_stigmas($set, $planned, $notes);
|
||||
$groups = gear_guide_skill_groups($planned, $notes, $styles, $alts);
|
||||
// Spielweisen mit eigener Prioritaet (0 = allgemein) - mehr als eine: Umschalter ueber den Prioritaets-Reihen
|
||||
$prioStyles = [];
|
||||
foreach ($groups['prio'] as $byStyle) {
|
||||
$prioStyles += array_fill_keys(array_keys($byStyle), true);
|
||||
}
|
||||
ksort($prioStyles);
|
||||
$prioStyles = array_keys($prioStyles);
|
||||
$setUrl = '/gear.php?set=' . (int) $set['id'];
|
||||
$filled = count(array_filter($slots, static fn (array $row): bool => !empty($row['item'])));
|
||||
// Reihenfolge wie angezeigt (fuer die Details und den Bearbeiten-Dialog)
|
||||
|
|
@ -724,28 +717,45 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
|
|||
<div class="gear-guide-skill-list"><?php foreach ($groups['stigma'] as $entry): ?><?= gear_guide_skill_tile($entry, $notes, (int) $entry['skill']['id'] === $activeId) ?><?php endforeach; ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php // Prioritaet der Stigmen und passiven Skills, wichtigster zuerst - allgemein und je Spielweise (assets/js/gear-guide.js schaltet um) ?>
|
||||
<?php if ($groups['prio']): ?>
|
||||
<?php
|
||||
// Prioritaet der Stigmen und passiven Skills, wichtigster zuerst - allgemein bzw. je Spielweise. Die
|
||||
// Stigma-Reihen aller Spielweisen stehen untereinander (damit keine uebersehen wird), bei den passiven
|
||||
// Skills schaltet ein Umschalter um (assets/js/gear-guide.js) - ohne JavaScript stehen alle da
|
||||
$prioRow = static function (string $kind, int $style, array $prioEntries, bool $switchable) use ($styles, $notes, $activeId): string {
|
||||
$html = '<div class="gear-guide-skill-row is-prio' . ($kind === 'stigma' ? ' is-stigma' : '') . '"'
|
||||
. ($switchable ? ' data-guide-style-row="' . $style . '"' : '') . '>'
|
||||
. '<span class="gear-guide-level" title="' . e(GEAR_GUIDE_PRIO_KINDS[$kind]) . '-Priorität' . ($style > 0 ? ' (' . e($styles[$style]) . ')' : '') . ': wichtigster zuerst">'
|
||||
. e(GEAR_GUIDE_PRIO_KINDS[$kind]) . '<small>' . ($style > 0 ? e($styles[$style]) : 'Priorität') . '</small></span>'
|
||||
. '<div class="gear-guide-skill-list">';
|
||||
foreach ($prioEntries as $i => $entry) {
|
||||
$html .= ($i > 0 ? '<span class="gear-guide-prio-sep" aria-hidden="true">›</span>' : '')
|
||||
. gear_guide_skill_tile($entry, $notes, (int) $entry['skill']['id'] === $activeId, $style);
|
||||
}
|
||||
return $html . '</div></div>';
|
||||
};
|
||||
$stigmaRows = $groups['prio']['stigma'] ?? [];
|
||||
$passiveRows = $groups['prio']['passive'] ?? [];
|
||||
?>
|
||||
<?php if ($stigmaRows): ?>
|
||||
<div class="gear-guide-prio gear-guide-prio-stigma">
|
||||
<?php if (count($stigmaRows) > 1): ?><p class="gear-guide-prio-head">Stigmen je Spielweise</p><?php endif; ?>
|
||||
<?php foreach ($stigmaRows as $style => $prioEntries): ?>
|
||||
<?= $prioRow('stigma', (int) $style, $prioEntries, false) ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($passiveRows): ?>
|
||||
<div class="gear-guide-prio" data-guide-styles>
|
||||
<?php if (count($prioStyles) > 1): ?>
|
||||
<div class="gear-guide-style-tabs" role="group" aria-label="Spielweise" hidden>
|
||||
<span class="text-muted">Spielweise:</span>
|
||||
<?php foreach ($prioStyles as $i => $style): ?>
|
||||
<button type="button" class="gear-guide-style-tab<?= $i === 0 ? ' is-active' : '' ?>" data-guide-style="<?= $style ?>" aria-pressed="<?= $i === 0 ? 'true' : 'false' ?>"><?= e($style === 0 ? 'Allgemein' : $styles[$style]) ?></button>
|
||||
<?php if (count($passiveRows) > 1): ?>
|
||||
<div class="gear-guide-style-tabs" role="group" aria-label="Spielweise der passiven Skills" hidden>
|
||||
<span class="text-muted">Passive Skills für:</span>
|
||||
<?php foreach (array_keys($passiveRows) as $i => $style): ?>
|
||||
<button type="button" class="gear-guide-style-tab<?= $i === 0 ? ' is-active' : '' ?>" data-guide-style="<?= (int) $style ?>" aria-pressed="<?= $i === 0 ? 'true' : 'false' ?>"><?= e($style === 0 ? 'Allgemein' : $styles[$style]) ?></button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($groups['prio'] as $kind => $byStyle): ?>
|
||||
<?php foreach ($byStyle as $style => $prioEntries): ?>
|
||||
<?php
|
||||
// Jede Spielweise hat ihre eigene Reihe (allgemeine Prioritaet, eigene Werte und Ausgeblendete schon eingerechnet)
|
||||
$shownFor = [$style];
|
||||
?>
|
||||
<div class="gear-guide-skill-row is-prio<?= $kind === 'stigma' ? ' is-stigma' : '' ?>" data-guide-style-row="<?= e(implode(' ', $shownFor)) ?>">
|
||||
<span class="gear-guide-level" title="<?= e(GEAR_GUIDE_PRIO_KINDS[$kind]) ?>-Priorität<?= $style > 0 ? ' (' . e($styles[$style]) . ')' : '' ?>: wichtigster zuerst"><?= e(GEAR_GUIDE_PRIO_KINDS[$kind]) ?><small><?= $style > 0 ? e($styles[$style]) : 'Priorität' ?></small></span>
|
||||
<div class="gear-guide-skill-list"><?php foreach ($prioEntries as $i => $entry): ?><?= $i > 0 ? '<span class="gear-guide-prio-sep" aria-hidden="true">›</span>' : '' ?><?= gear_guide_skill_tile($entry, $notes, (int) $entry['skill']['id'] === $activeId, $style) ?><?php endforeach; ?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php foreach ($passiveRows as $style => $prioEntries): ?>
|
||||
<?= $prioRow('passive', (int) $style, $prioEntries, count($passiveRows) > 1) ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue