// Token: 0x0600140D RID: 5133 RVA: 0x000803B4 File Offset: 0x0007E7B4
        protected virtual void handlePublishedFileButtonClicked(Sleek2ImageButton button)
        {
            SteamPublished file = (button as UGCUploadPublishedFileButton).file;

            Provider.provider.workshopService.prepareUGC(this.itemName, this.itemDesc, this.contentPath.absolutePath, this.previewImagePath.absolutePath, this.changeNote, this.itemType, this.itemTag, this.visibility);
            Provider.provider.workshopService.prepareUGC(file.id);
            Provider.provider.workshopService.updateUGC();
        }
 // Token: 0x0600140E RID: 5134 RVA: 0x0008043C File Offset: 0x0007E83C
 protected virtual void onPublishedAdded()
 {
     for (int i = 0; i < Provider.provider.workshopService.published.Count; i++)
     {
         SteamPublished newFile = Provider.provider.workshopService.published[i];
         UGCUploadPublishedFileButton ugcuploadPublishedFileButton = new UGCUploadPublishedFileButton(newFile);
         ugcuploadPublishedFileButton.clicked += this.handlePublishedFileButtonClicked;
         this.publishedFilesPanel.addElement(ugcuploadPublishedFileButton);
     }
 }
 public UGCUploadPublishedFileButton(SteamPublished newFile)
 {
     this.file  = newFile;
     this.label = new Sleek2Label();
     this.label.transform.anchorMin = new Vector2(0f, 0f);
     this.label.transform.anchorMax = new Vector2(1f, 1f);
     this.label.transform.offsetMin = new Vector2(5f, 5f);
     this.label.transform.offsetMax = new Vector2(-5f, -5f);
     this.label.textComponent.text  = string.Concat(new object[]
     {
         this.file.name,
         " [",
         this.file.id,
         "]"
     });
     this.label.textComponent.color = Sleek2Config.darkTextColor;
     this.addElement(this.label);
 }
示例#4
0
 private void onQueryCompleted(SteamUGCQueryCompleted_t callback, bool io)
 {
     if (callback.m_eResult != 1 || io)
     {
         return;
     }
     for (uint num = 0u; num < callback.m_unNumResultsReturned; num += 1u)
     {
         SteamUGCDetails_t steamUGCDetails_t;
         SteamUGC.GetQueryUGCResult(this.ugcRequest, num, ref steamUGCDetails_t);
         SteamPublished item = new SteamPublished(steamUGCDetails_t.m_rgchTitle, steamUGCDetails_t.m_nPublishedFileId);
         this.published.Add(item);
     }
     if (this.onPublishedAdded != null)
     {
         this.onPublishedAdded();
     }
 }
示例#5
0
 // Token: 0x060017AA RID: 6058 RVA: 0x00087AB0 File Offset: 0x00085EB0
 private void onQueryCompleted(SteamUGCQueryCompleted_t callback, bool io)
 {
     if (callback.m_eResult != EResult.k_EResultOK || io)
     {
         return;
     }
     if (callback.m_unNumResultsReturned < 1u)
     {
         return;
     }
     for (uint num = 0u; num < callback.m_unNumResultsReturned; num += 1u)
     {
         SteamUGCDetails_t steamUGCDetails_t;
         SteamUGC.GetQueryUGCResult(this.ugcRequest, num, out steamUGCDetails_t);
         SteamPublished item = new SteamPublished(steamUGCDetails_t.m_rgchTitle, steamUGCDetails_t.m_nPublishedFileId);
         this.published.Add(item);
     }
     if (this.onPublishedAdded != null)
     {
         this.onPublishedAdded();
     }
     this.cleanupUGCRequest();
     this.shouldRequestAnotherPage = true;
 }