diff --git a/images/class_icons/demoman.svg b/images/class_icons/demoman.svg index 649bfae..8b85a20 100644 --- a/images/class_icons/demoman.svg +++ b/images/class_icons/demoman.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/engineer.svg b/images/class_icons/engineer.svg index ce4ca26..1252a21 100644 --- a/images/class_icons/engineer.svg +++ b/images/class_icons/engineer.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/heavy.svg b/images/class_icons/heavy.svg index 0b032c0..6c0c66f 100644 --- a/images/class_icons/heavy.svg +++ b/images/class_icons/heavy.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/medic.svg b/images/class_icons/medic.svg index d88d22b..d1f7ce2 100644 --- a/images/class_icons/medic.svg +++ b/images/class_icons/medic.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/pyro.svg b/images/class_icons/pyro.svg index f99afc2..99b0ff2 100644 --- a/images/class_icons/pyro.svg +++ b/images/class_icons/pyro.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/scout.svg b/images/class_icons/scout.svg index e4a57e8..e6f81e1 100644 --- a/images/class_icons/scout.svg +++ b/images/class_icons/scout.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/sniper.svg b/images/class_icons/sniper.svg index 8d7f226..26321d9 100644 --- a/images/class_icons/sniper.svg +++ b/images/class_icons/sniper.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/images/class_icons/soldier.svg b/images/class_icons/soldier.svg index d9279bc..9162bfe 100644 --- a/images/class_icons/soldier.svg +++ b/images/class_icons/soldier.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + fill="#fff"/> + \ No newline at end of file diff --git a/images/class_icons/spy.svg b/images/class_icons/spy.svg index dd43ba6..9915095 100644 --- a/images/class_icons/spy.svg +++ b/images/class_icons/spy.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/script/viewer/Analyse/Render/Player.tsx b/script/viewer/Analyse/Render/Player.tsx index ccbf70e..672b594 100644 --- a/script/viewer/Analyse/Render/Player.tsx +++ b/script/viewer/Analyse/Render/Player.tsx @@ -24,7 +24,7 @@ const healthMap = { }; const imageMap = { - 0: require("inline://images/class_icons/empty.svg"), + 0: '', 1: require("inline://images/class_icons/scout.svg"), 2: require("inline://images/class_icons/sniper.svg"), 3: require("inline://images/class_icons/soldier.svg"), @@ -55,17 +55,18 @@ export function Player(props: PlayerProp) { - {getClassImage(props.player, imageOpacity())} } function getClassImage(player: PlayerState, imageOpacity: number) { - if (!imageMap[player.playerClass]) { + const image = imageMap[player.playerClass]; + if (!image) { return []; } - return