diff --git a/.gitignore b/.gitignore index f9b23550..a807641b 100644 --- a/.gitignore +++ b/.gitignore @@ -213,3 +213,4 @@ ModelManifest.xml /Master/NucleusCoop.VC.VC.opendb *.db /Master/NucleusCoop_small.VC.VC.opendb +/Master/NucleusCoopTool/GoldbergUpdater.cs diff --git a/Master/NucleusCoopTool/AssetsScraper.cs b/Master/NucleusCoopTool/AssetsScraper.cs index 9632de13..beb37c64 100644 --- a/Master/NucleusCoopTool/AssetsScraper.cs +++ b/Master/NucleusCoopTool/AssetsScraper.cs @@ -11,7 +11,7 @@ namespace Nucleus.Gaming.Coop.Generic class AssetsScraper //Download game covers & screenshots from igdb through the hub api. { - public void SaveCovers(string urls, string name) + public void DownloadCovers(string urls, string name) { try { @@ -39,7 +39,7 @@ public void SaveCovers(string urls, string name) } private int max; - public void SaveScreenshots(string json, string gameName) + public void DownloadScreenshots(string json, string gameName) { try { diff --git a/Master/NucleusCoopTool/BufferedClientAreaPanel.cs b/Master/NucleusCoopTool/Controls/BufferedClientAreaPanel.cs similarity index 100% rename from Master/NucleusCoopTool/BufferedClientAreaPanel.cs rename to Master/NucleusCoopTool/Controls/BufferedClientAreaPanel.cs diff --git a/Master/NucleusCoopTool/Controls/HubShowcase.cs b/Master/NucleusCoopTool/Controls/HubShowcase.cs new file mode 100644 index 00000000..42fd9716 --- /dev/null +++ b/Master/NucleusCoopTool/Controls/HubShowcase.cs @@ -0,0 +1,228 @@ +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using Nucleus.Coop.Forms; +using Nucleus.Gaming; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Nucleus.Coop +{ + public partial class HubShowcase : UserControl + { + private const string api = "https://hub.splitscreen.me/api/v1/"; + private MainForm mainForm; + private JArray handlers; + private int cover_index = 0; + private Label authorLabel; + private Label downloadLabel; + private System.Windows.Forms.Timer rainbowTimer; + private List