mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-04 02:34:13 +02:00
highlight player dot/spec on hover
This commit is contained in:
parent
04ae714282
commit
3644dbda6e
7 changed files with 355 additions and 298 deletions
|
|
@ -51,6 +51,7 @@ export const Analyser = (props: AnalyseProps) => {
|
|||
const closeDialogs = () => {
|
||||
setModalState(ModalState.Closed);
|
||||
};
|
||||
const [highlighted, setHighlighted] = createSignal<number>(0);
|
||||
|
||||
createEffect(() => {
|
||||
const e = event();
|
||||
|
|
@ -243,7 +244,10 @@ export const Analyser = (props: AnalyseProps) => {
|
|||
projectiles={projectiles()}
|
||||
header={props.header}
|
||||
world={backgroundBoundaries}
|
||||
scale={scale()}/>
|
||||
scale={scale()}
|
||||
onHover={setHighlighted}
|
||||
highlighted={highlighted()}
|
||||
/>
|
||||
</MapContainer>
|
||||
<AnalyseMenu sessionName={sessionName()}
|
||||
onShare={() => {
|
||||
|
|
@ -261,7 +265,9 @@ export const Analyser = (props: AnalyseProps) => {
|
|||
inShared={inShared}
|
||||
/>
|
||||
<SpecHUD parser={parser} tick={tick()}
|
||||
players={players()} events={events}/>
|
||||
players={players()} events={events}
|
||||
highlighted={highlighted()}
|
||||
onHover={setHighlighted}/>
|
||||
</div>
|
||||
<div class="time-control"
|
||||
title={timeTitle()}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue