Download
(2Kb)
Download
Updated: 01-14-12 04:04 PM
Pictures
File Info
Updated:01-14-12 04:04 PM
Created:unknown
Downloads:9,392
Favorites:106
MD5:

Chippu  Popular! (More than 5000 hits)

Version: 1.4
by: haste [More]

Chippu is a tiny add-on that will color the tooltip border to fit the quality of the item it shows.

Changes from 1.3
- TOC bumped to 4.3
- Added the third compare tooltip.

Changes from 1.2
- TOC bumped to 3.0.

Changes from 1.1
- No longer errors on item links due to the preload changes in 2.4.
- TOC bumped to 2.4.

Changes from 1.0
- Should behave better performance wise.
Optional Files (0)


Post A Reply Comment Options
Unread 11-11-23, 04:06 AM  
ByngerX
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Update?

Any chance at this being updated for Dragonflight 10.2?
Report comment to moderator  
Reply With Quote
Unread 11-04-21, 08:19 AM  
zkpjy
A Kobold Labourer
 
zkpjy's Avatar

Forum posts: 0
File comments: 18
Uploads: 0
10.0:

local GetItemInfo = GetItemInfo
local GetItemQualityColor = GetItemQualityColor
local On = function(self, event, ...)
local name, item = self:GetItem()
if not item then
self.NineSlice:SetBorderColor(1, 1, 1) --不是物品时,边框白色
else
local _, _, quality = GetItemInfo(item)
if quality then
local r, g, b = GetItemQualityColor(quality)
self.NineSlice:SetBorderColor(r, g, b) --边框色
--self.NineSlice:SetCenterColor(0, 0, 0, 1) --背景色
end
end
end

for _, obj in next, {
GameTooltip,
--ShoppingTooltip1,
--ShoppingTooltip2,
--ShoppingTooltip3,
ItemRefTooltip,
} do
Mixin(obj, TooltipBackdropTemplateMixin)
obj:HookScript("OnUpdate", On)
end
Last edited by zkpjy : 03-29-23 at 01:27 AM.
Report comment to moderator  
Reply With Quote
Unread 03-11-09, 12:43 PM  
aorcsik
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Tooltip background

Hi,

I made a little modification to color the tooltip background like the border.

I modified the line where you set the backdrop color to black:
Code:
self:SetBackdropColor(0, 0, 0, 1)
To this:
Code:
r = 0.08 * r
g = 0.08 * g
b = 0.08 * b
self:SetBackdropColor(r, g, b, 0.85)
The only problem with it is that it shows full white tooltip bg when you mouse over some item or profession spell in the profession panel. Maybe you could add some workaround, I was just playing with lua a bit back then.
Last edited by aorcsik : 03-11-09 at 12:43 PM.
Report comment to moderator  
Reply With Quote
Unread 05-02-08, 08:33 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Re: Re: Slight issue

Originally posted by haste
Tip Tac creates it's own tooltip, and just hides the default one. So this is not an issue with Chippu. Ask the author of Tip Tac for the border coloring instead.
TipTac has this feature too now.
Report comment to moderator  
Reply With Quote
Unread 12-25-07, 04:59 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Re: Slight issue

Originally posted by Vytae
When using Tip Tac the colors don't show up except for in the itemlinks.
Tip Tac creates it's own tooltip, and just hides the default one. So this is not an issue with Chippu. Ask the author of Tip Tac for the border coloring instead.
Report comment to moderator  
Reply With Quote
Unread 12-24-07, 11:03 AM  
Vytae
A Murloc Raider

Forum posts: 6
File comments: 62
Uploads: 0
Slight issue

When using Tip Tac the colors don't show up except for in the itemlinks.
Report comment to moderator  
Reply With Quote
Unread 07-27-07, 02:15 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
The error only appeared with itemlinks in trade channel and it was a "Usage: GetItemQualityColor('index')" type message.
Sorry I don't have the stack trace...

On the bright side I cannot reproduce it with 1.1 so... sorry for the false alarm
(should have checked I'm updated to latest version).

All is well with Chippu 1.1 and wow 2.2.0
Report comment to moderator  
Reply With Quote
Unread 07-27-07, 07:14 AM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Re: 2.2.0 PTR issue (only)

It would be nice if you could provide me with the exact error, and possibly the stack trace of it. The 2.2 PTR currently doesn't start under Wine, so there's not much I can do without it.

edit: Friend of mine told me that 1.1 of Chippu is working fine on the 2.2 PTR. I also noticed that you said the error was on line 47, could you try updating to 1.1 and see if it fixes your issue?
Last edited by haste : 07-27-07 at 07:40 AM.
Report comment to moderator  
Reply With Quote
Unread 07-27-07, 06:13 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
2.2.0 PTR issue (only)

Possibly because of some change to the GetItemInfo code by Blizzard,
Chippu gives an error on tips.lua:47 local r, g, b = GetItemQualityColor(quality)
on the 2.2.0 PTR only (not a live issue)

I'm guessing there has been a change to GetItemInfo to support this:
* You will be able to use item:N, where N is the ID of the item, instead of the item name in macros. One of the advantages of this is that it will work even if you don't currently have the item, as long as it is in your item cache (e.g. GetItemInfo("item:N") returns non-nil)
functionality in macros and that's what's causing Chippu issues.

Just a heads up.

Great little addon btw
Report comment to moderator  
Reply With Quote
Unread 07-11-07, 06:33 PM  
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view AddOns

Forum posts: 45
File comments: 267
Uploads: 23
This addon has my attention.

Too bad I'm a sucker of eyecandy, and I know why haste has his panties up in the crotch about Skinner.

Most don't know that it was actually haste that started skinner way back. It was named oSkin and it was extremely easy. Suddenly it started to grow like a horse on steroids and it tried to skin everything. Then it grew to the abomination it is now and got in to the point where enough was enough for haste.

If he doesn't like the addon and can't support it, don't make him feel bad about it, it's not his fault.
Report comment to moderator  
Reply With Quote
Unread 07-10-07, 10:25 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Originally posted by psyco69
Kinda harsh comments there Haste about skinner, since it does what it does and does it well. The author of which had no idea that a mod like yours was around, but thanks to Phanx the auther of skinner, Jncl, has made skinner work with Chippu. File can be found on files.wowace.com
Most parts of skinner is beyond horrible when it comes to how it's coded, and what it does. I still regret writing the initial code and letting it morph into what it is today.
Last edited by haste : 07-10-07 at 10:26 PM.
Report comment to moderator  
Reply With Quote
Unread 07-10-07, 03:33 PM  
psyco69
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Kinda harsh comments there Haste about skinner, since it does what it does and does it well. The author of which had no idea that a mod like yours was around, but thanks to Phanx the auther of skinner, Jncl, has made skinner work with Chippu. File can be found on files.wowace.com
Report comment to moderator  
Reply With Quote
Unread 07-03-07, 08:19 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Originally posted by Dulcea
I *think* (and mind you, I know nothing about coding) that something in the regular game tooltip for skinner is blocking the colored edge? I'm honestly not sure how, since it will give me the colored border in the auction house. (Using skinner) When i turned off the skinning for tooltips in skinner, it would work for everything, but it turned into what is your screen shot (a 'flat' tooltip, versus the pseudo 3D that skinner gives you.)
I looked into the beasts code and came out with the following solution: Torture the author of the abomination to add a option to prevent it from spreading it's disease to the tooltip (or at least the border / both). It's the only viable solution. I could have Chippu completely tear the insides of it apart and re-attach them to prevent it from modifying the tooltip, but I see no reason to add more code to Chippu the necessary.
Last edited by haste : 07-03-07 at 08:24 PM.
Report comment to moderator  
Reply With Quote
Unread 07-03-07, 07:09 PM  
Dulcea
A Murloc Raider

Forum posts: 4
File comments: 17
Uploads: 0
I *think* (and mind you, I know nothing about coding) that something in the regular game tooltip for skinner is blocking the colored edge? I'm honestly not sure how, since it will give me the colored border in the auction house. (Using skinner) When i turned off the skinning for tooltips in skinner, it would work for everything, but it turned into what is your screen shot (a 'flat' tooltip, versus the pseudo 3D that skinner gives you.)
Report comment to moderator  
Reply With Quote
Unread 07-03-07, 04:23 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Originally posted by Dulcea
While I agree that not every mod should be ace'd, I would like it if this would work with skinner (I'm an sucker for pretties, and I love how skinner skins the tooltips.) is there any way to get this to work *with* skinner? Without disabling the pretty gradient?

Thanks. ^_^
How does it not work with Skinner?
(I currently don't have any net connection, which pretty much render me unable to test myself)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.