Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Added DDS dialog selection for later testing
Browse files Browse the repository at this point in the history
  • Loading branch information
REHERC committed Apr 17, 2021
1 parent b2ac5d8 commit 0c645ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions App.AdventureMaker.Core/Global/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ public static class Constants
public const string DIALOG_FILTER_ARCHIVE = "Campaign Resource Assed Bundle (.crab)|.crab";

// Image filters
public const string DIALOG_FILTER_IMAGES = "Image files (*.png;*.jpeg;*.jpg;*.jpe;*.jif;*.jfif;*.jfi;*.tga;*.dds;*.tif;*.tiff;*.bmp)|*.png;*.jpeg;*.jpg;*.jpe;*.jif;*.jfif;*.jfi;*.tga;*.dds;*.tif;*.tiff;*.bmp";
public const string DIALOG_FILTER_PNG = "Portable Network Graphics (*.png)|*.png";
public const string DIALOG_FILTER_JPG = "Joint Photographic Experts Group (*.jpeg;*.jpg;*.jpe;*.jif;*.jfif;*.jfi)|*.jpeg;*.jpg;*.jpe;*.jif;*.jfif;*.jfi";
public const string DIALOG_FILTER_TGA = "Truevision Advanced Raster Graphics Adapter (*.tga)|*.tga";
public const string DIALOG_FILTER_DDS = "Direct Draw Surface (*.dds)|*.dds";
public const string DIALOG_FILTER_TIF = "Tag Image File Format (*.tif;*.tiff)|*.tif;*.tiff";
public const string DIALOG_FILTER_BMP = "Bitmap (*.bmp)|*.bmp";

Expand Down
2 changes: 2 additions & 0 deletions App.AdventureMaker.Core/Global/Dialogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ public static OpenFileDialog SelectImageDialog(string title)
CheckFileExists = true,
Filters =
{
DIALOG_FILTER_IMAGES,
DIALOG_FILTER_PNG,
DIALOG_FILTER_JPG,
DIALOG_FILTER_BMP,
DIALOG_FILTER_DDS,
DIALOG_FILTER_TGA,
DIALOG_FILTER_TIF,
DIALOG_FILTER_ANY
Expand Down

0 comments on commit 0c645ad

Please sign in to comment.