Wargus / war1gus

Importer and scripts for Warcraft: Orcs and Humans
GNU General Public License v2.0
101 stars 14 forks source link

display freeze overlay on target unit fix Update ui.lua #431

Closed Lagi7 closed 10 months ago

Lagi7 commented 10 months ago

freeze method need to display first sprite (index 0) not 5th as web

Lagi7 commented 10 months ago

to ilustrate what i talking here about:

the below ices on top of unit dont appear when you cast Freeze spell, because current code using frame nr 5 (index4) instead frame nr 1 (index 0)

image

Lagi7 commented 10 months ago

image

Lagi7 commented 10 months ago
Method = {method-name, {tag = value}}
<dd>Which method we use to show variable. It could be a bar, a sprite, a number...</dd>
<dl>
  <dt>"text", {}</dt>
  <dd>Show the value with a number</dd>
  <dt>"static-sprite", {"sprite-name**", number}</dt>
  <dd>Use the number icon of the sprite (**defined by <a href="#DefineSprites">DefineSprites()</a>)</dd>

line 429 https://github.com/Wargus/stratagus/blob/2636ea33d5a620be95afc9d867e10269cb991ac7/doc/scripts/config.html#L429