mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Make PNG the default export format.
This commit is contained in:
@@ -72,7 +72,7 @@ IMPLEMENT_REFLECTION_NO_SCRIPT(ColumnSettings) {
|
|||||||
|
|
||||||
GameSettings::GameSettings()
|
GameSettings::GameSettings()
|
||||||
: sort_cards_ascending(true)
|
: sort_cards_ascending(true)
|
||||||
, images_export_filename(_("{card.name}.jpg"))
|
, images_export_filename(_("{card.name}.png"))
|
||||||
, images_export_conflicts(CONFLICT_NUMBER_OVERWRITE)
|
, images_export_conflicts(CONFLICT_NUMBER_OVERWRITE)
|
||||||
, use_auto_replace(true)
|
, use_auto_replace(true)
|
||||||
, pack_seed_random(true)
|
, pack_seed_random(true)
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ void SetWindow::onFileExportImage(wxCommandEvent&) {
|
|||||||
CardP card = current_panel->selectedCard();
|
CardP card = current_panel->selectedCard();
|
||||||
if (!card) return; // no card selected
|
if (!card) return; // no card selected
|
||||||
String name = wxFileSelector(_TITLE_("save image"), settings.default_export_dir, clean_filename(card->identification()), _(""),
|
String name = wxFileSelector(_TITLE_("save image"), settings.default_export_dir, clean_filename(card->identification()), _(""),
|
||||||
_("JPEG images (*.jpg)|*.jpg|Windows bitmaps (*.bmp)|*.bmp|PNG images (*.png)|*.png|TIFF images (*.tif)|*.tif"),
|
_("PNG images (*.png)|*.png|JPEG images (*.jpg)|*.jpg|Windows bitmaps (*.bmp)|*.bmp|TIFF images (*.tif)|*.tif"),
|
||||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT, this);
|
wxFD_SAVE | wxFD_OVERWRITE_PROMPT, this);
|
||||||
if (!name.empty()) {
|
if (!name.empty()) {
|
||||||
settings.default_export_dir = wxPathOnly(name);
|
settings.default_export_dir = wxPathOnly(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user