Skip to content

Commit

Permalink
Update file types
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Sep 27, 2022
1 parent 2fbd7b5 commit 90dc360
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file added Yura/Images/ImageStack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion Yura/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public partial class MainWindow : Window
// icons, todo better way for this?
private BitmapImage _folderIcon;
private BitmapImage _archiveIcon;
private BitmapImage _stackIcon;
private BitmapImage _binaryIcon;
private BitmapImage _classIcon;
private BitmapImage _imageIcon;
Expand All @@ -47,6 +48,7 @@ public MainWindow()
// icons from VS2019 icon library
_folderIcon = new BitmapImage(new Uri("/Images/FolderClosed.png", UriKind.Relative));
_archiveIcon = new BitmapImage(new Uri("/Images/ZipFile.png", UriKind.Relative));
_stackIcon = new BitmapImage(new Uri("/Images/ImageStack.png", UriKind.Relative));
_binaryIcon = new BitmapImage(new Uri("/Images/BinaryFile.png", UriKind.Relative));
_classIcon = new BitmapImage(new Uri("/Images/ClassFile.png", UriKind.Relative));
_imageIcon = new BitmapImage(new Uri("/Images/Image.png", UriKind.Relative));
Expand All @@ -56,13 +58,15 @@ public MainWindow()
_fileTypes = new Dictionary<string, Tuple<string, BitmapImage>>
{
{ ".drm", new Tuple<string, BitmapImage>("Data Ram", _classIcon) },
{ ".vrm", new Tuple<string, BitmapImage>("Video Ram", _stackIcon) },
{ ".mul", new Tuple<string, BitmapImage>("MultiplexStream", _soundIcon) },
{ ".raw", new Tuple<string, BitmapImage>("RAW Image", _imageIcon) },
{ ".mus", new Tuple<string, BitmapImage>("Music", _soundIcon) },
{ ".sam", new Tuple<string, BitmapImage>("Music Sample", _soundIcon) },
{ ".ids", new Tuple<string, BitmapImage>("IDMap", _textIcon) },
{ ".txt", new Tuple<string, BitmapImage>("Text File", _textIcon) },
{ ".sch", new Tuple<string, BitmapImage>("SchemaFile", _textIcon) }
{ ".sch", new Tuple<string, BitmapImage>("SchemaFile", _textIcon) },
{ ".ini", new Tuple<string, BitmapImage>("Text File", _textIcon) }
};
}

Expand Down
2 changes: 2 additions & 0 deletions Yura/Yura.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<None Remove="Images\ClassFile.png" />
<None Remove="Images\FolderClosed.png" />
<None Remove="Images\Image.png" />
<None Remove="Images\ImageStack.png" />
<None Remove="Images\SoundFile.png" />
<None Remove="Images\TextFile.png" />
<None Remove="Images\ZipFile.png" />
Expand All @@ -25,6 +26,7 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Resource>
<Resource Include="Images\Image.png" />
<Resource Include="Images\ImageStack.png" />
<Resource Include="Images\SoundFile.png" />
<Resource Include="Images\TextFile.png" />
<Resource Include="Images\ZipFile.png">
Expand Down

0 comments on commit 90dc360

Please sign in to comment.