Quantcast
Download
(1 Kb)
Download
Updated: 03-24-16 06:38 PM
Pictures
File Info
Compatibility:
Minor patch (6.2.4)
Updated:03-24-16 06:38 PM
Created:unknown
Downloads:24,098
Favorites:155
MD5:
6.2.4

Friend Color  Popular! (More than 5000 hits)

Version: 60204
by: Awbee [More]

Lightweight add-on that colors your friend list based on raid colors.

60204
- Updated for 6.2.4

60000
- Updated TOC for 6.0

50001
- Updated TOC for 5.0.4

40300
- Updated TOC for 4.3.0

40200v3
- Fixed a bug

40200v2
- Removed Class text

40200
- Updated TOC for 4.2.0

40100
- Updated TOC for 4.1.0

40000
- Updated for 4.0.1

30300v7
- Changed getglobal to _G

30300v6
- Fix for errors on login.

30300v5
- Update for RealID.

30300v4
- Simplified addon structure.

30300v3
- Fixed for other languages.

30300v2
- Attempt to fix for other languages.

30300
- TOC updated for 3.3
- Fixed taint issue.
Archived Files (2)
File Name
Version
Size
Author
Date
60000
1kB
Awbee
10-16-14 05:35 PM
50001
1kB
Awbee
08-31-12 10:49 AM


Post A Reply Comment Options
Unread 06-04-09, 10:37 AM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
it's doubtful, since im pretty sure GetGuildInfo("unit") requires the unit to be nearby.

id have to do something with /who, which has a cooldown, which would cause some problems.
Report comment to moderator  
Reply With Quote
Unread 10-24-09, 12:27 PM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 643
Uploads: 3
Re: Re: Guild Pane?

Originally posted by Awbee
just friends. doesn't the guild list already have colors?
Well the guild list lists the class in color on the right, but the name isn't colored. Which isn't really a problem, but I do find that my eyes are looking to the left for the colored names, as the names are in color on the left in your friends list. I think this would be a good feature to add, as long as it doesn't bloat the addon.
__________________
There is absolutely no evidence to support the theory that life is serious.
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 01:47 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Awbee
ok, the problem is RAID_CLASS_COLORS only takes English arguments, while GetFriendInfo(i) returns localized class names.
Blizz now provides a localized class name table. This is how I localized in LiteStats, for the most part:
Code:
local name, level, class, zone, connected, status, note = GetFriendInfo(i)
for k,v in pairs(LOCALIZED_CLASS_NAMES_MALE) do if class == v then class = k end end
if GetLocale() ~= "enUS" then
    for k,v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do if class == v then class = k end end
end
local classc = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
"classc" should then be populated with localized class colors.

I've yet to learn if other localizations use both male and female class names, so checking for female names is still there.
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 03:45 AM  
vlakarados
An Aku'mai Servant
 
vlakarados's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 145
Uploads: 6
I've yet to learn if other localizations use both male and female class names, so checking for female names is still there.
in russian - yes, there are some classes that have female and male class names.
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 05:52 AM  
Bumper2009
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Message: Interface\AddOns\FriendColor\FriendColor.lua:14: attempt to index field '?' (a nil value)
Time: 12/22/09 14:46:00
Count: 11
Stack: [C]: ?
Interface\AddOns\FriendColor\FriendColor.lua:14: in function <Interface\AddOns\FriendColor\FriendColor.lua:5>
[C]: in function `FriendsList_Update'
Interface\FrameXML\FriendsFrame.lua:824: in function `FriendsFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals:

Message: Interface\AddOns\FriendColor\FriendColor.lua:14: attempt to index field '?' (a nil value)
Time: 12/22/09 14:46:00
Count: 4
Stack: [C]: ?
Interface\AddOns\FriendColor\FriendColor.lua:14: in function <Interface\AddOns\FriendColor\FriendColor.lua:5>
[C]: in function `FriendsList_Update'
Interface\FrameXML\FriendsFrame.lua:123: in function <Interface\FrameXML\FriendsFrame.lua:120>
[C]: in function `Show'
Interface\FrameXML\UIParent.lua:1576: in function `SetUIPanel'
Interface\FrameXML\UIParent.lua:1421: in function `ShowUIPanel'
Interface\FrameXML\UIParent.lua:1308: in function <Interface\FrameXML\UIParent.lua:1304>
[C]: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1974: in function `ShowUIPanel'
Interface\FrameXML\FriendsFrame.lua:949: in function `ToggleFriendsFrame'
[string "TOGGLESOCIAL"]:1: in function <[string "TOGGLESOCIAL"]:1>

Locals:
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 10:01 AM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
Originally posted by Katae
Blizz now provides a localized class name table. This is how I localized in LiteStats, for the most part:
Code:
local name, level, class, zone, connected, status, note = GetFriendInfo(i)
for k,v in pairs(LOCALIZED_CLASS_NAMES_MALE) do if class == v then class = k end end
if GetLocale() ~= "enUS" then
    for k,v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do if class == v then class = k end end
end
local classc = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
"classc" should then be populated with localized class colors.

I've yet to learn if other localizations use both male and female class names, so checking for female names is still there.
so I should copy/paste that into my addon?

then change:
RAID_CLASS_COLORS[string.upper(class)].r
to:
RAID_CLASS_COLORS[string.upper(classc)].r
etc?
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 10:02 AM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
@Bumper2009 - are you on enUS client or something else?
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 10:24 AM  
habik
A Kobold Labourer

Forum posts: 0
File comments: 64
Uploads: 0
If you want to loan some code for the guildframe (I would also like this feature) have a look at this addon:
http://wow.curse.com/downloads/wow-a...-who-list.aspx
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 02:24 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
Originally posted by Awbee
so I should copy/paste that into my addon?

then change:
RAID_CLASS_COLORS[string.upper(class)].r
to:
RAID_CLASS_COLORS[string.upper(classc)].r
etc?
seems to work so I uploaded it. let me know.
Report comment to moderator  
Reply With Quote
Unread 12-23-09, 12:31 AM  
Katae
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 208
File comments: 260
Uploads: 6
Originally posted by Awbee
so I should copy/paste that into my addon?

then change:
RAID_CLASS_COLORS[string.upper(class)].r
to:
RAID_CLASS_COLORS[string.upper(classc)].r
etc?
The color values would be classc.r classc.g and classc.b with what I posted.
Report comment to moderator  
Reply With Quote
Unread 12-23-09, 12:25 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
interestingly enough I somehow forgot to do the changes I thot I had to do. which is good cause it would have just broken the mod.

new version is up, I think it's right this time.
Report comment to moderator  
Reply With Quote
Unread 12-25-09, 07:07 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
hopefully the lack of replies means it's working ok now for everyone, although maybe everyone is just busy with the holidays.

anyway, thank you for the help Katae.
Report comment to moderator  
Reply With Quote
Unread 04-07-10, 12:43 PM  
Blassphamy
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I'm famous! I see my shamans name on that friends list!


but wtf am I doing in ghostlands...
Last edited by Blassphamy : 04-07-10 at 12:43 PM.
Report comment to moderator  
Reply With Quote
Unread 04-23-10, 08:44 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 112
Uploads: 8
lol, hi

ZA prolly.
Report comment to moderator  
Reply With Quote
Unread 06-23-10, 09:05 AM  
NiQil
A Deviate Faerie Dragon

Forum posts: 13
File comments: 57
Uploads: 0
This addon no longer appears to work with patch 3.3.5. Any chance for an update?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: