added parsed check to scoreboard, added team color vars + team-colors in damage-chart

This commit is contained in:
cnachtigall1991
2021-10-12 07:04:22 +02:00
parent 5227f05414
commit 33fd9f6b5c
6 changed files with 63 additions and 25 deletions

View File

@@ -28,7 +28,7 @@
<td class="player__kd">
{{ (props.kills > 0 && props.deaths > 0) ? (props.kills / props.deaths).toFixed(2) : (props.kills > 0 && props.deaths === 0) ? props.kills : 0.00 }}
</td>
<td class="player__adr">
<td class="player__adr" v-if="props.parsed">
{{ (props.dmg / props.rounds_played).toFixed(2) }}
</td>
<td class="player__hs">
@@ -147,6 +147,11 @@ export default {
type: Boolean,
required: true,
default: false
},
parsed: {
type: Boolean,
required: true,
default: false
}
},
setup(props) {
@@ -160,19 +165,19 @@ export default {
outline: 3px solid;
}
.team-color-Orange {
outline-color: #FE9A28;
outline-color: var(--csgo-orange);
}
.team-color-Blue {
outline-color: #5BA7FE;
outline-color: var(--csgo-blue);
}
.team-color-Yellow {
outline-color: #F7F52F;
outline-color: var(--csgo-yellow);
}
.team-color-Purple {
outline-color: #A01BEF;
outline-color: var(--csgo-purple);
}
.team-color-Green {
outline-color: #04B462;
outline-color: var(--csgo-green);
}
.team-color-Grey {
outline: none;