mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-15 07:32:50 +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
@ -604,6 +604,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) {
|
void editAt(cellwalker where) {
|
||||||
|
|
||||||
if(painttype == 4 && radius) {
|
if(painttype == 4 && radius) {
|
||||||
@ -778,12 +800,12 @@ namespace mapeditor {
|
|||||||
});
|
});
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
else if(sym == SDLK_F6) {
|
else if(sym == SDLK_F6) {
|
||||||
saveHighQualityShot();
|
saveHighQualityShotX();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if CAP_SVG
|
#if CAP_SVG
|
||||||
else if(sym == SDLK_F8) {
|
else if(sym == SDLK_F8) {
|
||||||
svg::render();
|
saveSvgShotX();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if(sym == SDLK_F7) {
|
else if(sym == SDLK_F7) {
|
||||||
@ -1413,13 +1435,13 @@ namespace mapeditor {
|
|||||||
|
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
if(sym == SDLK_F6) {
|
if(sym == SDLK_F6) {
|
||||||
saveHighQualityShot();
|
saveHighQualityShotX();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CAP_SVG
|
#if CAP_SVG
|
||||||
if(sym == SDLK_F8) {
|
if(sym == SDLK_F8) {
|
||||||
svg::render();
|
saveSvgShotX();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user