I don't know why Phanx's code isn't working, but it looks somewhat different to the code I use (which I got from a suggestion in the original CowTip thread). I tried modifying that code and came up with:
I don't know why Phanx's code isn't working, but it looks somewhat different to the code I use (which I got from a suggestion in the original CowTip thread). I tried modifying that code and came up with:
I would like to get custom hp and mp texts for Pitbull.
I want only to see the current health and mana on my unitframes. Only I can get is something like this 5000/8000, but I want it to only show the current hp 5000 without the slash and full hp.
1. If I'm in a party, partymembers who are out of range have a - behind their name. E.g. "Phantasos-" without the quotas of course :>
That's because the UnitName function now returns an empty string for the second return value when units aren't "visible". Normally the second return value is the server name of players in arenas/battlegrounds. I don't know if this was an intentional change on Blizzard's part, but any addons that use the second return value from UnitName have to be updated with an additional check to ignore the value not only if it doesn't exist, but also if it does exists but is an empty string. You can either add this check to DogTag yourself, or wait for ckknight to update it and change your name tag to just [Name] without the server name.
Quote from shali »
2. I'd like to have the location where ppl in my party are in the tooltip, if the are out of range. is that somehow possible?
I didn't check the actual code, but it's not on the Wiki documentation, and I'm pretty sure nothing like this is included in DogTag yet, although it would be a sensible addition since DogTag is used by an addon that replaces the default tooltips. I'd suggest filing a feature request on Jira (jira.wowace.com) about it.
Quote from Pjotr_SWC »
I want only to see the current health and mana on my unitframes. Only I can get is something like this 5000/8000, but I want it to only show the current hp 5000 without the slash and full hp.
You could have probably figured this out by looking at the in-game default tag ([CurHP]/[MaxHP]) in less time than it took you to come here and make this post, but try [CurHP].
I didn't check the actual code, but it's not on the Wiki documentation, and I'm pretty sure nothing like this is included in DogTag yet, although it would be a sensible addition since DogTag is used by an addon that replaces the default tooltips. I'd suggest filing a feature request on Jira (jira.wowace.com) about it.
Doesn't the [Zone] tag already do this? I'm pretty sure I have this tag in CowTip and when party members are in a different zone or out of my area (not sure at what distance it starts) their zone or subzone is shown. When they're near me it's blank.
Yeah, but I'm way, way too lazy to sit down, read through the Lua, and make a list of all the tags and modifiers, and write descriptions for them. Hence my disclaimer that I didn't look at the Lua, just the Wiki. :P
I want to mod DogTag Lib to get a text output of the mobs difficulty, for when those DifficultyColor is just not enough. Anyone have an idea?
I checked the wiki, and the lua such a function doesn't seem to exist at the moment.
Another question though, is it possible to get the DifficultyColor to ignore sides? At the moment if I target a elite 70 on my side I get the text in white (regardless of my level in comparison) I really want the difficulty color (and the above text) to state just how hard that mob would be...
((And yes I posted a similar post in Libraries discussion, apologies if I should stick to one place, not sure what subject to put it under or who to ask... There is no Jira suggestion category for it *sobs* ))
But I would really like it to be appended instead of fractional, such as CurrentMP | Max MP and hide the Current MP when full. Also, I would like the MAX MP to at all times be (either the color of Mana or Color(3299CC)) unless I am using Rage/Energy, which I suppose I'd like in white since too many different colors might clash.
Thanks for whatever help someone can provide :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm using CowTip. This is what it currenly looks like when I target some random mage that is targeting himself:
The color to the right should be blue, but it's white :/
Still doesn't work :(
It *seems* to work when I test it, but let me know if there's any problem. :)
Now it works perfect I belive, thank you very much :D Hope someone else find good use of it aswell :)
I'm using CowTip and I'm pretty happy with it. Just two things:
1. If I'm in a party, partymembers who are out of range have a - behind their name. E.g. "Phantasos-" without the quotas of course :>
2. I'd like to have the location where ppl in my party are in the tooltip, if the are out of range. is that somehow possible?
Thanks in advance :)
I want only to see the current health and mana on my unitframes. Only I can get is something like this 5000/8000, but I want it to only show the current hp 5000 without the slash and full hp.
Same goes with MP.
Thanks in advance.
That's because the UnitName function now returns an empty string for the second return value when units aren't "visible". Normally the second return value is the server name of players in arenas/battlegrounds. I don't know if this was an intentional change on Blizzard's part, but any addons that use the second return value from UnitName have to be updated with an additional check to ignore the value not only if it doesn't exist, but also if it does exists but is an empty string. You can either add this check to DogTag yourself, or wait for ckknight to update it and change your name tag to just [Name] without the server name.
I didn't check the actual code, but it's not on the Wiki documentation, and I'm pretty sure nothing like this is included in DogTag yet, although it would be a sensible addition since DogTag is used by an addon that replaces the default tooltips. I'd suggest filing a feature request on Jira (jira.wowace.com) about it.
You could have probably figured this out by looking at the in-game default tag ([CurHP]/[MaxHP]) in less time than it took you to come here and make this post, but try [CurHP].
Doesn't the [Zone] tag already do this? I'm pretty sure I have this tag in CowTip and when party members are in a different zone or out of my area (not sure at what distance it starts) their zone or subzone is shown. When they're near me it's blank.
[me=Seerah]goes and edits the wiki[/me]
ANYONE can do this you know!
Yes but anyone can watch you edit the wiki for us, and it takes so much less work! :P
Just kidding, you know we all wish we could be as awesome at getting things done as you are.
""Ooooo Wiki-Woman,
She how fast she types..."
been trying to get my MaxHP tag to show when I'm only at full health.
[CurHP:Hide([MaxHP]):Color(ff6666)] | [MaxHP] [PercentHP:Hide(100):Percent:paren]
is my current Tag. Have tried:
[MaxHP:HideLess([MaxHP])]
[MaxHP:HideUnless([MaxHP]) to no avail.
Any ideas how to do it ?
Thanks Geffy.
Here's a example of how I did just what you're asking about
At 100%, It shows % when the HP value isn't known, otherwise the value if 100%. If friendly it shows the defecit and if not it shows "CurHP | %"
I checked the wiki, and the lua such a function doesn't seem to exist at the moment.
Another question though, is it possible to get the DifficultyColor to ignore sides? At the moment if I target a elite 70 on my side I get the text in white (regardless of my level in comparison) I really want the difficulty color (and the above text) to state just how hard that mob would be...
((And yes I posted a similar post in Libraries discussion, apologies if I should stick to one place, not sure what subject to put it under or who to ask... There is no Jira suggestion category for it *sobs* ))
Also, from the first page I really liked the focus tags that were posted:
[~Status?IsMana?[IsMaxMP?MaxMP:Short!FractionalMP:Short]!IsRage?CurMP:Hide(0)!CurMP:Hide([MaxMP]):Short]
But I would really like it to be appended instead of fractional, such as CurrentMP | Max MP and hide the Current MP when full. Also, I would like the MAX MP to at all times be (either the color of Mana or Color(3299CC)) unless I am using Rage/Energy, which I suppose I'd like in white since too many different colors might clash.
Thanks for whatever help someone can provide :)