Skip to content

Commit

Permalink
WIP show handicap
Browse files Browse the repository at this point in the history
  • Loading branch information
kberg committed Feb 6, 2025
1 parent 15111e1 commit e7e7bf0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Binary file added assets/resources/handicap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/client/components/overview/PlayerTags.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<template>
<div class="player-tags">
<div class="player-tags-main">
<tag-count :tag="'vp'" :count="player.victoryPointsBreakdown.total" :size="'big'" :type="'main'" :hideCount="hideVpCount" />
<tag-count tag="vp" :count="player.victoryPointsBreakdown.total" :size="'big'" :type="'main'" :hideCount="hideVpCount" />
<div v-if="isEscapeVelocityOn" :class="tooltipCss" :data-tooltip="$t('Escape Velocity penalty')">
<tag-count :tag="'escape'" :count="escapeVelocityPenalty" :size="'big'" :type="'main'"/>
<tag-count tag="escape" :count="escapeVelocityPenalty" :size="'big'" :type="'main'"/>
</div>
<tag-count :tag="'tr'" :count="player.terraformRating" :size="'big'" :type="'main'"/>
<tag-count tag="tr" :count="player.terraformRating" :size="'big'" :type="'main'"/>
<tag-count v-if="player.terraformRating !== undefined" :tag="'handicap'" :count="player.terraformRating" :size="'big'" :type="'main'"/>
<div class="tag-and-discount">
<PlayerTagDiscount v-if="all.discount" :amount="all.discount" :color="player.color" :data-test="'discount-all'"/>
<tag-count :tag="'cards'" :count="cardsInHandCount" :size="'big'" :type="'main'"/>
<tag-count tag="cards" :count="cardsInHandCount" :size="'big'" :type="'main'"/>
</div>
</div>
<div class="player-tags-secondary">
Expand Down
13 changes: 12 additions & 1 deletion src/styles/player_home.less
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,22 @@
}

.tag-tr {
background-image: url(./assets/resources/tr.png);
background-image: url(./assets/resources/tr.png);
background-size: 49px 38px !important;
background-position: -4px -2px !important;
}
.tag-handicap {
background-image: url(./assets/resources/handicap.png);
background-size: 42px 35px !important;
background-color: transparent;
box-shadow: none;
border-radius: unset;
filter: drop-shadow(.5px .5px 0 black)
drop-shadow(-.5px .5px 0 black)
drop-shadow(.5px -.5px 0 black)
drop-shadow(-.5px -.5px 0 black);
}

.tag-escape {
background-image: url(./assets/expansion_icons/expansion_icon_escapeVelocity.png);
background-size: 56px;
Expand Down

0 comments on commit e7e7bf0

Please sign in to comment.