浏览代码

fixes #87

tags/v0.3.1
BigBadWaffle 5 年前
committed by Big Bad Waffle
父节点
当前提交
2861d597e4
共有 2 个文件被更改,包括 9 次插入1 次删除
  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 查看文件

@@ -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 查看文件

@@ -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) : '');



正在加载...
取消
保存