Facepunch / sbox-issues

176 stars 12 forks source link

Make `SteamFriends` accessible outside of the Menu addon #5588

Open CarsonKompon opened 4 months ago

CarsonKompon commented 4 months ago

For?

S&Box

What can't you do?

I want to create my own Social Bar UI that is similar (but still my own) to the SocialBar in the Menu addon. When copying all the necessary files into my own project, I am met with errors that SteamFriends is inaccessible so I can implement nearly all functionality minus seeing your own steam friends

How would you like it to work?

Just want to be able to access the SteamFriends class so you can easily access the player's friends list so I can create something like the following:

What have you tried?

I tried using the class but it's inaccessible.

Additional context

No response

xezno commented 4 months ago

I don't see an issue with this, but I am going to make it so that if your friends list isn't set to "public" we will return an empty list, mainly for privacy reasons. image

badandbest commented 4 months ago

Could we get something like Connection.IsFriend too? We had that in the entity system.