-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These were some changes to UI I've done a few months ago. I don't have time to work on this project right now but I decided to upload these changes anyway with a few features commented out,. you can compile and try them for yourself if you want to. - Main UI changed - Search and Categories for mods - Login through Steam (Disabled, not finished) - Settings Page (Disabled, not even close to be done) - Get mods Images from folders and zip files (Disabled due to badly optimized and not async right now)
- Loading branch information
Showing
51 changed files
with
2,321 additions
and
882 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
MetroFramework - Modern UI for WinForms | ||
|
||
Copyright (c) 2013 Jens Thiel, http://thielj.github.io/MetroFramework | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in the | ||
Software without restriction, including without limitation the rights to use, copy, | ||
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | ||
and to permit persons to whom the Software is furnished to do so, subject to the | ||
following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | ||
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | ||
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
|
||
Portions of this software are: | ||
|
||
Copyright (c) 2011 Sven Walter, http://github.com/viperneo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using Gecko; | ||
using HtmlAgilityPack; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Drawing; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Text; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Timer = System.Timers.Timer; | ||
|
||
namespace Hoi4_Launcher.Parser | ||
{ | ||
public class SteamHandler | ||
{ | ||
public string steamLogin = "https://store.steampowered.com/login/"; | ||
public string steamStore = "https://store.steampowered.com/"; | ||
public string[] steamMods = { "https://steamcommunity.com/id/", "/myworkshopfiles/?appid=394360&browsefilter=mysubscriptions", "&p=" }; | ||
public bool isAuthentificated = false; | ||
public List<string> userAndID = new List<string>(); | ||
|
||
Timer browserCheck = new Timer(100); | ||
public bool checkIfAuthentificated(string url) | ||
{ | ||
if (url == steamStore) | ||
{ return true; } | ||
else { return false; } | ||
} | ||
public void getUser(GeckoWebBrowser browser) | ||
{ | ||
HtmlDocument content = new HtmlDocument(); | ||
content.LoadHtml(browser.Document.Body.OuterHtml); | ||
if (content.DocumentNode.OuterHtml != null) | ||
{ | ||
HtmlNode contentNode = content.DocumentNode.SelectSingleNode("//div[contains(@class,'playerAvatar')]"); | ||
string id = contentNode.ChildNodes[1].Attributes["href"].Value; | ||
string user = id.Split('/')[4]; | ||
userAndID.Add(id); | ||
userAndID.Add(user); | ||
} | ||
} | ||
public Dictionary<string, Image> getModsImages(GeckoWebBrowser browser) | ||
{ | ||
Dictionary<string, Image> modsIMG = new Dictionary<string, Image>(); | ||
var steamModsUrl = steamMods[0] + userAndID.Last() + steamMods[1]; | ||
browser.Navigate(steamModsUrl); | ||
while (browser.IsBusy) { | ||
}; | ||
HtmlDocument content = new HtmlDocument(); | ||
content.LoadHtml(browser.Document.Body.OuterHtml); | ||
if (content.DocumentNode.OuterHtml != null) | ||
{ | ||
HtmlNode contentNode = content.DocumentNode.SelectSingleNode("//div[contains(@class,'workshopBrowsePagingControls')]"); | ||
string lastEntri = contentNode.ChildNodes[contentNode.ChildNodes.Count - 2].InnerText; | ||
} | ||
return modsIMG; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.