Skip to content
Permalink
Browse files

Show skins in economy

  • Loading branch information...
Manuel-777 committed Apr 2, 2019
1 parent a99d1fa commit f2e6351b07ee7d3fe5b7f38de238954d7d92e5fb
Showing with 21 additions and 0 deletions.
  1. BIN images/skin.png
  2. +11 −0 window_main/economy.js
  3. +10 −0 window_main/index.css
BIN +3.58 KB images/skin.png
Binary file not shown.
@@ -167,6 +167,7 @@ function createChangeRow(change, economyId) {
let checkWildcardsAdded = false;
let checkGemsEarnt = false;
let checkGoldEarnt = false;
let checkSkinsAdded = false;

var bon, bos;

@@ -228,6 +229,7 @@ function createChangeRow(change, economyId) {
checkCardsAdded = true;
checkAetherized = true;
checkWildcardsAdded = true;
checkSkinsAdded = true;
}

if (checkGemsPaid && change.delta.gemsDelta != undefined) {
@@ -438,6 +440,15 @@ function createChangeRow(change, economyId) {
});
}

if (checkSkinsAdded && change.delta.artSkinsAdded != undefined) {
change.delta.artSkinsAdded.forEach(function(artId) {
bos = createDivision(["economy_skin"]);
bos.title = "Skin";

flexRight.appendChild(bos);
});
}

// DOM hierarchy is:
// changeRow
// flexLeft
@@ -1565,6 +1565,16 @@ a:hover {
background-size: contain;
}

.economy_skin {
background-repeat: no-repeat;
margin: auto 4px;
margin-left: 16px;
width: 28px;
height: 28px;
background-image: url(../images/skin.png);
background-size: contain;
}

.mana_filter {
align-self: center;
opacity: 1;

0 comments on commit f2e6351

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