Download
(1 Kb)
Download
Updated: 08-31-12 10:49 AM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:08-31-12 10:49 AM
Created:unknown
Downloads:22,973
Favorites:154
MD5:
Friend Color  Popular! (More than 5000 hits)
Version: 50001
by: Awbee [More]
Lightweight add-on that colors your friend list based on raid colors.
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 (1)
File Name
Version
Size
Author
Date
40300
1kB
Awbee
12-04-11 03:42 PM


Post A Reply Comment Options
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: 110
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.
Awbee is offline 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
habik is offline 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: 110
Uploads: 8
@Bumper2009 - are you on enUS client or something else?
Awbee is offline 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: 110
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?
Awbee is offline 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:
Bumper2009 is offline 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: 34
File comments: 137
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.
vlakarados is offline 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.
Katae is offline 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: 640
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.
xtoq is offline Report comment to moderator  
Reply With Quote
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: 110
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.
Awbee is offline Report comment to moderator  
Reply With Quote
Unread 05-21-09, 08:32 AM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 154
Uploads: 9
Awesome mod, simple and effective.

Only one request I would ask. Anyway you can put their Guild Name under or beside the friend's name?

I used to have an addon that did this a few patches ago, did the Guild name in green beside the name and the players name as you now have them.

Thanks for the addon, I hope there's a way you can do this, and I hope there's a way to include a /who on each of the friends to update their current guilds etc.

Thanks for reading.

The add on that used to do what I'm after:
http://www.wow.com/tag/auld-lang-syne/
Last edited by Maziel : 05-21-09 at 08:35 AM.
Maziel is offline Report comment to moderator  
Reply With Quote
Unread 04-18-09, 07:17 PM  
Shestak
A Deviate Faerie Dragon
 
Shestak's Avatar
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 68
Uploads: 5
Originally posted by Awbee
ok, the problem is RAID_CLASS_COLORS only takes English arguments, while GetFriendInfo(i) returns localized class names.

I've asked blizzard on the UI forums to make GetFriendInfo(i) to return another value, englishClass
Thanks
Shestak is offline Report comment to moderator  
Reply With Quote
Unread 04-17-09, 06:51 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 110
Uploads: 8
ok, the problem is RAID_CLASS_COLORS only takes English arguments, while GetFriendInfo(i) returns localized class names.

I've asked blizzard on the UI forums to make GetFriendInfo(i) to return another value, englishClass
Awbee is offline Report comment to moderator  
Reply With Quote
Unread 04-17-09, 01:51 PM  
Shestak
A Deviate Faerie Dragon
 
Shestak's Avatar
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 68
Uploads: 5
I have established last version with corrections under different languages.
But such sensation that is the same version. And compare a code from previous I cannot because of absence on a site of last versions.
The same error:
Code:
Interface\AddOns\FriendColor\FriendColor.lua:16: attempt to index field '?' (a nil value)
Count: 1

Call Stack:
[C]: ?
Interface\AddOns\FriendColor\FriendColor.lua:16: in function `FriendsList_Update'
Interface\FrameXML\FriendsFrame.lua:824: in function `FriendsFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
P.S.: Thanks for possible corrections.
Shestak is offline Report comment to moderator  
Reply With Quote
Unread 04-17-09, 01:30 PM  
Awbee
A Kobold Labourer
 
Awbee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 110
Uploads: 8
The problem is GetFriendInfo(i); returns the value "class" as you see it on the friend window, but RAID_CLASS_COLORS[class] takes arguments that are a little different for some classes.

I'm going to try another method for fixing this, and hope it works for all locals.
Awbee is offline Report comment to moderator  
Reply With Quote
Unread 04-17-09, 10:44 AM  
Shestak
A Deviate Faerie Dragon
 
Shestak's Avatar
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 68
Uploads: 5
Code:
Interface\AddOns\FriendColor\FriendColor.lua:18: attempt to index field '?' (a nil value)
Count: 1

Call Stack:
[C]: ?
Interface\AddOns\FriendColor\FriendColor.lua:18: in function `FriendsList_Update'
Interface\FrameXML\FriendsFrame.lua:824: in function `FriendsFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
ruRU Locale
Shestak is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: