mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-08 04:28:17 +00:00
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:
parent
801418a41d
commit
7b6be5da7c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user