Download
(2Kb)
Download
Updated: 09-07-12 05:57 PM
Pictures
File Info
Updated:09-07-12 05:57 PM
Created:10-27-10 05:48 AM
Downloads:4,366
Favorites:46
MD5:

Blizzard GuildUI Status

Version: 1.7.1
by: Vladinator [More]

Adds the Away/Busy flags to characters in the guild roster. Helps figure out if someone is away or busy before even trying to talk to them!

As a bonus feature you can edit the core.lua file in a text editor and look at the top, you can then force showing the online/offline icons to make the list consistent.

1.7.1:
+ Trying to improve roster updating to show the correct value on the correct column.

1.7:
+ Added compatibility for GuildRosterButtons.

1.6:
+ Updated for MOP, mostly TOC bump.

1.5:
+ Thanks p3lim for pointing out the obvious easier solution. /thumbsup

1.4b:
+ Fixed an error occurring in 4.3.2 because of a change in one of the returned values by the guild roster API.

1.4:
+ Improved performance even further by not creating new variable space in the memory but reusing the old one, cheers.
+ Most likely fixed error reported by Adorawulf, we will find out sooner or later.

1.3:
- Fixed double-space between icon and name.
- Added the option to show icons for online and offline players as well, simply edit core.lua and remove the "--" from the 2nd line in that file. This is the most performance friendly way of doing this, besides the original function of this addon is to provide Away/Busy information in the guild roster so this is a bonus feature.

1.2:
- Made it so it uses text if you have color blind turned on, otherwise it like in 1.1 uses an icon.

1.1:
- Made it show a away/busy icon (from the friend list) in front of the name instead of appending. Also this way it saves space.

1.0:
- Initial release.
Optional Files (0)


Post A Reply Comment Options
Unread 10-27-10, 06:45 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
Instead of appending the status at the end of their name you could possibly add a small column (sortable preferably, but not necessary if that's too much work) to the very right just wide enough to fit in the friend status icons.
Code:
FRIENDS_TEXTURE_ONLINE = "Interface\\FriendsFrame\\StatusIcon-Online"
FRIENDS_TEXTURE_AFK = "Interface\\FriendsFrame\\StatusIcon-Away"
FRIENDS_TEXTURE_DND = "Interface\\FriendsFrame\\StatusIcon-DnD"
FRIENDS_TEXTURE_OFFLINE = "Interface\\FriendsFrame\\StatusIcon-Offline"
It's just a thought. I think that would look much more elegant, but it's up to you to use it or not.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 07:04 AM  
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 64
Uploads: 1
Alternatively you could tint the character's background row orange or red based on being afk or busy. Just some ideas for ya.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 10:35 AM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Icons would be cool.

Could remove that Class column (we can see the class based on the colour of the user name) and replace with online away busy offline icons. =D
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 10:38 AM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Originally posted by Dainton
Alternatively you could tint the character's background row orange or red based on being afk or busy. Just some ideas for ya.
True, that'd work too.

Fading the character text for dnd, italic text for away are additional ideas.

ALSO, regarding this:

"I know I need to somehow make it so people with long names and that got a flag, that you can see it. So far long names kind of remove the flag since it's appended at the back of their name.."

Just put the flag in front of the name:
<AWAY> Maziel
<BUSY> Maziel
Maziel

No flag for online of course.
Last edited by Maziel : 10-27-10 at 10:41 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 11:39 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
I followed Dainton's suggestion. Adds icons on the left side, if you have "" checked then you will see a "<A>" or "<B>" tag in front. Doubt I have to explain what those mean. :P
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 11:43 AM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Originally posted by Vladinator
I followed Dainton's suggestion. Adds icons on the left side, if you have "" checked then you will see a "<A>" or "<B>" tag in front. Doubt I have to explain what those mean. :P
Icons will definitely be awesome.

Still waiting on the file to be approved for download.

If we have what checked?

Thanks again for making this addon. I would normally be shocked that blizzard removed this from their gui, but after seeing what they did with the character frame, nothing shocks me now.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 11:53 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
It uses icons unless you turn on Interface -> Display -> "Colorblind Mode". If that is off then you see icons. I wanted to do it like this since the icons are red and orange and they are small, thus if you are colorblind I think you would prefer the text version. Also colorblind varies from person to person so this is playing it safe.

1.2 should be up soon I hope.
Last edited by Vlad : 10-27-10 at 11:57 AM.
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 11:56 AM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Originally posted by Vladinator
It uses icons unless you turn on Interface -> Display -> "Colorblind Mode". If that is off then you see icons. I wanted to do it like this since the icons are red and orange and they are small, thus if you are colorblind I think you would prefer the text version. Also colorblind varies from person to person so this is playing it safe.
Ah indeed, perfect. You have thought of everything.

Good job, well done!
Report comment to moderator  
Reply With Quote
Unread 10-27-10, 07:35 PM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Any change to add the Online and Offline icons so all the guild names line up?
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 09:25 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
Originally posted by Maziel
Any change to add the Online and Offline icons so all the guild names line up?
There are two sides to this, one the afk/dnd flags rarely show up and it's nice to save space by hiding them when they are not needed. On the other side having the icons for all members makes the list look consistent yet some may find it unnecessary and waste of space.

Just for you in 1.3 I added the option of turning this on and off, just edit core.lua in your favorite text editor and remove the "--" from the 2nd line in the file. That way it will show the online/offline icons as well.
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 03:55 PM  
Maziel
A Deviate Faerie Dragon
 
Maziel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 152
Uploads: 7
Originally posted by Vladinator
There are two sides to this, one the afk/dnd flags rarely show up and it's nice to save space by hiding them when they are not needed. On the other side having the icons for all members makes the list look consistent yet some may find it unnecessary and waste of space.

Just for you in 1.3 I added the option of turning this on and off, just edit core.lua in your favorite text editor and remove the "--" from the 2nd line in the file. That way it will show the online/offline icons as well.
You rock!

Thank you. /bow
Report comment to moderator  
Reply With Quote
Unread 10-28-10, 04:52 PM  
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view AddOns

Forum posts: 318
File comments: 75
Uploads: 9
Very nice! However, it's not updating the different fields correctly if you switch between views (when going from Guild Status to Player Status you for example get the players Name in the Lvl-field). I suppose the hooking of GuildRosterViewDropdown_OnClick doesn't provide the new value of the CVar in time for when the update goes off.

You can however add another hook, GuildRoster_SetView (which basically is what the dropdown _OnClick calls after it calls the update), and in your hook set the CVar, then it looks like will work properly.

lua Code:
  1. local function mySetView(self, ...)
  2.     SetCVar("guildRosterView", self.value)
  3. end
  4.  
  5. hooksecurefunc("GuildRoster_SetView", mySetView)

You still need the other hooks though.
__________________
Oh, the simulated horror!
Report comment to moderator  
Reply With Quote
Unread 10-29-10, 04:47 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
Hmm, actually Ailae I believe that's a Blizzard issue. I don't know but changing between without the addon also bugs out and sometimes I gotta close and open the roster just to properly update it. I think it's because they set the CVar after calling the update function (i.e. it updates the wrong columns).

I mean I could fix it for Blizzard but as I do not have Cataclysm access in the near future (once beta ends) I can't fix it back lol. :P It's nice you at least put the hotfix here, those that want can put that in the end of the code to correct the problem.
Report comment to moderator  
Reply With Quote
Unread 01-31-12, 06:31 PM  
Adorawulf
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Would it be possible to get an update to this addon, since 4.3.2 I get an error the first time I open up my guild roster pane.

Date: 2012-01-31 14:28:38
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Blizz_GuildUI_Status\core.lua line 28:
attempt to index local 'status' (a number value)
Debug:
[C]: ?
Blizz_GuildUI_Status\core.lua:28:
Blizz_GuildUI_Status\core.lua:11
[C]: GuildRoster_Update()
...ace\AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.lua:82:
...ace\AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.lua:80
[C]: Show()
...terface\AddOns\Blizzard_GuildUI\Blizzard_GuildUI.lua:286: GuildFrame_ShowPanel()
...terface\AddOns\Blizzard_GuildUI\Blizzard_GuildUI.lua:340: GuildFrame_TabClicked()
[string "*:OnClick"]:1:
[string "*:OnClick"]:1
Report comment to moderator  
Reply With Quote
Unread 02-01-12, 09:17 AM  
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view AddOns

Forum posts: 793
File comments: 337
Uploads: 31
Originally Posted by Adorawulf
Would it be possible to get an update to this addon, since 4.3.2 I get an error the first time I open up my guild roster pane.

Date: 2012-01-31 14:28:38
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Blizz_GuildUI_Status\core.lua line 28:
attempt to index local 'status' (a number value)
Debug:
[C]: ?
Blizz_GuildUI_Status\core.lua:28:
Blizz_GuildUI_Status\core.lua:11
[C]: GuildRoster_Update()
...ace\AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.lua:82:
...ace\AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.lua:80
[C]: Show()
...terface\AddOns\Blizzard_GuildUI\Blizzard_GuildUI.lua:286: GuildFrame_ShowPanel()
...terface\AddOns\Blizzard_GuildUI\Blizzard_GuildUI.lua:340: GuildFrame_TabClicked()
[string "*:OnClick"]:1:
[string "*:OnClick"]:1
Thanks for the report! I have uploaded a updated addon and hopefully even improved it a bit, try it and tell me if it now works. *client patching for ages*
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.