Page 1 of 1

Icons?

Posted: June 11th, 2009, 6:08 pm
by DarkNemesis
I think Icons should be implamented for buffs/shields/etc. I know most effects already have them, but skills such as Rune Shield, Fungal Armor, and Icy Barrier? Don't have Icons, kinda uncool imo.

Note: If anyone can think of further effects that pertain to what I just said, please add them, I know I forgot some :wink:

Re: Icons?

Posted: June 11th, 2009, 8:06 pm
by Reaper
It would actually be nice if the damage absorbing spells had a lifebar, or some way of tracking how much health they have.

Tooltips aren't really necessary though

Re: Icons?

Posted: June 11th, 2009, 8:25 pm
by GeneralFunk
Yak could use a texttag of "llllllllll" for a life bar.

Re: Icons?

Posted: June 11th, 2009, 9:56 pm
by DarnYak
GeneralFunk wrote:Yak could use a texttag of "llllllllll" for a life bar.
Clever idea, I'll see if i can experiment with this some.

DarnYak

Re: Icons?

Posted: June 11th, 2009, 10:53 pm
by GeneralFunk
Of course don't forget invis and "revealed" checks. That would be all shitty like to be invising around with that shit over your head for everyone to see like the "noob" notification.

Re: Icons?

Posted: June 12th, 2009, 11:46 am
by Reaper
why 'L' and not |||||||


also I mentioned this because the black road 2.0 has a similar thing on the paladin hero

Re: Icons?

Posted: June 12th, 2009, 12:02 pm
by GeneralFunk
'|' is a problematic character in Warcraft III. If you put two in a row ("||") it will show as nothing, so ultimately if you did '|||||||' it would come out as "|". He would have to space each one, which would make it too wide, and to do it in a looped format, it would look clunky with a space on the far left, unless an if check is made to look at the last one to not add a space. '|' character was designed for text tags, like center text, colorize text, close colorize text, etc.. "I" could be better, or the fastest method that requires the least work and process/memory would be to just take the Sheild integer and use I2S(sheildLife)

Re: Icons?

Posted: June 12th, 2009, 12:07 pm
by Discombobulator
DarnYak wrote:
GeneralFunk wrote:Yak could use a texttag of "llllllllll" for a life bar.
Clever idea, I'll see if i can experiment with this some.

DarnYak
Personas has such a system, it looks great.

Re: Icons?

Posted: June 12th, 2009, 1:27 pm
by Dekar
The Blizzard map with aircraft combat has progress bars, too.

Re: Icons?

Posted: June 12th, 2009, 3:57 pm
by mianmian
Personally I think llllll looks like shit. I wouldn't do it.

That being said, not having buff icons is sometimes annoying for RK and them, because one some heroes its hard to see.

Re: Icons?

Posted: June 12th, 2009, 4:51 pm
by GeneralFunk
I suppose multiple text tags stacked on each other to generate a more solid effect could work. >_>

Code: Select all

//Pseudo-code
constant float offsetY = 15;
constant integer maxHealthPercent = 20;

UpdateSheildBar(  int initSlotPosition, Unit theUnit, int sheildLifePercent )
{
    float offsetX = -9.5;

    for (int i = initSlotPosition, i > initSlotPosition + 20, i++)
    {
        if ( i >= lifePecent )
        {
            textTag[i] = EditTag( theUnit, "|", offsetX, offsetY );
        }
        offsetX++
    }
}
Har har, thilly me! I forgot about the cltr+backspace character, that could be used between the '|' characters.

"[]" represents the ctrl + backspace character, since it doesn't show on here either.

Code: Select all

//Pseudo-code
constant float offsetX = 0f;
constant float offsetY = 15f;
constant integer maxHealthPercent = 20;

UpdateSheildBar(  int slotPosition, Unit theUnit, int sheildLifePercent )
{
    string lifeBar = ""

    for (int i = 0, i > 20, i++)
    {
        if ( i < lifePecent )
        {
            lifeBar = lifeBar + "|[]"
        }
        else
        {
            break //in Jass terms "exitwhen true"
        }
    }
    textTag[slotPosition] = EditTag( theUnit, lifeBar,offsetX, offsetY );
}