Skip to content

Commit

Permalink
Fix a bug with multi influences display
Browse files Browse the repository at this point in the history
  • Loading branch information
axelberardino committed May 25, 2020
1 parent 6df2097 commit 1060403
Show file tree
Hide file tree
Showing 7 changed files with 834 additions and 29 deletions.
2 changes: 1 addition & 1 deletion data/template/parts/item.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="socketPopups"></div>
<div class="iconContainer">
<div class="icon {{ InfluenceName . }}" {{ GenSpecialBackground . | attr }}>
<div class="icon {{ InfluenceName . true }} {{ InfluenceName . false }}" {{ GenSpecialBackground . | attr }}>
<img class="object-img" src="{{ .Icon }}" alt="" />

{{ if .Sockets }}
Expand Down
4 changes: 2 additions & 2 deletions data/template/parts/itemdesc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="itemBoxContent">
<div class="itemHeader {{ ItemRarityHeight .FrameType }} {{ if .IsVeiled }}veiled{{ end }}">
<span class="l symbol {{ InfluenceName . }}"></span>
<span class="l symbol {{ InfluenceName . true }}"></span>
{{ if .Name }}
<div class="itemName">
<span class="lc">{{ .Name }}</span>
Expand All @@ -33,7 +33,7 @@
<span class="lc">{{ .Type }}</span>
</div>
{{ end }}
<span class="r symbol {{ InfluenceName . }}"></span>
<span class="r symbol {{ InfluenceName . false }}"></span>
</div>

<div class="content">
Expand Down
18 changes: 17 additions & 1 deletion demo/all_stash_types/stash_0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"numTabs": 19,
"numTabs": 20,
"tabs": [
{
"n": "empty",
Expand Down Expand Up @@ -304,6 +304,22 @@
"srcL": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoibCIsImMiOi04NjI5MTk0fV0\/10d10e4923\/Stash_TabL.png",
"srcC": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoibSIsImMiOi04NjI5MTk0fV0\/bc028daabc\/Stash_TabL.png",
"srcR": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoiciIsImMiOi04NjI5MTk0fV0\/6aa79009ee\/Stash_TabL.png"
},
{
"n": "Influences",
"i": 19,
"id": "1c073013340d4dc60d2db47c6c31ca9c6fc36767b2c24dcd2af4bb3bb595dbac",
"type": "NormalStash",
"hidden": false,
"selected": true,
"colour": {
"r": 255,
"g": 170,
"b": 0
},
"srcL": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoibCIsImMiOi04NjI5MTk0fV0\/10d10e4923\/Stash_TabL.png",
"srcC": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoibSIsImMiOi04NjI5MTk0fV0\/bc028daabc\/Stash_TabL.png",
"srcR": "https:\/\/web.poecdn.com\/gen\/image\/WzIzLDEseyJ0IjoiciIsImMiOi04NjI5MTk0fV0\/6aa79009ee\/Stash_TabL.png"
}
],
"items": []
Expand Down
1 change: 0 additions & 1 deletion demo/all_stash_types/stash_1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"numTabs": 14,
"currencyLayout": {
"0": {
"x": 302.4340770791075,
Expand Down
Loading

0 comments on commit 1060403

Please sign in to comment.