Ver a proveniência

fixes #87

tags/v0.3.1
BigBadWaffle há 5 anos
committed by Big Bad Waffle
ascendente
cometimento
977983e0c5
2 ficheiros alterados com 9 adições e 1 eliminações
  1. +1
    -0
      src/client/ui/templates/tooltipItem/templateTooltip.html
  2. +8
    -1
      src/client/ui/templates/tooltipItem/tooltipItem.js

+ 1
- 0
src/client/ui/templates/tooltipItem/templateTooltip.html Ver ficheiro

@@ -10,6 +10,7 @@
<div class="quest">quest item</div>
<div class="spellName">$SPELLNAME$</div>
<div class="damage">$DAMAGE$</div>
<div class="spellCost">$SPELLCOST$</div>
<div class="requires">
requires:
<div class="level">level: $LEVEL$</div>


+ 8
- 1
src/client/ui/templates/tooltipItem/tooltipItem.js Ver ficheiro

@@ -343,10 +343,17 @@ define([
.show();
tooltip.find('.damage')
.show();
if (item.spell.manaCost) {
tooltip.find('.spellCost')
.html(item.spell.manaCost + ' mana')
.show();
}
if (item.ability)
tooltip.find('.spellName').hide();
} else
} else {
tooltip.find('.spellName').hide();
tooltip.find('.spellCost').hide();
}

tooltip.find('.worth').html(item.worthText ? ('<br />value: ' + item.worthText) : '');



Carregando…
Cancelar
Guardar