mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
import analyser and migrate to solidjs, untested
This commit is contained in:
parent
95d48e48e2
commit
fff554c3d3
42 changed files with 2910 additions and 4 deletions
19
script/viewer/Analyse/Render/SpecHUD.tsx
Normal file
19
script/viewer/Analyse/Render/SpecHUD.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import {PlayersSpec} from './PlayerSpec';
|
||||
import {KillFeed} from './KillFeed';
|
||||
import {AsyncParser} from "../Data/AsyncParser";
|
||||
import {PlayerState, Kill} from "@demostf/parser-worker";
|
||||
|
||||
export interface SpecHUDProps {
|
||||
tick: number;
|
||||
parser: AsyncParser;
|
||||
players: PlayerState[];
|
||||
kills: Kill[]
|
||||
}
|
||||
|
||||
export function SpecHUD({tick, parser, players, kills}: SpecHUDProps) {
|
||||
return (<div class="spechud">
|
||||
<KillFeed tick={tick} kills={kills} players={players}/>
|
||||
<PlayersSpec players={players}/>
|
||||
</div>)
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue