Exemple #1
0
    private void OnStoreCB(GameObject obj)
    {
        AgeControlButton            component = obj.GetComponent <AgeControlButton>();
        StaticString                name      = component.OnActivateData;
        IDownloadableContentService service   = Services.GetService <IDownloadableContentService>();
        DownloadableContent         downloadableContent;

        if (service != null && service.TryGetValue(name, out downloadableContent) && downloadableContent.SteamAppId != 0u && downloadableContent.SteamAppId != 4294967295u)
        {
            Steamworks.SteamFriends steamFriends = Steamworks.SteamAPI.SteamFriends;
            if (steamFriends != null)
            {
                steamFriends.ActivateGameOverlayToStore(downloadableContent.SteamAppId, Steamworks.EOverlayToStoreFlag.k_EOverlayToStoreFlag_None);
            }
        }
    }
Exemple #2
0
 public async Task <Data.Image?> GetMediumAvatarAsync()
 {
     return(await SteamFriends.GetMediumAvatarAsync(Id));
 }