PDA

View Full Version : Better (Smaller) Friends List


Rooney
10-19-2004, 01:49 AM
I feel like this is so obvious that it must already be there and I'm just missing it.

Is there any way to have a simple friends list on screen. I know you can bring up the big 'Social', but I just want something small that I can leave up all the time, and I haven't found a way to do that in the default GUI or in Cosmos. I wouldn't really want anything fancy, although it would be nice if on mouse-over it listed level, class, and location.

Let me know if this is possible or if it already exists and I've missed it. I wouldn't mind trying to work on this myself, but I don't want to duplicate effort if something like this exists already.

sarf
10-19-2004, 04:36 PM
As far as I know, this does not exist.

Go forth and build it! :)

Please post it in the Custom AddOns section when it's done!

Sarf
---
Whales are mammals. Mammals have hair. SHAVE THE WHALES!

Rooney
12-16-2004, 04:35 AM
Ok, I finally managed to code this. The interface is nothing special, I basically stole the Rouge Helper code and lengthened it. I still want to work on the interface, before I release it, but right now I'm still having a little trouble with the functional code.

I tried to make it show friends AND guild mates who are online and I am having a bit of trouble. The friends part is working, the guild part isn't always.

If I call GetNumGuildMembers(); before I open the GuildRoster window manually, I always get '0'. After I open it manually, I get the correct number and everything works fine.

I have dug into FriendFrame xml and lua to try to figure out what I am missing, but I just don't see it.

Unless this is just a problem with my system, you can duplicate what I'm seeing by doing the following.

Assuming you are in a guild
Log in and first thing after logging in...
/script Sea.IO.print(GetNumGuildMembers());
You should see 0
/guildroster
/script Sea.IO.print(GetNumGuildMembers());
You should see the correct number of guild members.

GuildInfo() will display the correct number to the screen, but I don't see a way to use it.

Am I missing something obvious? Is there a better to get this info.

sarf
12-16-2004, 08:20 AM
See what the guild window does.

if it does nothing (aka Blizzard magic), you need to open it and close it very quickly.

Sarf
---
EMANCIPATION, n. A bondman's change from the tyranny of another to the despotism of himself.

Rooney
12-16-2004, 04:03 PM
First, sarf, thanks for the response. Were you able to confirm what I am seeing with GetNumGuildMembers?

I wonder how fast you can open a frame and then hide it? I'll have to try that.

I'll clean up the code tonight and make it available if any one wants to look at it.

Another idea I had was to write a small function to add everyone in your guild to your friends list . The friends part of the code works fine, and my guild is pretty small and stable, so that idea might work for me, but it is not optimal.

sarf
12-16-2004, 05:39 PM
Immediately OnShow it does this:
GuildRoster();

Might try that.

Sarf
---
"Since others have to tolerate my weaknesses, it is only fair that I should tolerate theirs." - William Allen White

Rooney
12-16-2004, 05:48 PM
Yeah, GuildRoster(); just brings up the FriendsFrasme with the Guild tab selected, just like running the /guildroster command. But if I could hide it again fast enough that might work.

Have to work on that tonight.

Rooney
12-17-2004, 02:45 PM
Thanks sarf. So far this open/close idea is working. The frame doesn't show up on the screen, and my code updates properly.

One minor point. It seems that there are certain frames that close automatically whenever you open the FriendsFrame, no matter how quickly you close it again. I'm going to need to check if any of these frames are already open before I run my code. I'm not sure if there is a way to tell which frames are affected, or if I need to code them manually as I find them. Right now I know the bank, auction house, mail, and character info panes are all affected.

But that sounds realatively minor, I'm sure I can get it working now.

Thanks again for the help sarf.

sarf
12-17-2004, 04:19 PM
Prolly have to do it manually... but I think it is the HideUIPanel that trips ya up.

Sarf
---
Darwin's Law of Carcinogens: Cancer cures smoking.