Permalink
Browse files

Hide quanityt on cards list

Fixes #84
  • Loading branch information...
Manuel-777 committed Nov 18, 2018
1 parent 252b529 commit ffff9ce0935e020d68057ce10f6807a59da4ce63
Showing with 11 additions and 0 deletions.
  1. BIN images/sets/G18.png
  2. +5 −0 shared/util.js
  3. +6 −0 window_main/renderer.js
BIN +4.78 KB images/sets/G18.png
Binary file not shown.
@@ -31,6 +31,11 @@ function addCardTile(grpId, indent, quantity, element) {
var ll = 48;
cont.append('<div class="card_tile_odds"><span>'+quantity+'</span></div>');
}
if (quantity == 9999) {
var ww = 56;
var ll = 40;
cont.append('<div style="color: rgba(255, 255, 255, 0); min-width: 0px; width: 0px;" class="card_tile_quantity"><span>'+quantity+'</span></div>');
}
else {
var ww = 56;
var ll = 40;
@@ -2918,6 +2918,12 @@ function open_match(id) {
match.oppDeck.mainDeck.sort(compare_cards);
match.oppDeck.sideboard.sort(compare_cards);
match.oppDeck.mainDeck.forEach(function(c) {
c.quantity = 9999;
});
match.oppDeck.sideboard.forEach(function(c) {
c.quantity = 9999;
});
drawDeck(odl, match.oppDeck);
$('<div class="button_simple centered exportDeck">Export to Arena</div>').appendTo(odl);

0 comments on commit ffff9ce

Please sign in to comment.