mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 03:02:49 +00:00
conformal:: band now can be rendered in other band models
This commit is contained in:
parent
d45dcb346b
commit
077231b071
@ -730,6 +730,10 @@ namespace conformal {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool band_renderable_now() {
|
||||||
|
return on && (pmodel == mdBand || pmodel == mdBandEquidistant || pmodel == mdBandEquiarea) && !euclid && !sphere;
|
||||||
|
}
|
||||||
|
|
||||||
void history_menu() {
|
void history_menu() {
|
||||||
cmode = sm::SIDE | sm::MAYDARK;
|
cmode = sm::SIDE | sm::MAYDARK;
|
||||||
gamescreen(0);
|
gamescreen(0);
|
||||||
@ -752,13 +756,12 @@ namespace conformal {
|
|||||||
if(autoband)
|
if(autoband)
|
||||||
dialog::addBoolItem(XLAT("include history when auto-rendering"), (autobandhistory), 'j');
|
dialog::addBoolItem(XLAT("include history when auto-rendering"), (autobandhistory), 'j');
|
||||||
|
|
||||||
bool renderable = on && pmodel == mdBand && !euclid && !sphere;
|
if(band_renderable_now() || autoband) {
|
||||||
if(renderable || autoband) {
|
|
||||||
dialog::addSelItem(XLAT("band width"), "2*"+its(bandhalf), 'd');
|
dialog::addSelItem(XLAT("band width"), "2*"+its(bandhalf), 'd');
|
||||||
dialog::addSelItem(XLAT("length of a segment"), its(bandsegment), 's');
|
dialog::addSelItem(XLAT("length of a segment"), its(bandsegment), 's');
|
||||||
dialog::addBoolItem(XLAT("spiral on rendering"), (dospiral), 'g');
|
dialog::addBoolItem(XLAT("spiral on rendering"), (dospiral), 'g');
|
||||||
if(renderable)
|
if(band_renderable_now())
|
||||||
dialog::addItem(XLAT("render now (length: %1)", its(measureLength())), 'f');
|
dialog::addItem(XLAT("render now (length: %1)", fts(measureLength())), 'f');
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -807,7 +810,7 @@ namespace conformal {
|
|||||||
includeHistory = !includeHistory;
|
includeHistory = !includeHistory;
|
||||||
}
|
}
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
else if(uni == 'f' && pmodel == mdBand && on) createImage(dospiral);
|
else if(uni == 'f' && band_renderable_now()) createImage(dospiral);
|
||||||
#endif
|
#endif
|
||||||
else if(sym == 'j') {
|
else if(sym == 'j') {
|
||||||
autobandhistory = !autobandhistory;
|
autobandhistory = !autobandhistory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user