forked from xziino/ff14-mitigator
add hint, hover for boss skills
This commit is contained in:
parent
695c0fb99e
commit
f6078542ef
@ -711,11 +711,26 @@
|
|||||||
|
|
||||||
/* ── Planner Timeline ───────────────────────────────────────────────────────── */
|
/* ── Planner Timeline ───────────────────────────────────────────────────────── */
|
||||||
.timeline-hint {
|
.timeline-hint {
|
||||||
font-size: 12px;
|
display: flex;
|
||||||
color: var(--t3);
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--t3);
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-zoom-hint {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 2px 7px;
|
||||||
|
border: 1px solid rgba(200,168,75,.25);
|
||||||
|
border-radius: var(--r);
|
||||||
|
background: rgba(200,168,75,.08);
|
||||||
|
color: var(--gold);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline-controls {
|
.timeline-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -850,18 +865,42 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 1px;
|
width: 10px;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
background: rgba(200,168,75,.38);
|
background: transparent;
|
||||||
pointer-events: none;
|
pointer-events: auto;
|
||||||
|
cursor: help;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-hit-line::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
width: 1px;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background: rgba(200,168,75,.38);
|
||||||
|
}
|
||||||
|
|
||||||
.timeline-hit-line--tankbuster {
|
.timeline-hit-line--tankbuster {
|
||||||
|
width: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-hit-line--tankbuster::before {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
background: rgba(177,112,255,.62);
|
background: rgba(177,112,255,.62);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-hit-line:hover::before {
|
||||||
|
background: var(--gold);
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-hit-line--tankbuster:hover::before {
|
||||||
|
background: #b170ff;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline-player-row .timeline-track {
|
.timeline-player-row .timeline-track {
|
||||||
background-color: rgba(255,255,255,0.015);
|
background-color: rgba(255,255,255,0.015);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -459,10 +459,12 @@ function renderPlanDetail(plan) {
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeline-hint">Boss-Aktion klicken zum Zuweisen · Mitigation ziehen · Modifier+Scroll zum Zoomen · Klick für Zeiten</div>
|
|
||||||
<div id="planner-timeline">
|
<div id="planner-timeline">
|
||||||
${renderTimelineHtml(plan)}
|
${renderTimelineHtml(plan)}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="timeline-hint">
|
||||||
|
<span class="timeline-zoom-hint">Zoom: Strg + Mausrad</span>
|
||||||
|
</div>
|
||||||
<div id="timeline-settings">
|
<div id="timeline-settings">
|
||||||
${renderTimelineSettingsHtml(plan)}
|
${renderTimelineSettingsHtml(plan)}
|
||||||
</div>
|
</div>
|
||||||
@ -1595,7 +1597,9 @@ function renderTimelineHtml(plan) {
|
|||||||
const bossActions = layoutBossActions(mechanics, duration);
|
const bossActions = layoutBossActions(mechanics, duration);
|
||||||
const laneCount = Math.max(1, ...bossActions.map(item => item.lane + 1));
|
const laneCount = Math.max(1, ...bossActions.map(item => item.lane + 1));
|
||||||
const hitLines = mechanics.map(m => `
|
const hitLines = mechanics.map(m => `
|
||||||
<span class="timeline-hit-line${m.isHeavyTankbuster ? ' timeline-hit-line--tankbuster' : ''}" style="left:${(m.timestamp / duration) * 100}%"></span>
|
<span class="timeline-hit-line${m.isHeavyTankbuster ? ' timeline-hit-line--tankbuster' : ''}"
|
||||||
|
style="left:${(m.timestamp / duration) * 100}%"
|
||||||
|
title="${escHtml(`${fmtTimestamp(m.timestamp)} · ${m.name} · ${m.isHeavyTankbuster ? 'Tankbuster' : 'AoE'}`)}"></span>
|
||||||
`).join('');
|
`).join('');
|
||||||
|
|
||||||
const bossItems = bossActions.map(({ mechanic: m, left, lane }) => `
|
const bossItems = bossActions.map(({ mechanic: m, left, lane }) => `
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user