Download
(923Kb)
Download
Updated: 08-13-11 06:05 AM
Pictures
File Info
Updated:08-13-11 06:05 AM
Created:08-06-10 03:37 AM
Downloads:14,806
Favorites:39
MD5:

StarTip  Popular! (More than 5000 hits)

Version: v1.5.45
by: starlon [More]

StarTip - Tooltips from OuterSpace

Credits:

Huge appreciation goes out to ckknight for a ton of code. If you know CowTip, StarTip is similar. Props to Shefki for LuaTexts.

And many tributes go out to the many library authors whom have written the numerous libraries StarTip's script environment is built upon.

Customization Tips

StarTip provides an environment for your scripts.. This environment provides WoW API functions such as UnitName, UnitLevel, etc... If it's not available, try _G. Also, much of LuaTexts by Shefki is included, but be aware that modifications have been made and elements either removed or added. Also be aware that how you format your return values is incompatible with Pitbull4's implementation. In StarTip you simple return a string that's already formatted.

There are many plugins available. I imagine if you're willing to write an actual Lua script that you won't mind reading code. Go into the Libs folder and click into LibScriptable-1.0. Note all the LibScriptablePlugin* elements. These are what provide StarTip's script environment with functions and other elements.

Check here for a brief tutorial.

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

Bug Reports and Feature Requests

Report any bugs or feature requests here: StarTip Forum.
Or create a ticket here: StarTip Ticket Tracker
You can also post on the Wowace forum thread.
.

If you find a bug and you want to revert to a stable version, try the upload on Wowinterface.com

Note: Please write a ticket if you have a back trace: StarTip Ticket Tracker

Note to Translators: You can easily support this project by translating some phrases at either two locations: StarTip and LibScriptable-1.0.

v1.5.45:
Bug fix to positioning item and spell tooltips.

v1.5.44:
Bug fix/Typo fix. Positioning of "other" tooltips to a static position was broken.

v1.5.43:
Many improvements and bug fixes.
Gestures were given some attention.
Positioning is entirely scriptable now, and even offers an scriptable animation feature.
The tooltip's background is entirely scriptable now. This adds a new module called 'Background,' and follows along Cowtip's categorizing scheme.

v1.5.22:
Fixes a bug with font selections.

v1.5.21:
The main change here is StarTip no longer uses GameTooltip as the primary unit display. StarTip should work better with other addons as a result. If for some reason you want to display the default GameTooltip -- for example, another addon modifies it in such a way that StarTip is unaware -- then you can choose to attach it to StarTip's tooltip. This only works when the Position module is set to anchor StarTip to the mouse.

Also, and brought to you by popular demand, I went ahead and made the Mana line easier to read. :)

v1.4.52:
Update module tocs so they're not marked "Out of Date."

v1.4.50:
Bug fixes.
Added PVP lines, showing PVP rank, HKs, and arena teams.

v1.4.37:
Added a line for achievements.

Also added UnitPVPStats(unit) which will return a raw table with PVP standings and stats. I don't know the format, so it's up to users to figure things out as I'm not a fan of PVP to begin with, and I'm pretty much done with WoW in general. Look inside LibScriptablePluginsTalents.lua for further interests. (Yes, it's named poorly. It should be renamed PluginInspect) If you just can't figure it out, then post on the Wowace.com forums' StarTip thread, as I check that every so often. I didn't test this at all, so report anything strange or that you don't understand, cause it may simply be a bug as a product of my lack of skills. ;)

v1.4.34b:
The main difference here is the timers were rewritten to make use of UI animations for timer scheduling.
This is a beta release. I can not test it, but the "Fail" line may still be broken, hence the beta status. I don't usually upload beta files on Wowinterface.com, but I'm making an exception in this case since it's patch day. I'll update this again soon.

v1.4.30
It has been a while since I uploaded to this site. A lot has changed and some new lines have been added. The main difference between this version and v1.4.1 is underlying timer library now uses UI animations for scheduling. There is a remarkable performance boost, but likely unnoticeable to users, although mousing over a bunch of toons over and over seems more responsive now, or at least to me.

v1.4.1
StarTip should be easier on the FPS. Note that you can speed the tooltip's refresh rate, but you also have to update the individual lines that update, such as the spell cast line. It would look a lot better at 100ms than it currently does at 500ms, but this slower speed keeps my addon right on the heels of Pitbull4 in terms of CPU usage. That's with the player unit frame showing only and hovering over that unit frame to show StarTip. So I think the default speed is settled now.

v1.4:
- Added a movement line to show speed and pitch.
- Added an average item level line.
- Bug fixes and small improvements all around

v1.3.92:
Here's a stable release. Bugs were fixed. A few new features were added, but nothing much to speak of.

v1.3.75:
Many improvements and bug fixes.
A few new lines were added for displaying damage meter stats. Recount and Skada are supported. There's also a basic DPS meter, but it's off by default. See the new gestures under the Mouse Gestures module for tips on how to start and stop data collection, as well as wiping the current data.

v1.3.49:
Bug fixes.
Borders colors are now scriptable. Check the Borders module.
StarTip should now show an NPC's "guild" if one is available.
Made options for outlined texts.

v1.3.35:
More bug fixes.
I don't know if it's useful, but you can type in the input box: /script StarTip:ShowTooltip("player") -- and it will show your own tooltip. You can do this with any unit id.

v1.3.29:
Bug fixes. StarTip should play well with cooldown tooltips now.
You can now invert a modifier key, so that when you press the key down the tooltip hides, and when you release it the tooltip shows again.

v1.3.27:
Here are numerous bug fixes, thanks to all the great bug reports.
This should use a bit less memory overall.

v1.3.9:
This is the first official non-beta release.
Two new lines were added to the UnitTooltip module -- Gender and Effects. The latter shows things like polymorphed, disarmed, etc...

1.12.17b:
Not much has changed. GetMemUsage and GetCPUUsage have a new parameter. Pass a boolean in the second parameter and resource data will be updated before doing calculations.

1.12.15b:
Bugfixes

1.12.12b:
The default gesture now cause the tooltip to stay hidden even if you mouse over something. Perform the gesture again to toggle the tooltip shown again.

1.12.9b:
Fixed a bug where only a few of the lines would work for new users.

1.12.7b:
Fixed a bug that would pop up if you had a DK in your raid/party.
Gave icons some color.

1.12.5b:
Some bug fixes.
Introduce the Mouse Gestures module.

1.11.59b:
Disabled the DBM plugin since it's broken and causes the client to hang.

1.11.58b:
Added a portrait to the unit tooltip.
Added a new line for druid forms.
Level line should now properly show Boss, Elite, etc..

1.11.54b:
Bug fix. I did not try to load StarTip with DBM enabled before uploading.

1.11.53b:
Bug fixes.
Moved all modules out as individual addons.
Updated with StarLibs (now known as LibScriptableDisplay) changes.

1.11.49b:
Bug fix related to the Fade module.
Bug fix related to the Positioning module.
Plugged a memory leak.

1.11.45b:
Fixed a bug where the tooltip would stay shown after mousing over a unit frame.

1.11.44b:
To save on memory StarTip will load config options at OpenConfig instead of UI load.

1.11.41b:
Plugged a memory leak. I think that's the last one.

1.11.38b:
Bug fix

1.11.37b:
Refactored the broken intersecting code and changed some defaults around. Demos look nice.

1.11.35b:
Fixed a bug with intersecting while including paddings. The profiling demo should work now.

1.11.31b:
Bug fix

1.11.30b:
A few bugfixes and refactoring intersect updaters. Now each widget library has an IntersectUpdate that you can access with 'widget.IntersectUpdate'. Note that you need to provide it with a list of widgets, and the widgets require certain fields. Check the widget library functions for details.

1.11.27b:
Sorry I haven't got the bug fix out sooner. My local copy was a jumbled mess adding in the latest feature.

You can now find out if one frame intersects with another frame.
Intersect(frame1, frame2, frame1xPad1, frame1yPad1, frame1xPad2, frame1yPad2, frame2xPad1, frame2yPad1, frame2xPad2, frame2yPad2)

The profiling widgets are all intersecting, meaning they'll be checked against GetMouseFocus() to see if the two intersect or not, on a refresh timer. You can hide widget regions simply by finding out if the two intersect. The paddings allow you to adjust the sizes. So you widget can actually be larger than your frame.

1.11.24b:
Honest- Pitbull4 dependency's gone now.
You can specify that a widget be checked with intersecting widgets. So you can have a text widget hide when you're hovering over unit frames. It's really cool watching the individual bars in a histogram hide and show.

1.11.21:
I had Pitbull as a requirement by mistake. Sorry about that. I'll work in the feature. For now bosses, elites, etc.. are tagged with "*"

1.11.20b:
I think this fixes that bug. I've set default throttle value to 0.5. If it bugs on you let me know. It's easy to get rid of. Just mouse over a unit again, even if it's the same unit.

1.11.18b:
I changed throttling to off by default.
You can now mouse over your own unit frame.
I went through all of StarTip's lua scripts and finished integrating LuaTexts into the mix. I added a few LuaTexts functions, like Realm, Guild, Rank, and something else. Take a look at the default scripts.

Bug fixes.
1.11.10b:
Bug fixes.
Mouseovers are now throttled. You can change the threshold to whatever you want, but minimum is 100ms.

1.11.5b:
Changed around some defaults, added some lua texts, and fixed LuaTexts up. Some may still be broke. I'm testing them slowly I guess.

1.11.3b:
The gearscore bug popped up again -- fixed.
Profile changes should behave nicely now. There may still be issues. If something acts weird, a UI reload may fix it.

1.10.19b:
Further improvements to the last bug fix. Mousing over unit frames should work again.

1.10.18b:
Bugfix

1.10.17b:
Another memory audit revealed some more memory leaks.
You can now modify and add new widgets. Please let me know if something breaks.

1.110.14b:
I did a memory audit and plugged some memory leaks. It still has one or two I think. They're not big like the ones I plugged.

1.10.8b:
Attempt to restore old custom lines. Let me know if it breaks.

1.10.6b:
Introduce text widgets. The Text module has been renamed as UnitTooltip, and a new module named Text was created, allowing the user to place a scriptable fontstring anywhere or anchored to the mouse. So far you can set one individual point, but I have plans to make more points available.

If you had custom lines, you'll have to recreate them or go dig in your saved variables file and get them there. I'm hoping it's been too soon since StarTip couldn't be configured that this won't be a huge deal.

1.10b:
Finally I think it's time to bump project's status. Histograms and bars are in. Text widgets are next. Fun stuff. Oh and this package removes spam when you mouse over unit frames.

1.9.23b:
Fixed a bug where mousing over unit frames was a pain.

1.9.22b:
Bugfixes. You should be able to create histograms now.

1.9.15b:
Mainly bug fixes. I had the addon creating widgets for every segment instead of every histogram. In this release there's a memory usage and cpu usage demo. You'll have to reset to defaults more than likely. I haven't tracked that bug down yet.

1.9.14b:
Bugfix and change some defaults around. You'll need to enable the timer widget and the Histogram module to see the histogram demo. Alternatively you could use ResourceServer to get a better idea what kind of resources are being used. There may be a small memory leak somewhere, but it's nowhere near bad.

1.9.13b:
Introduce histogram widgets. There's one demo histogram, and it's defaulted as disabled.

1.9.9b:
- Recycle bars
- Make bar width configurable

1.9.8b:
Allow the database to keep bars between sessions.

1.9.6b:
- You can create your own bars, and place them where ever.

1.9.4b:
- Add color to health and power lines

1.9.3b:
-Revamped how line colors are done. If you had custom lines where you added color, you'll need to redo it with GetColorCode(). Reference the default lines for examples.
-You can also now specify a default color for lines.

1.8.10b:
Added three new plugins: PluginUnit, PluginGuild, and PluginSpell.

1.8.5b:
Removed some old font files, shrinking the size of the package by a lot.

1.8.4b:
More bug fixes. StarTip should no longer wipe other addons' tooltip lines, such as GearScore's.

1.8.2b:
Bug fixes pertaining to editing and deleting lines.
Implemented timers for executing some code on an interval.
Resource profiling should be working now. You'll need to enable the timer widget.

1.7.18b:
Nobody told me StarTip broke when you turned into a ghost. This fixes that.

1.7.17b:
Fixed a bug that ate cpu time.

1.7.16b:
Bugfix

1.7.15b:
Bugfix

1.7.14b:
I removed the LCD Display module and created a new addon with it called LCD4Linux4WoW.
Fixed a memory leak and numerous bugs.

1.7.6b:
Marquee settings are fixed. You can configure new marquees now.

1.7.5b:
Default new lines to enabled.

1.7.2b:
Fixed a memory leak related to the bars module.

1.7.1b:
There's an LCD demonstration in this package.
Fixed talents module.
Various other improvements from the core library.
Optional Files (0)


Post A Reply Comment Options
Unread 11-18-10, 08:05 AM  
ipothe
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Startip stopped working here, the unittooltips didnt show up anymore.
The reason was the unknown function SkadaUnitDPS.
Disabling the Skadaunitdps in the configuration menu did not help.
I had to change the UnitTooltip.lua, removing the SkadaUnitDPS call.
Report comment to moderator  
Reply With Quote
Unread 11-17-10, 05:02 PM  
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member

Forum posts: 133
File comments: 75
Uploads: 0
Originally posted by starlon
I did, and honestly I want to keep the UI somewhat uniform. Pitbull uses the default colors, and I'd rather have mine match that and other addons that use the default colors.
No worries to that. I already coded up a table and my own PowerColor inside one of the left/right code regions.

I've been away from the character I'm testing this with for a while, but when I get back into it, I'll come back with anything new (or stuff still around) after the last few releases.
Report comment to moderator  
Reply With Quote
Unread 11-16-10, 09:20 PM  
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 680
File comments: 373
Uploads: 15
Got a wierd behaviour all of a sudden. Got this in my chat frame:
(11/16/10 21:18:08)LibScriptableDisplayWidgetGestures-1.0: Hide Tooltip:: Execute

Tooltips stopped working afterwards.
Report comment to moderator  
Reply With Quote
Unread 11-11-10, 09:38 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Starlon: I'll have to think about this and play with the colors a bit. [/b]
I did, and honestly I want to keep the UI somewhat uniform. Pitbull uses the default colors, and I'd rather have mine match that and other addons that use the default colors.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 11-04-10, 08:33 PM  
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 680
File comments: 373
Uploads: 15
Re: Can you show...

Originally posted by Shuralath
In the tooltip if a mob is related to a quest you have?
My old tooltips carried over the Blizz bit that did this (for all toons in the party since Patch 4, just for me previously) but I can't see how to enable it in StarTip.
I may be missing something obvious, apologies if I am.

One other thing, a minor glitch I have. If I mouseover a spell/ability which is on CD I get the tooltip flickering between the original, default Blizz tip and the StarTip one I've setup. Is this a known issue? whether it is or not, anyone got any hints on how to fix it? It's not a huge problem as I don't tend to mouseover my spells when they're on CD, it's just a little irritating when it happens

Any help is much appreciated
I'm having a similar issue. When mousing over world objects (mining nodes, herbs are most noticable) it's a coinflip on whether my tooltip will appear at my mouse (as configured) or appear in the default position (bottom-right). I've been trying to track this for a few days now, but can't pinpoint a definite "this cause it to happen".
Report comment to moderator  
Reply With Quote
Unread 11-04-10, 11:13 AM  
Shuralath
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Can you show...

In the tooltip if a mob is related to a quest you have?
My old tooltips carried over the Blizz bit that did this (for all toons in the party since Patch 4, just for me previously) but I can't see how to enable it in StarTip.
I may be missing something obvious, apologies if I am.

One other thing, a minor glitch I have. If I mouseover a spell/ability which is on CD I get the tooltip flickering between the original, default Blizz tip and the StarTip one I've setup. Is this a known issue? whether it is or not, anyone got any hints on how to fix it? It's not a huge problem as I don't tend to mouseover my spells when they're on CD, it's just a little irritating when it happens

Any help is much appreciated
Report comment to moderator  
Reply With Quote
Unread 11-01-10, 02:45 AM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by nazrhyn
Yeah. I guess I could just write it myself with whatever colors I want. Could you tell me the syntax for writing an anonymous function within the left/right box? I'm looking for something like this syntax from C#:

Code:
var method = delegate(string className) { ... };
...
method(...);
I know you can do it, I just don't remember the syntax.



I'm not exactly sure what a delegate is, even though that's the language I learned in college. I have a terrible memory, but that doesn't even ring a bell, so yeah. You're talking about OO methods right? Or just simple functions? If I recall right, C# has no such thing as a function, only methods. Is this the same thing as a delegate?

Wow, self.Stop() is all it takes huh? I like it. Will try modifying mine.
Let me know if it goes wrong.

I was testing that location thing out and it was totally not working for anything. The 3rd return from GetUnitTooltipStats was always empty. What's the syntax for accessing those functions from outside of your addon so I can use /dump with them? Would I need to go through the Ace library loader thing syntax?
I don't expose the libraries StarTip uses. Sometimes there's nothing on the tooltip (the library scans the tooltip -- ckknight's algorithm) to return for a unit. The only way to access that is to write a simple addon I suppose. I'll be looking into this probably tonight, unless I pass out.

Another thing is that when it moves one up, the one below it has its sub-tree expanded.
<(^.^<)

Ah, you know I didn't notice it was using Name(...) instead of UnitName. However, an interesting thing I found when I was messing with that last night is that hovering over my raid frames and running /dump UnitName("mouseover") was returning nil. What?? How do I get the unit name of not-in-range units? Do you HAVE to do tooltip scraping?
Yeah, try StarTip.unit in place of "mouseover". Not all mouseovers are "mouseover" -- your own unit frame for example is "player" and that's what GameTooltip:GetUnit() will return as second value.

Status like, I assume, the status you said this about: "disable the Range line and possibly the Status line, maybe even Druid Form line. I think 1.11.55b fixes the Status line sort of, but the line's crippled at the moment, so don't expect it to be accurate." It should be stuff like Dead, DND, AFK, blah blah. The same thing that the [Status] DogTag returned.
Hmm, I'll get back with you on that.

Thanks for the awesome dialogue. I appreciate the help .
My pleasure.

FTR: These are the power colors that CowTip used. I like them:

Code:
	rage = { 226/255, 45/255, 75/255 },
	energy = { 1, 220/255, 25/255 },
	focus = { 1, 210/255, 0 },
	mana = { 48/255, 113/255, 191/255 },
	runicPower = { 0, 209/255, 1 },
[/quote]

I'll have to think about this and play with the colors a bit.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-29-10, 10:13 AM  
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member

Forum posts: 133
File comments: 75
Uploads: 0
I'm not sure what's up with the colors. Maybe different fonts? I'm not looking at the pics at the moment.
Yeah. I guess I could just write it myself with whatever colors I want. Could you tell me the syntax for writing an anonymous function within the left/right box? I'm looking for something like this syntax from C#:

Code:
var method = delegate(string className) { ... };
...
method(...);
I know you can do it, I just don't remember the syntax.

Ok, I think you convinced me with the fading. I'll work something out. It'll look something like this:
Wow, self.Stop() is all it takes huh? I like it. Will try modifying mine.

I'll also be adding a guildie's guild info on their current zone. Of course it only shows for guildies
I was testing that location thing out and it was totally not working for anything. The 3rd return from GetUnitTooltipStats was always empty. What's the syntax for accessing those functions from outside of your addon so I can use /dump with them? Would I need to go through the Ace library loader thing syntax?

Yeah I hate that. It's going to take some digging I think. Maybe I'll ask about it in the Ace3 forum.
Another thing is that when it moves one up, the one below it has its sub-tree expanded.

Yeah, some functions and whatnot return often incomplete or no information at all on out-of-range units. Name(unit, true) is one of these. By passing true, you're using UnitPVPName instead of UnitName. I used UnitPVPName for a while, till I got in a raid and noticed this issue with it. The only thing I can figure is use the range finder functions to determine how far away the unit is from you, and display PVP name if they're in range, else display regular name. Alternatively, the name returned by UnitTooltipStats that you found will be the player's PVP name.
Ah, you know I didn't notice it was using Name(...) instead of UnitName. However, an interesting thing I found when I was messing with that last night is that hovering over my raid frames and running /dump UnitName("mouseover") was returning nil. What?? How do I get the unit name of not-in-range units? Do you HAVE to do tooltip scraping?

What do you mean by Status? What kind of information did you want?
Status like, I assume, the status you said this about: "disable the Range line and possibly the Status line, maybe even Druid Form line. I think 1.11.55b fixes the Status line sort of, but the line's crippled at the moment, so don't expect it to be accurate." It should be stuff like Dead, DND, AFK, blah blah. The same thing that the [Status] DogTag returned.

Last thing, any ideas on getting this?

Pet owner name as <owner>'s Pet
Thanks for the awesome dialogue. I appreciate the help .

EDIT: Just got to try out the new outline thing. Awesome! Though, before you had a super thin outline on the first line, somehow, and that still seems to be there. See the screenshot, below:



EDIT2: I'm a freakin' idiot. Ignore all the crap I said about ClassColor. I meant PowerColor. Fixing it myself, now.

FTR: These are the power colors that CowTip used. I like them:

Code:
	rage = { 226/255, 45/255, 75/255 },
	energy = { 1, 220/255, 25/255 },
	focus = { 1, 210/255, 0 },
	mana = { 48/255, 113/255, 191/255 },
	runicPower = { 0, 209/255, 1 },
Last edited by pelf : 10-29-10 at 06:30 PM.
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 09:32 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
So far, the only functionality I have left is (from top to bottom, left to right)...
  • Outlines
  • Zone
  • Status
  • Talents (tree + distribution)
  • Pet owner name as <owner>'s Pet
What do you mean by Status? What kind of information did you want?
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 09:01 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by nazrhyn
Thanks for the API info.

For the fading, maybe I should clarify. I like the fading. Especially to be able to see, in PvP, some player I moused over who stealthed immediately afterward. I just don't like how stuff changes in the tooltip WHILE it's fading.


Ok, I think you convinced me with the fading. I'll work something out. It'll look something like this:

Code:
if not UnitExists(unit) then self:Stop(); return self.lastPower end
local mana = UnitMana(unit)
local maxMana = UnitManaMax(unit)
local r, g, b = PowerColor(nil, unit)
local value = "Unknown"
if maxMana == 100 then
    value = Colorize(tostring(mana), r, g, b)
elseif maxMana ~= 0 then
    value = Colorize(format("%s/%s (%d%%)", short(mana), short(maxMana), mana/maxMana*100), r, g, b)
end
self.lastPower = value
return value
If that's what you thought I was saying before, ignore this .

The last thing is about the ClassColor stuff. I looked in the DogTag source and the ClassColor tag, which accesses DogTag.__colors[...] is populated by this...
Code:
for class, data in pairs(_G.RAID_CLASS_COLORS) do
	DogTag.__colors[class] = { data.r, data.g, data.b, }
end
...which totally doesn't explain the color discrepancy between those two tooltips as your code pulls it from the exact same global table...
Code:
local t = RAID_CLASS_COLORS[class]
Did blizzard change their class colors at some point? Do you think CowTip was doing some post-processing on the text that I'm not seeing?

I definitely prefer the more muted colors for classes.
I'm not sure what's up with the colors. Maybe different fonts? I'm not looking at the pics at the moment.


EDIT: So, I dug up my old DogTags for CowTip. Here's what I had...
Code:
[ThickOutline][(IsPlayer ? ClassColor) NameRealm]
[Outline][(IsPet ? "Pet" ! ~IsPlayer ? ~IsEnemy ? (Guild ? Guild:Gray:Angle ! "NPC":Gray) ! "Enemy":Red ! ~Guild ? "Player":Gray ! (Guild = Guild(unit="player") ? Green) Guild:Angle)]
[Zone || (TalentSpec ? Alpha(0) "Local")]
[Status:StatusColor || [(~IsFriend || IsPlayer) ? FractionalHP:Short:HPColor " " PercentHP:Percent:Paren]]

[(Target:IsPlayer ? ClassColor(unit=Target)) Target:NameRealm]
[("Level " Level Classification:Prepend(" ")):DifficultyColor] [IsPlayer ? Race ! Creature] [IsPlayer ? Class:ClassColor]
[TalentSpec ? TalentTree:ClassColor " " TalentSpec:Paren]
[~(IsFriend & ~IsPlayer) & ~Status & HasMP ? FractionalMP:Short:PowerColor ' ' PercentMP:Percent:Paren ! " "]
[Owner ? (Owner "'s Pet"):Angle]
So far, the only functionality I have left is (from top to bottom, left to right)...
  • Outlines
  • Zone
  • Status
  • Talents (tree + distribution)
  • Pet owner name as <owner>'s Pet

I know some of those are pending your fixes, but specifically zones, and pet owner's name I'm interested in figuring out. Any ideas? ilu

EDIT2: Oh, I think I found the location.

Code:
return getName(), getGuild(), getLocation()
That's in GetUnitTooltipStats. Booya.

SubEDIT2: Oh yeah. You already had location. /bonk
I'll also be adding a guildie's guild info on their current zone. Of course it only shows for guildies

EDIT3: When you hit Move Up, it should select the item it moved up, not leave the selection on the one that moved down to replace it.
Yeah I hate that. It's going to take some digging I think. Maybe I'll ask about it in the Ace3 forum.

EDIT4: Another interesting thing. These are left and right, respectively. Line one.

Code:
local r, g, b
if UnitIsPlayer(unit) then
    r, g, b = ClassColor(unit)
else
    r, g, b = 1, 1, 1
end
return Colorize(Name(unit, true), r, g, b)
Code:
local r, g, b
local unit = (unit or "mouseover") .. "target"
if UnitIsPlayer(unit) then
    r, g, b = ClassColor(unit)
else
    r, g, b = UnitSelectionColor(unit)
end
local name = UnitName(unit)
return name and Colorize(name, r, g, b) or " "
When I mouse over a raid frame (blizzard or xperl; so, I don't think it's xperl's problem), I get this for units in the same zone and in range...



...and this for units out of range/zone...



...what gives?
Yeah, some functions and whatnot return often incomplete or no information at all on out-of-range units. Name(unit, true) is one of these. By passing true, you're using UnitPVPName instead of UnitName. I used UnitPVPName for a while, till I got in a raid and noticed this issue with it. The only thing I can figure is use the range finder functions to determine how far away the unit is from you, and display PVP name if they're in range, else display regular name. Alternatively, the name returned by UnitTooltipStats that you found will be the player's PVP name.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 04:54 PM  
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member

Forum posts: 133
File comments: 75
Uploads: 0
Thanks for the API info.

For the fading, maybe I should clarify. I like the fading. Especially to be able to see, in PvP, some player I moused over who stealthed immediately afterward. I just don't like how stuff changes in the tooltip WHILE it's fading.

If that's what you thought I was saying before, ignore this .

The last thing is about the ClassColor stuff. I looked in the DogTag source and the ClassColor tag, which accesses DogTag.__colors[...] is populated by this...
Code:
for class, data in pairs(_G.RAID_CLASS_COLORS) do
	DogTag.__colors[class] = { data.r, data.g, data.b, }
end
...which totally doesn't explain the color discrepancy between those two tooltips as your code pulls it from the exact same global table...
Code:
local t = RAID_CLASS_COLORS[class]
Did blizzard change their class colors at some point? Do you think CowTip was doing some post-processing on the text that I'm not seeing?

I definitely prefer the more muted colors for classes.

EDIT: So, I dug up my old DogTags for CowTip. Here's what I had...
Code:
[ThickOutline][(IsPlayer ? ClassColor) NameRealm]
[Outline][(IsPet ? "Pet" ! ~IsPlayer ? ~IsEnemy ? (Guild ? Guild:Gray:Angle ! "NPC":Gray) ! "Enemy":Red ! ~Guild ? "Player":Gray ! (Guild = Guild(unit="player") ? Green) Guild:Angle)]
[Zone || (TalentSpec ? Alpha(0) "Local")]
[Status:StatusColor || [(~IsFriend || IsPlayer) ? FractionalHP:Short:HPColor " " PercentHP:Percent:Paren]]

[(Target:IsPlayer ? ClassColor(unit=Target)) Target:NameRealm]
[("Level " Level Classification:Prepend(" ")):DifficultyColor] [IsPlayer ? Race ! Creature] [IsPlayer ? Class:ClassColor]
[TalentSpec ? TalentTree:ClassColor " " TalentSpec:Paren]
[~(IsFriend & ~IsPlayer) & ~Status & HasMP ? FractionalMP:Short:PowerColor ' ' PercentMP:Percent:Paren ! " "]
[Owner ? (Owner "'s Pet"):Angle]
So far, the only functionality I have left is (from top to bottom, left to right)...
  • Outlines
  • Zone
  • Status
  • Talents (tree + distribution)
  • Pet owner name as <owner>'s Pet

I know some of those are pending your fixes, but specifically zones, and pet owner's name I'm interested in figuring out. Any ideas? ilu

EDIT2: Oh, I think I found the location.

Code:
return getName(), getGuild(), getLocation()
That's in GetUnitTooltipStats. Booya.

SubEDIT2: Oh yeah. You already had location. /bonk

EDIT3: When you hit Move Up, it should select the item it moved up, not leave the selection on the one that moved down to replace it.

EDIT4: Another interesting thing. These are left and right, respectively. Line one.

Code:
local r, g, b
if UnitIsPlayer(unit) then
    r, g, b = ClassColor(unit)
else
    r, g, b = 1, 1, 1
end
return Colorize(Name(unit, true), r, g, b)
Code:
local r, g, b
local unit = (unit or "mouseover") .. "target"
if UnitIsPlayer(unit) then
    r, g, b = ClassColor(unit)
else
    r, g, b = UnitSelectionColor(unit)
end
local name = UnitName(unit)
return name and Colorize(name, r, g, b) or " "
When I mouse over a raid frame (blizzard or xperl; so, I don't think it's xperl's problem), I get this for units in the same zone and in range...



...and this for units out of range/zone...



...what gives?
Last edited by pelf : 10-28-10 at 05:54 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 08:51 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by starlon
Sure do It's that or have: if not UnitExists(unit) then return end -- at every updating line. I kind of like how it defaults to unknown. I admit the status line showing offline is sort of unattractive. But yeah, if a lot of people seem bugged by it, then I'll make some changes to the scripts, otherwise I sort of like the fading effect.
Pro tip: You can call self:Stop() to stop a text widget completely.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 08:49 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by nazrhyn

There's more info on the fading thing below the screenshots. You like that? It basically seems to be losing the information about the health and power but not anything else.
Sure do It's that or have: if not UnitExists(unit) then return end -- at every updating line. I kind of like how it defaults to unknown. I admit the status line showing offline is sort of unattractive. But yeah, if a lot of people seem bugged by it, then I'll make some changes to the scripts, otherwise I sort of like the fading effect.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 08:46 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by nazrhyn
EDIT2: Also, do you know what the API call is to get the subtitle of NPCs? For example, <Leather Armor Merchant>, or other stuff like that. [/b]
This should get it for you: select(2, GetUnitTooltipStats(unit))

Nice looking screenshots btw. I'll look into the outlining business. I seem to recall some options involving outlines.
__________________
Wake up Sheeple! Cataclysm was an inside job!

Legalize WoW gold purchases directly from Blizzard! Yeah, my doctor thinks I'm crazy too. >.<

"It was either going to school for programming or working at the Genetically Modified Wildlife Preserve. I've always had a love for the wildlife, but technology won out in the end."

Note: If you know of a library that you want to make available in your own scripts. let me know and I'll see about writing a plugin for it.

[SIGPIC]LCD4WoW[/SIGPIC]
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 08:19 PM  
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member

Forum posts: 133
File comments: 75
Uploads: 0
You can see the ThickOutline and Outline on the screenshots of my CowTip configuration. It's that thing that the WoW font renderer lets you do. It's in a lot of addons.

There's more info on the fading thing below the screenshots. You like that? It basically seems to be losing the information about the health and power but not anything else.

I probably made the second edit to my post while you were reading this thread. There's some more stuff at the bottom.

Thanks for your responses .
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: