HQ/SVG shots in the editors now include the aura background, and you can choose the file (use Shift+F6 for the old way)

This commit is contained in:
Zeno Rogue 2018-01-05 14:19:22 +01:00
parent 801418a41d
commit 7b6be5da7c
1 changed files with 26 additions and 4 deletions

View File

@ -603,6 +603,28 @@ namespace mapeditor {
}
}
}
void saveHighQualityShotX() {
static string hqfile = "hqshot.png";
if(anyshiftclick)
saveHighQualityShot();
else
dialog::openFileDialog(hqfile, XLAT("F6 = HQ shot"), ".png", [] () {
saveHighQualityShot(hqfile.c_str());
return true;
});
}
void saveSvgShotX() {
static string hqfile = "svgshot.svg";
if(anyshiftclick)
svg::render();
else
dialog::openFileDialog(hqfile, XLAT("F8 = SVG shot"), ".svg", [] () {
svg::render(hqfile.c_str());
return true;
});
}
void editAt(cellwalker where) {
@ -778,12 +800,12 @@ namespace mapeditor {
});
#if CAP_SDL
else if(sym == SDLK_F6) {
saveHighQualityShot();
saveHighQualityShotX();
}
#endif
#if CAP_SVG
else if(sym == SDLK_F8) {
svg::render();
saveSvgShotX();
}
#endif
else if(sym == SDLK_F7) {
@ -1413,13 +1435,13 @@ namespace mapeditor {
#if CAP_SDL
if(sym == SDLK_F6) {
saveHighQualityShot();
saveHighQualityShotX();
}
#endif
#if CAP_SVG
if(sym == SDLK_F8) {
svg::render();
saveSvgShotX();
}
#endif