mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
misc: store images internally with PNG extension for easier manual tinkering
This commit is contained in:
@@ -12,6 +12,7 @@ Features:
|
|||||||
* Add filter box to Game and Stylesheet selection.
|
* Add filter box to Game and Stylesheet selection.
|
||||||
* Add extra_card("field name") script function for accessing Extra Card Fields.
|
* Add extra_card("field name") script function for accessing Extra Card Fields.
|
||||||
* Add Clear button to console panel.
|
* Add Clear button to console panel.
|
||||||
|
* Store images internally with PNG extension.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
HEAD: new items added as changes are made
|
HEAD: new items added as changes are made
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void ImageValueEditor::sliceImage(const Image& image) {
|
|||||||
// clicked ok?
|
// clicked ok?
|
||||||
if (s.ShowModal() == wxID_OK) {
|
if (s.ShowModal() == wxID_OK) {
|
||||||
// store the image into the set
|
// store the image into the set
|
||||||
LocalFileName new_image_file = getLocalPackage().newFileName(field().name,_("")); // a new unique name in the package
|
LocalFileName new_image_file = getLocalPackage().newFileName(field().name,_(".png")); // a new unique name in the package
|
||||||
Image img = s.getImage();
|
Image img = s.getImage();
|
||||||
img.SaveFile(getLocalPackage().nameOut(new_image_file), wxBITMAP_TYPE_PNG); // always use PNG images, see #69. Disk space is cheap anyway.
|
img.SaveFile(getLocalPackage().nameOut(new_image_file), wxBITMAP_TYPE_PNG); // always use PNG images, see #69. Disk space is cheap anyway.
|
||||||
addAction(value_action(valueP(), new_image_file));
|
addAction(value_action(valueP(), new_image_file));
|
||||||
|
|||||||
Reference in New Issue
Block a user