コード例 #1
0
 public void AquireMissingItems()
 {
     Cache.MissingDir =
         SteamUtilities.GetMissingItems()
         .Select(id => id.AsUInt64)
         .ToArray();
 }
コード例 #2
0
 public static void UpdateDownloadStatusSprite(PackageEntry packageEntry)
 {
     try {
         Assertion.NotNull(packageEntry, "packageEntry");
         var ugc = m_WorkshopDetails(packageEntry);
         if (!packageEntry.publishedFileId.IsValid() || !ugc.publishedFileId.IsValid())
         {
             //Log.Debug("[p0] entry name=" + packageEntry.entryName);
             RemoveDownloadStatusSprite(packageEntry);
         }
         else
         {
             var status = SteamUtilities.IsUGCUpToDate(ugc, out string reason);
             if (status == DownloadOK)
             {
                 //Log.Debug("[p1] entry name=" + packageEntry.entryName);
                 RemoveDownloadStatusSprite(packageEntry);
             }
             else
             {
                 //Log.Debug("[p2] entry name=" + packageEntry.entryName);
                 GetorCreateStatusPanel(packageEntry).StatusButton.SetStatus(status, reason);
             }
         }
         //Log.Succeeded();
     } catch (Exception ex) { ex.Log(); }
 }
コード例 #3
0
 static void OnPerformAllClicked()
 {
     Log.Debug("Perform all pressed");
     CheckSubsUtil.EnsureAll();
     SteamUtilities.DeleteUnsubbed();
 }