steam avatar support

This commit is contained in:
mordentral
2016-01-14 13:20:40 -05:00
parent 6242b064e3
commit f91d4ec4ea
4 changed files with 108 additions and 5 deletions

View File

@@ -20,6 +20,14 @@
//General Advanced Sessions Log
DECLARE_LOG_CATEGORY_EXTERN(AdvancedFriendsLog, Log, All);
UENUM(Blueprintable)
enum SteamAvatarSize
{
SteamAvatar_Small = 1,
SteamAvatar_Medium = 2,
SteamAvatar_Large = 3
};
UCLASS()
class UAdvancedFriendsLibrary : public UBlueprintFunctionLibrary
@@ -53,4 +61,8 @@ public:
UFUNCTION(BlueprintPure, Category = "Online|AdvancedFriends|FriendsList")
static void IsAFriend(APlayerController *PlayerController, const FBPUniqueNetId UniqueNetId, bool &IsFriend);
// Get a texture of a valid friends avatar, STEAM ONLY
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedFriends|SteamAPI")
static UTexture2D * GetSteamFriendAvatar(APlayerController *PlayerController, const FBPUniqueNetId UniqueNetId, SteamAvatarSize AvatarSize = SteamAvatarSize::SteamAvatar_Medium);
};