Skip to content

Commit

Permalink
Added WebBrowserr/tutorial window for new users.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrenm3 authored and Gurrenm3 committed Sep 1, 2020
1 parent 7ba202c commit 0651b69
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
23 changes: 21 additions & 2 deletions BTD6 Mod Manager.wpf/MainWindow.xaml.cs
Expand Up @@ -88,6 +88,22 @@ private void OnFinishedLoading()
UserData.SaveUserData();
});*/

if (TempSettings.Instance.IsNewUser)
{
var diag = MessageBox.Show("Would you like to see a tutorial on how to use this mod manager?", "Open tutorial?", MessageBoxButton.YesNo);
if (diag == MessageBoxResult.Yes)
{
Windows.WebBrowser browser = new Windows.WebBrowser("How to use this Mod Manager");
browser.Show();
browser.GoToURL("https://youtu.be/RyB5MyMpOlE?t=613");
}
else
MessageBox.Show("Okay. If you want to see it later, just click on the \"Help\" at the top of the mod manager," +
" then click \"How to use Mod Manager\"");
TempSettings.Instance.IsNewUser = false;
TempSettings.Instance.SaveSettings();
}

BgThread.AddToQueue(() =>
{
string btd6ExePath = SteamUtils.GetGameDir(GameType.BTD6) + "\\" + GameInfo.GetGame(GameType.BTD6).EXEName;
Expand Down Expand Up @@ -306,14 +322,17 @@ private void Console_Timer_Tick(object sender, EventArgs e)

private void HowGetMods_Button_Click(object sender, RoutedEventArgs e)
{

Windows.WebBrowser browser = new Windows.WebBrowser("How to get mods");
browser.Show();
browser.GoToURL("https://youtu.be/RyB5MyMpOlE?t=1077");
}


private void HowToUse_Button_Click(object sender, RoutedEventArgs e)
{
Windows.WebBrowser browser = new Windows.WebBrowser("How to use this Mod Manager");
browser.Show();
browser.GoToURL("https://www.youtube.com/watch?v=UbcLnS6X3NU");
browser.GoToURL("https://youtu.be/RyB5MyMpOlE?t=613");
}


Expand Down
6 changes: 3 additions & 3 deletions BTD6 Mod Manager.wpf/Properties/AssemblyInfo.cs
Expand Up @@ -8,7 +8,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("BTD6 Mod Manager")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("A mod manager for BTD6")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TD Toolbox")]
[assembly: AssemblyProduct("BTD6 Mod Manager")]
Expand Down Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.5")]
[assembly: AssemblyFileVersion("1.0.5")]
[assembly: AssemblyVersion("1.0.6")]
[assembly: AssemblyFileVersion("1.0.6")]

0 comments on commit 0651b69

Please sign in to comment.