Skip to content

Commit

Permalink
Brought back the funny dogcheck
Browse files Browse the repository at this point in the history
it does the same but now when you close it asks if you want to save so you really don't lose that much progress!
  • Loading branch information
Romualdo666 committed Aug 23, 2023
1 parent f512f2b commit e461e5c
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
38 changes: 38 additions & 0 deletions UndertaleModTool/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
</MenuItem>
<Separator/>
<MenuItem Header="Generate o_ffset map" Click="MenuItem_OffsetMap_Click"/>
<MenuItem Header="Export to GameMaker project" Click="MenuItem_GameMaker_Click"/>
<Separator/>
<MenuItem Header="S_ettings" Command="Properties"/>
<MenuItem Header="_Close" Command="Close" InputGestureText="Ctrl+Q"/>
Expand Down Expand Up @@ -714,5 +715,42 @@
</Grid>
</Grid>
</DockPanel>
<Border Background="Black" Name="room_dogcheck" Visibility="Collapsed">
<Grid RenderOptions.BitmapScalingMode="NearestNeighbor">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Image Grid.Row="1" Grid.Column="1">
<Image.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard RepeatBehavior="Forever">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Source"
Duration="0:0:0.4">
<DiscreteObjectKeyFrame KeyTime="0:0:0.00">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="Resources/spr_tobdogl/0.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
<DiscreteObjectKeyFrame.Value>
<BitmapImage UriSource="Resources/spr_tobdogl/1.png"/>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Image.Triggers>
</Image>
</Grid>
</Border>
</Grid>
</Window>
27 changes: 27 additions & 0 deletions UndertaleModTool/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.IO.Compression;
using System.Linq;
using System.Reflection;
using System.Media;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -3511,6 +3512,32 @@ private async void MenuItem_OffsetMap_Click(object sender, RoutedEventArgs e)
}
}
}
private bool scr_dogcheck()
{
if (Environment.UserName != "The one and only annoying dog!")
{
// Toby Fox did not autorize you to do this action

Title = "UndertaleDogTool by krzys_h v0.1.TOBYFOX";

room_dogcheck.Visibility = Visibility.Visible;

SoundPlayer player = new SoundPlayer(Application.GetResourceStream(new Uri(@"pack://application:,,,/Resources/mus_dance_of_dog.wav")).Stream);
player.PlayLooping();

return false;
}

return true;
}

private void MenuItem_GameMaker_Click(object sender, RoutedEventArgs e)
{
if (!scr_dogcheck())
return;

// TODO: Don't ever implement this
}

private void OpenInTab(object obj, bool isNewTab = false, string tabTitle = null)
{
Expand Down
Binary file added UndertaleModTool/Resources/mus_dance_of_dog.wav
Binary file not shown.
Binary file added UndertaleModTool/Resources/spr_tobdogl/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UndertaleModTool/Resources/spr_tobdogl/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions UndertaleModTool/UndertaleModTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,33 @@
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\spr_tobdogl\0.png" />
<Resource Include="Resources\spr_tobdogl\1.png" />
<Resource Include="Resources\mus_dance_of_dog.wav" />
</ItemGroup>
</Project>

0 comments on commit e461e5c

Please sign in to comment.