Skip to content
Permalink
Browse files

flat style wildcards

  • Loading branch information...
Manuel-777 committed May 28, 2019
1 parent 02d75d0 commit b6944fc8c02097ddfff8672dd5d323305ac5bd1b
Showing with 26 additions and 0 deletions.
  1. +15 −0 shared/deck-drawer.js
  2. +11 −0 shared/shared.css
@@ -316,5 +316,20 @@ function drawCardTileFlat(
});
}

//
if (showWildcards && deck) {
if (card && card.type.indexOf("Basic Land") == -1) {
const missing = get_wc_missing(deck, grpId, isSideboard);
if (missing > 0) {
const asasdf = createDivision(["not_owned_sprite_flat"]);
const xoff = rarities[card.rarity] * -24;
const yoff = missing * -24;
asasdf.style.cssText = `background-position: ${xoff}px ${yoff}px;);`;
asasdf.title = `${missing} missing`;
cont.appendChild(asasdf);
}
}
}

return cont;
}
@@ -777,6 +777,17 @@ span {
margin: 0 6px 0 auto;
}

.not_owned_sprite_flat {
margin-left: -24px;
left: 24px;
margin-top: 4px;
min-width: 24px;
width: 24px;
height: 24px;
position: relative;
background-image: url(../images/not_owned_sprite.png);
}

.not_owned_sprite {
margin-top: 2px;
min-width: 24px;

0 comments on commit b6944fc

Please sign in to comment.
You can’t perform that action at this time.