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,820
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 10-01-10, 01:17 PM  
Grilor
Premium Member
 
Grilor's Avatar
Premium Member

Forum posts: 9
File comments: 107
Uploads: 0
i did

I do that the lastest one installed from curse but i get no tooltips
when i click on the broker button nothing happens when i go in to the game menu and open the addons tab and click on the Star-tip link there i just get a blank window that says Star-Tip menu and thats it. so i am still having problems with the addon and i am NOT gettin any errors at all
__________________

--------------------------------------------------------------------------
Report comment to moderator  
Reply With Quote
Unread 10-01-10, 10:12 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Re: i did

Originally posted by Grilor
I do that the lastest one installed from curse but i get no tooltips
when i click on the broker button nothing happens when i go in to the game menu and open the addons tab and click on the Star-tip link there i just get a blank window that says Star-Tip menu and thats it. so i am still having problems with the addon and i am NOT gettin any errors at all
Ok, updated cata and checked. You have to do three things. Check "Load out-of-date addons" first. Then you need to disable two lines: Range and Status. These two will cause errors. 1.11.55b on Curse prevents the error related to the Status line.
__________________
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-18-10, 09:52 AM  
Tr909Tom
A Kobold Labourer

Forum posts: 0
File comments: 34
Uploads: 0
What's wrong?

Hover over a player results into:
Date: 2010-10-18 17:50:42
ID: 373
Error occured in: Global
Count: 1
Message: ..\AddOns\StarTip_UnitTooltip\UnitTooltip.lua line 580:
attempt to index field 'evaluator' (a nil value)
Debug:
[C]: ?
StarTip_UnitTooltip\UnitTooltip.lua:580:
StarTip_UnitTooltip\UnitTooltip.lua:565
StarTip_UnitTooltip\UnitTooltip.lua:1148: SetUnit()
StarTip\StarTip.lua:655:
StarTip\StarTip.lua:633
[C]: ?
[C]: ?

Clicking on the option-button results in:
Date: 2010-10-18 18:11:40
ID: 376
Error occured in: Global
Count: 1
Message: ..\AddOns\StarTip_Texts\Texts.lua line 385:
bad argument #1 to 'pairs' (table expected, got nil)
Debug:
[C]: ?
[C]: pairs()
StarTip_Texts\Texts.lua:385: ClearTexts()
StarTip_Texts\Texts.lua:551: RebuildOpts()
StarTip\StarTip.lua:539: RebuildOpts()
StarTip\StarTip.lua:603: OpenConfig()
StarTip\StarTip.lua:29: OnClick()
Bazooka\Bazooka.lua:1257:
Bazooka\Bazooka.lua:1254
Last edited by Tr909Tom : 10-18-10 at 10:12 AM.
Report comment to moderator  
Reply With Quote
Unread 10-21-10, 05:57 PM  
nToxik
A Murloc Raider

Forum posts: 4
File comments: 31
Uploads: 0
1.3.25



5x StarTip_Portrait-1.0\Portrait.lua:103: Usage: SetPortraitTexture(texture, "unit")
StarTip_Portrait-1.0\Portrait.lua:103: in function `SetUnit'
StarTip-v1.3.25\StarTip.lua:659: in function <StarTip\StarTip.lua:633>
<in C code>: ?
<in C code>: in function `SetUnit'
PitBull4-v4.0.0-beta15\UnitFrame.lua:346: in function <PitBull4\UnitFrame.lua:341>

Locals:
self = <table> {
SetDefaultModuleLibraries = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:381:
SetItem = <function> @ StarTip_Portrait\Portrait.lua:123:
OnInitialize = <function> @ StarTip_Portrait\Portrait.lua:66:
NewModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:255:
EnableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:346:
modules = <table> {}
GetModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:230:
IterateEmbeds = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:456:
SetUnit = <function> @ StarTip_Portrait\Portrait.lua:100:
defaultModuleLibraries = <table> {}
toggled = true
text = GameTooltipTextLeft1 {}
SetDefaultModulePrototype = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:423:
GetOptions = <function> @ StarTip_Portrait\Portrait.lua:96:
name = "Portrait"
model = <unnamed> {}
IsEnabled = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:465:
DisableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:364:
IsModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:237:
db = <table> {}
SetDefaultModuleState = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:401:
texture = <unnamed> {}
OnDisable = <function> @ StarTip_Portrait\Portrait.lua:88:
enabledState = true
OnHide = <function> @ StarTip_Portrait\Portrait.lua:144:
SetSpell = <function> @ StarTip_Portrait\Portrait.lua:134:
baseName = "StarTip_Portrait"
Enable = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:313:
IterateModules = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:451:
GetName = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:298:
SetEnabledState = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:438:
OnEnable = <function> @ StarTip_Portrait\Portrait.lua:74:
moduleName = "Portrait"
defaultModuleState = true
Disable = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:328:
}
StarTip = <table> {
OnTooltipSetSpell = <function> @ StarTip\StarTip.lua:676:
RebuildOpts = <function> @ StarTip\StarTip.lua:536:
opposites = <table> {}
UNIT_RAID_GROUPS = <table> {}
EnableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:346:
modules = <table> {}
copy = <function> @ StarTip\StarTip.lua:311:
GameTooltipHide = <function> @ StarTip\StarTip.lua:694:
UnregisterComm = <function> @ Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:181:
MODIFIER_STATE_CHANGED = <function> @ StarTip\StarTip.lua:832:
Printf = <function> @ Ace3\AceConsole-3.0\AceConsole-3.0.lua:69:
SetDefaultModulePrototype = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:423:
rightLines = <table> {}
OnTooltipShow = <function> @ StarTip\StarTip.lua:778:
GetMouseoverUnit = <function> @ StarTip\StarTip.lua:822:
defaultModuleState = false
IsEnabled = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:465:
ScheduleTimer = <function> @ Ace3\AceTimer-3.0\AceTimer-3.0.lua:276:
DisableModule = <function> @ Ace3\AceAddon-3.0\AceAddon-3.0.lua:364:
GetLSMIndexByName = <function> @ StarTip\StarTip.lua:803:
RegisterMessage = <function> @ Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:118:
UnregisterMessage = <function> @ Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:181:
unit = false
IsHooked = <functi
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 09:48 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Originally posted by Tr909Tom
[b]What's wrong?

Hover over a player results into:
Date: 2010-10-18 17:50:42
ID: 373
Error occured in: Global
Count: 1
Message: ..\AddOns\StarTip_UnitTooltip\UnitTooltip.lua line 580:
attempt to index field 'evaluator' (a nil value)
Debug:
[C]: ?
StarTip_UnitTooltip\UnitTooltip.lua:580:
StarTip_UnitTooltip\UnitTooltip.lua:565
StarTip_UnitTooltip\UnitTooltip.lua:1148: SetUnit()
StarTip\StarTip.lua:655:
StarTip\StarTip.lua:633
[C]: ?
[C]: ?
I've no idea why this happens. A lot of people have reported it. That's the only error in the stack? Sometimes you get errors that domino, and it's all really due to the initial, first error.
__________________
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, 10:31 AM  
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member

Forum posts: 133
File comments: 75
Uploads: 0
I, last night, embarked upon the long journey wherein I tried to duplicate my CowTip configuration in StarTip. I was mostly successful, but I have a few points/questions:
  1. Are you going to be enabling the ability to use Outline() and ThickOutline() on a per-side basis? Obviously allowing it to be variously on and off within a line would be far more annoying, but you can do the outline thing, right? Also, the top line seems to have a default normal outline that you can't configure?

  2. Are you going to allow an in-game configuration of the texture used for the bars?

  3. The bar configuration is ... and I say this coming from a guy who does programming for a living ... very confusing and complicated. There are like three levels of heirarchy in the bar configuration for each bar with a ton of boxes with anchoring and offset options. It's very dense. I understand the will to make it so generic it can do anything; so, maybe some better tooltips to explain what all that crap is.

    I was also trying to change the health bar to always be green. I tried to just return {0, 255, 0} from the zone that seemed to be for the color and that didn't seem to work. Not sure how to do that.

    Ideally, in CowTip, I had the health bar on the left and the power bar on the right; as it is, now, though, I use ThreatPlates on all my characters so I think I'm okay just not putting the bars on my tooltips anymore.

  4. There seems to be this issue where, while the tooltip is fading out, it loses the unit it was associated with (obviously, as mouseover is no longer valid) so some of the values revert to unknown. I guess CowTip used to sort of cache the information while it knew a fade operation was in progress?

  5. I don't know if this is a bug with X-Perl or what; but, when I hover over my player frame, sometimes I see a tooltip with a black background and then if I wiggle the mouse around or hover over another portion of the player frame, it switches to the friendly green color.

  6. I have turned off the default target line as I have that incorporated into my first line, on the right side, but sometimes (it seems, mostly in battlegrounds) I'll see this "Targeting: <unitname>" at the very bottom of the tooltip with the word "Targeting" in the class color of the target. Do you know whether this is StarTip doing this? If not, I assume it's some mod I have appending it to the tooltip.

  7. One bug that CowTip (at least, I call it a bug) is where, let's say, the left side's code results in a return of " " (space, so that the right side still shows). So, left is ultimately empty and right has data. Or vice versa. Whatever. When that happens, the lines start jamming into each other. The line height seems to be screwed up. Is that because of that trim option? Do I need to turn that off if I know I might want one side of a line to be blank, sometimes?

Thanks for reading through all of this. I think that some GUI polish for the configuration on this would make it a really great replacement for people who are looking for something as customizable as CowTip used to be.

EDIT: Here are some screenshots of my old CowTip setup. The unit name has the ThickOutline, the guild has the Outline. I know the talent stuff isn't working, so that's not in my StarTip configuration.





Here's what I managed to get to with StarTip.





I've since adjusted the transparency of the background colors. Another thing I noticed now that I have the two side by side is that whatever's returning the power colors is returning very harsh versions of the power colors. Is there an easy way to customize those to the power colors I was seeing before with CowTip?

Also WRT the fading thing I mentioned before, it's the mana and power that change. Mana changes to Unknown and power, then, before the tooltip is gone complete, disappears.

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.
Last edited by pelf : 10-27-10 at 05:18 PM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 05:24 PM  
starlon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 39
Uploads: 3
Thanks for the great comments and questions, nazrhyn.

1) I'm not sure what you mean by outline. Font outline?
2) Sure. I must have overlooked that.
3) Thanks for the input. I'll be removing some stuff soon, and I'll likely polish things up. And I still need to go through the translation business in a lot of places as well -- like in all modules. The reason for the second expression and whatnot is you can have two bars per bar widget. The second will be placed above or below the first. The only benefit is you're using one timer vs two.
4) That's normal and I like the effect.
5) I just fixed that I believe. I'll be uploading another version later today.
6) Just turn off the Targeting module. It's mainly for raids, so I can see who is targeting my mouseover target.
7) Enter the following in the left line: return "|T:12|t" -- that adds a blank texture to the tooltip's fontstring. Replace 12 with your font size, or however large you want. You may want to provide a blank .tga/.blp or something. It doesn't seem to mind it being blank though.
__________________
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]
Last edited by starlon : 10-27-10 at 05:24 PM.
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
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: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: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-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-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, 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-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
Post A Reply



Category Jump: