Skip to content

Commit

Permalink
Added "Refresh Mods" button
Browse files Browse the repository at this point in the history
  • Loading branch information
gurrenm3 committed Dec 24, 2020
1 parent 33e1eae commit facae48
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions BTD6 Mod Manager.wpf/BTD6 Mod Manager.csproj
Expand Up @@ -225,5 +225,8 @@
<Name>BTD6 Mod Manager.Lib</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\White refresh icon.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
10 changes: 9 additions & 1 deletion BTD6 Mod Manager.wpf/MainWindow.xaml
Expand Up @@ -85,7 +85,7 @@
</Menu>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>

<Separator Margin="8,0,8,0"/>
<Button x:Name="Nexus_Button" Background="#FFEAA666" Width="130" Height="30" BorderBrush="Black" FontSize="16" Click="Nexus_Button_Click" VerticalAlignment="Bottom">
<DockPanel>
Expand All @@ -102,6 +102,14 @@
</DockPanel>
</Button>

<Separator Margin="8,0,8,0"/>
<Button x:Name="RefreshMods_Button" Background="#FF878787" Width="130" Height="30" BorderBrush="Black" FontSize="16" Click="RefreshMods_Button_Click" VerticalAlignment="Bottom">
<DockPanel>
<TextBlock Text=" Refresh Mods " Foreground="White"/>
<Image Source="Resources/White refresh icon.png" Margin="0,1,0,0" Stretch="Uniform"/>
</DockPanel>
</Button>

<Separator Margin="8,0,8,0"/>
<Button x:Name="Launch_Button" Content="Launch" Background="#FF5BC900" Width="100" Height="30" BorderBrush="Black" FontSize="16" Click="Launch_Button_Click" Foreground="White"/>
<Separator Margin="8,0,8,0" Background="#FF383838"/>
Expand Down
5 changes: 5 additions & 0 deletions BTD6 Mod Manager.wpf/MainWindow.xaml.cs
Expand Up @@ -325,5 +325,10 @@ private void BrowseModDir_Button_Click(object sender, RoutedEventArgs e)
Settings.LoadedSettings.Save();
UserControls.Mods_UserControl.instance.PopulateMods(SessionData.currentGame);
}

private void RefreshMods_Button_Click(object sender, RoutedEventArgs e)
{
UserControls.Mods_UserControl.instance.PopulateMods(SessionData.currentGame);
}
}
}
4 changes: 2 additions & 2 deletions BTD6 Mod Manager.wpf/Properties/AssemblyInfo.cs
Expand Up @@ -49,5 +49,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("2.2.0")]
[assembly: AssemblyFileVersion("2.2.0")]
[assembly: AssemblyVersion("2.2.1")]
[assembly: AssemblyFileVersion("2.2.1")]
1 change: 0 additions & 1 deletion BTD6 Mod Manager.wpf/Properties/Resources.resx
Expand Up @@ -117,5 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</root>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit facae48

Please sign in to comment.