1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-23 16:50:27 +00:00

rug now displays geometry correctly

This commit is contained in:
Zeno Rogue 2020-04-19 14:00:06 +02:00
parent 2e160110b3
commit 62e0aab0bf

17
rug.cpp
View File

@ -1418,16 +1418,6 @@ EX string makehelp() {
; ;
} }
EX string geometry_name(eGeometry g) {
switch(g) {
case gNormal: return XLAT("hyperbolic");
case gEuclid: return XLAT("Euclidean");
case gSphere: return XLAT("spherical");
case gElliptic: return XLAT("elliptic");
default: return XLAT("unknown");
}
}
void change_texturesize() { void change_texturesize() {
if(rugged) { if(rugged) {
close(); close();
@ -1490,8 +1480,11 @@ EX void show() {
dialog::addSelItem(XLAT("projection"), models::get_model_name(rconf.model), 'p'); dialog::addSelItem(XLAT("projection"), models::get_model_name(rconf.model), 'p');
} }
else dialog::addBreak(100); else dialog::addBreak(100);
if(!rug::rugged) if(!rug::rugged) {
dialog::addSelItem(XLAT("native geometry"), geometry_name(gwhere), 'n'); dynamicval<eGeometry> g(geometry, gwhere);
dialog::addSelItem(XLAT("native geometry"), geometry_name(), 'n');
if(gwhere == rgElliptic) dialog::lastItem().value += " (e)";
}
else else
dialog::addSelItem(XLAT("radar"), radar_distance == RADAR_INF ? "" : fts(radar_distance, 4), 'r'); dialog::addSelItem(XLAT("radar"), radar_distance == RADAR_INF ? "" : fts(radar_distance, 4), 'r');
dialog::addSelItem(XLAT("model scale factor"), fts(modelscale), 'm'); dialog::addSelItem(XLAT("model scale factor"), fts(modelscale), 'm');