Make it inconvenient to show thanks & Increase version to 1.3.1.2

* User will have to hold only the Ctrl key while opening the about window to show extra possibly cringe info
This commit is contained in:
Mathias Lui 2023-02-01 23:16:38 +01:00
parent f38a3ebef8
commit 77e1bdf273
4 changed files with 29 additions and 18 deletions

View file

@ -7,23 +7,25 @@
mc:Ignorable="d"
Style="{DynamicResource CustomWindowStyle}"
WindowStartupLocation="CenterOwner"
Title="About" Height="493" Width="418" ResizeMode="NoResize">
Title="About" Height="493" Width="418" ResizeMode="NoResize" SizeToContent="Height">
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="Made by: Matty_L" FontSize="14" />
<TextBlock Text="Special thanks to SlothSquadron" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for being quick and helpful with some questions that I had)" />
<TextBlock Text="and 3kliksphilip" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for mentioning that NAV files can be BSP-packed)" />
<TextBlock Text="and the UC user Zat" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for posting the VDF parser pasta base)" />
<TextBlock Text="and Casual_Hacker" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for the armor scale pasta)" />
<TextBlock Text="as well as sapphyrus" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for mentioning the random bomb damage factor)" />
<TextBlock Text="and AldaVadda" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for always being ready to help, enduring me)" />
<TextBlock Foreground="LightSeaGreen" Margin="0,20,0,0" FontSize="14" Text="Any feedback or bug findings are more than welcome and can be reported on GameBanana." TextWrapping="Wrap" />
<StackPanel x:Name="thanksStack" Visibility="Collapsed">
<TextBlock Text="Special thanks to SlothSquadron" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for being quick and helpful with some questions that I had)" />
<TextBlock Text="and 3kliksphilip" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for mentioning that NAV files can be BSP-packed)" />
<TextBlock Text="and the UC user Zat" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for posting the VDF parser pasta base)" />
<TextBlock Text="and Casual_Hacker" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for the armor scale pasta)" />
<TextBlock Text="as well as sapphyrus" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for mentioning the random bomb damage factor)" />
<TextBlock Text="and AldaVadda" FontSize="14" Margin="0,20,0,0" />
<TextBlock Text="(for always being ready to help, enduring me)" />
</StackPanel>
<TextBlock Foreground="LightSeaGreen" Margin="0,20,0,0" FontSize="14" Text="Any feedback or bug findings are more than welcome and can be reported on GameBanana or something idk." TextWrapping="Wrap" />
<TextBlock x:Name="txtVersion" Margin="0,20,0,0" Text="Version XXX" />
</StackPanel>
</Grid>

View file

@ -19,9 +19,13 @@ namespace Damage_Calculator
/// </summary>
public partial class About : Window
{
public About()
public About(bool showThanks = false)
{
InitializeComponent();
if (showThanks)
this.thanksStack.Visibility = Visibility.Visible;
txtVersion.Text = "Version " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}

View file

@ -11,8 +11,8 @@
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>27.ico</ApplicationIcon>
<FileVersion>1.3.1.0</FileVersion>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<FileVersion>1.3.1.2</FileVersion>
<AssemblyVersion>1.3.1.2</AssemblyVersion>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.cs" />

View file

@ -2110,7 +2110,12 @@ namespace Damage_Calculator
private void mnuAbout_Click(object sender, RoutedEventArgs e)
{
About about = new About();
bool showThanks = false;
if (Keyboard.Modifiers == ModifierKeys.Control)
showThanks = true;
About about = new About(showThanks);
about.Owner = this;
about.ShowDialog();
}