Skip to content

Commit 50b20e7

Browse files
committed
Add PNG format when inserting or replacing graphics.
1 parent f0807e8 commit 50b20e7

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

UoFiddler.Controls/Forms/AnimationEditForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ private void OnClickReplace(object sender, EventArgs e)
806806
dialog.Multiselect = false;
807807
dialog.Title = $"Choose image file to replace at {frameIndex}";
808808
dialog.CheckFileExists = true;
809-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
809+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
810810

811811
if (dialog.ShowDialog() != DialogResult.OK)
812812
{

UoFiddler.Controls/UserControls/FontsControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private void OnClickImport(object sender, EventArgs e)
244244
dialog.Multiselect = false;
245245
dialog.Title = "Choose an image file to import";
246246
dialog.CheckFileExists = true;
247-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
247+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
248248
if (dialog.ShowDialog() != DialogResult.OK)
249249
{
250250
return;

UoFiddler.Controls/UserControls/GumpControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private void OnClickReplace(object sender, EventArgs e)
305305
dialog.Multiselect = false;
306306
dialog.Title = "Choose image file to replace";
307307
dialog.CheckFileExists = true;
308-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
308+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
309309
if (dialog.ShowDialog() != DialogResult.OK)
310310
{
311311
return;
@@ -435,7 +435,7 @@ private void OnKeydown_InsertText(object sender, KeyEventArgs e)
435435
dialog.Multiselect = false;
436436
dialog.Title = $"Choose image file to insert at 0x{index:X}";
437437
dialog.CheckFileExists = true;
438-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
438+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
439439
if (dialog.ShowDialog() != DialogResult.OK)
440440
{
441441
return;
@@ -716,7 +716,7 @@ private void InsertStartingFromTb_KeyDown(object sender, KeyEventArgs e)
716716
dialog.Multiselect = true;
717717
dialog.Title = $"Choose image file to insert at 0x{index:X}";
718718
dialog.CheckFileExists = true;
719-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
719+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
720720
if (dialog.ShowDialog() != DialogResult.OK)
721721
{
722722
return;

UoFiddler.Controls/UserControls/ItemsControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ private void OnClickReplace(object sender, EventArgs e)
499499
dialog.Multiselect = false;
500500
dialog.Title = "Choose image file to replace";
501501
dialog.CheckFileExists = true;
502-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
502+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
503503
if (dialog.ShowDialog() != DialogResult.OK)
504504
{
505505
return;
@@ -592,7 +592,7 @@ private void OnKeyDownInsertText(object sender, KeyEventArgs e)
592592
dialog.Multiselect = false;
593593
dialog.Title = $"Choose images to replace starting at 0x{index:X}";
594594
dialog.CheckFileExists = true;
595-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
595+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
596596

597597
if (dialog.ShowDialog() != DialogResult.OK)
598598
{
@@ -1069,7 +1069,7 @@ private void ReplaceStartingFromText_KeyDown(object sender, KeyEventArgs e)
10691069
dialog.Multiselect = true;
10701070
dialog.Title = $"Choose image file replace starting at 0x{index:X}";
10711071
dialog.CheckFileExists = true;
1072-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
1072+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
10731073

10741074
if (dialog.ShowDialog() != DialogResult.OK)
10751075
{

UoFiddler.Controls/UserControls/LandTilesControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private void OnClickReplace(object sender, EventArgs e)
347347
dialog.Multiselect = false;
348348
dialog.Title = "Choose image file to replace";
349349
dialog.CheckFileExists = true;
350-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
350+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
351351
if (dialog.ShowDialog() != DialogResult.OK)
352352
{
353353
return;
@@ -412,7 +412,7 @@ private void OnKeyDownInsert(object sender, KeyEventArgs e)
412412
dialog.Multiselect = false;
413413
dialog.Title = $"Choose image file to insert at 0x{index:X}";
414414
dialog.CheckFileExists = true;
415-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
415+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
416416

417417
if (dialog.ShowDialog() != DialogResult.OK)
418418
{
@@ -702,7 +702,7 @@ private void ReplaceStartingFromTb_KeyDown(object sender, KeyEventArgs e)
702702
dialog.Multiselect = true;
703703
dialog.Title = $"Choose images to replace starting at 0x{index:X}";
704704
dialog.CheckFileExists = true;
705-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
705+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
706706

707707
if (dialog.ShowDialog() != DialogResult.OK)
708708
{

UoFiddler.Controls/UserControls/LightControl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private void OnClickReplace(object sender, EventArgs e)
232232
dialog.Multiselect = false;
233233
dialog.Title = "Choose image file to replace";
234234
dialog.CheckFileExists = true;
235-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
235+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
236236
if (dialog.ShowDialog() != DialogResult.OK)
237237
{
238238
return;
@@ -294,7 +294,7 @@ private void OnKeyDownInsert(object sender, KeyEventArgs e)
294294
dialog.Multiselect = false;
295295
dialog.Title = string.Format("Choose image file to insert at {0} (0x{0:X})", index);
296296
dialog.CheckFileExists = true;
297-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
297+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
298298
if (dialog.ShowDialog() != DialogResult.OK)
299299
{
300300
return;

UoFiddler.Controls/UserControls/TexturesControl.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void OnClickReplace(object sender, EventArgs e)
248248
dialog.Multiselect = false;
249249
dialog.Title = "Choose image file to replace";
250250
dialog.CheckFileExists = true;
251-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
251+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
252252
if (dialog.ShowDialog() != DialogResult.OK)
253253
{
254254
return;
@@ -310,7 +310,7 @@ private void OnKeyDownInsert(object sender, KeyEventArgs e)
310310
dialog.Multiselect = false;
311311
dialog.Title = $"Choose image file to insert at 0x{index:X}";
312312
dialog.CheckFileExists = true;
313-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
313+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
314314
if (dialog.ShowDialog() != DialogResult.OK)
315315
{
316316
return;
@@ -569,7 +569,7 @@ private void ReplaceStartingFrom_OnInsert(object sender, KeyEventArgs e)
569569
dialog.Multiselect = true;
570570
dialog.Title = $"Choose images to replace starting at 0x{index:X}";
571571
dialog.CheckFileExists = true;
572-
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp)|*.tif;*.tiff;*.bmp";
572+
dialog.Filter = "Image files (*.tif;*.tiff;*.bmp;*.png)|*.tif;*.tiff;*.bmp;*.png";
573573

574574
if (dialog.ShowDialog() != DialogResult.OK)
575575
{

0 commit comments

Comments
 (0)