mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-23 00:14:24 +00:00
ASS needed a new overlay type to be able to open
This commit is contained in:
@@ -267,7 +267,9 @@ enum class ESteamUserOverlayType : uint8
|
|||||||
/*Opens the overlay in minimal mode prompting the user to accept an incoming friend invite.*/
|
/*Opens the overlay in minimal mode prompting the user to accept an incoming friend invite.*/
|
||||||
friendrequestaccept,
|
friendrequestaccept,
|
||||||
/*Opens the overlay in minimal mode prompting the user to ignore an incoming friend invite.*/
|
/*Opens the overlay in minimal mode prompting the user to ignore an incoming friend invite.*/
|
||||||
friendrequestignore
|
friendrequestignore,
|
||||||
|
/*Opens the invite overlay, invitations sent from this dialog will be for the provided lobby*/
|
||||||
|
invitetolobby
|
||||||
};
|
};
|
||||||
|
|
||||||
static FString EnumToString(const FString& enumName, uint8 value)
|
static FString EnumToString(const FString& enumName, uint8 value)
|
||||||
|
@@ -245,8 +245,15 @@ bool UAdvancedSteamFriendsLibrary::OpenSteamUserOverlay(const FBPUniqueNetId Uni
|
|||||||
if (SteamAPI_Init())
|
if (SteamAPI_Init())
|
||||||
{
|
{
|
||||||
uint64 id = *((uint64*)UniqueNetId.UniqueNetId->GetBytes());
|
uint64 id = *((uint64*)UniqueNetId.UniqueNetId->GetBytes());
|
||||||
|
if (DialogType == ESteamUserOverlayType::invitetolobby)
|
||||||
|
{
|
||||||
|
SteamFriends()->ActivateGameOverlayInviteDialog(id);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
FString DialogName = EnumToString("ESteamUserOverlayType", (uint8)DialogType);
|
FString DialogName = EnumToString("ESteamUserOverlayType", (uint8)DialogType);
|
||||||
SteamFriends()->ActivateGameOverlayToUser(TCHAR_TO_ANSI(*DialogName), id);
|
SteamFriends()->ActivateGameOverlayToUser(TCHAR_TO_ANSI(*DialogName), id);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user