Add solution and project files; introduce .gitignore and clean IDE/build artifacts

This commit is contained in:
erik 2025-05-30 23:06:07 +02:00
commit be5a4e9fa7
10 changed files with 270 additions and 0 deletions

76
MainWindow.xaml Normal file
View file

@ -0,0 +1,76 @@
<Window x:Class="MossyUpdater.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MossyUpdater" Height="331" Width="500">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<!-- 0: label -->
<RowDefinition Height="Auto"/>
<!-- 1: URL textbox -->
<RowDefinition Height="Auto"/>
<!-- 2: folder picker -->
<RowDefinition Height="Auto"/>
<!-- 3: filename -->
<RowDefinition Height="Auto"/>
<!-- 4: download button -->
<RowDefinition Height="Auto"/>
<!-- 5: status text -->
<RowDefinition Height="*"/>
<!-- 6: image (fills rest) -->
</Grid.RowDefinitions>
<!-- 0 -->
<TextBlock Text="MosswartMassacre URL to DLL:" Grid.Row="0" Margin="0,0,0,5"/>
<!-- 1 -->
<TextBox x:Name="UrlTextBox"
Grid.Row="1"
Height="25"
Margin="0,0,0,10"
Text="https://git.snakedesert.se/SawatoMosswartsEnjoyersClub/MosswartMassacre/raw/branch/spawn-detection/MosswartMassacre/bin/Release/MosswartMassacre.dll"/>
<!-- 2 -->
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,0,0,10">
<TextBox x:Name="FolderTextBox"
Width="350"
Height="25"
Margin="0,0,5,0"/>
<Button Content="Browse"
Width="75"
Click="Browse_Click"/>
</StackPanel>
<!-- 3 -->
<StackPanel Grid.Row="3" Orientation="Horizontal" Margin="0,0,0,10">
<TextBlock Text="Filename:"
VerticalAlignment="Center"
Margin="0,0,5,0"/>
<TextBox x:Name="FilenameTextBox"
Width="200"
Text="MosswartMassacre.dll"/>
</StackPanel>
<!-- 4 -->
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Download &amp; Unblock"
Width="150"
Click="Download_Click"/>
</StackPanel>
<!-- 5 -->
<TextBlock x:Name="StatusTextBlock"
Grid.Row="5"
Margin="0,10,0,10"
Foreground="Green"/>
<!-- 6: your image as embedded Resource -->
<Image Grid.Row="6"
Source="pack://application:,,,/MossyUpdater;component/Mosswart_Mask_Live.png"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,10,0,0"
Height="100"/>
</Grid>
</Window>