mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +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
|
|
@ -7,13 +7,15 @@ export interface SpecHUDProps {
|
|||
tick: number;
|
||||
parser: AsyncParser;
|
||||
players: PlayerState[];
|
||||
events: Event[]
|
||||
events: Event[];
|
||||
onHover: (userId: number) => void;
|
||||
highlighted: number | null;
|
||||
}
|
||||
|
||||
export function SpecHUD(props: SpecHUDProps) {
|
||||
return (<div class="spechud">
|
||||
<KillFeed tick={props.tick} events={props.events} players={props.players}/>
|
||||
<PlayersSpec players={props.players}/>
|
||||
<PlayersSpec players={props.players} onHover={props.onHover} highlighted={props.highlighted}/>
|
||||
</div>)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue