1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-22 14:00:13 +00:00

more uniformization of add/back, 'space' in grapheditor works in autocheat, fixed missing XLAT in surface

This commit is contained in:
Zeno Rogue 2018-06-13 00:11:26 +02:00
parent 3881a7dd97
commit 28a4768ea4
5 changed files with 14 additions and 11 deletions

View File

@ -646,7 +646,7 @@ namespace conformal {
#if CAP_RUG
dialog::addItem(XLAT("hypersian rug mode"), 'u');
#endif
dialog::addItem(XLAT("exit this menu"), 'q');
dialog::addBack();
dialog::display();
keyhandler = [] (int sym, int uni) {

View File

@ -1431,7 +1431,7 @@ namespace mapeditor {
if(uni == 'd' || uni == 'l' || uni == 'c')
mousekey = uni;
if(uni == ' ' && cheater) {
if(uni == ' ' && (cheater || autocheat)) {
popScreen();
pushScreen(showMapEditor);
}

View File

@ -1632,6 +1632,7 @@ namespace patterns {
}
else dialog::addBreak(100);
dialog::addItem(XLAT("more tuning"), 'r');
dialog::addBack();
dialog::display();
keyhandler = [have_goldberg] (int sym, int uni) {

View File

@ -1702,9 +1702,6 @@ void show() {
gamescreen(0);
dialog::init(XLAT("hypersian rug mode"), iinf[itPalace].color, 150, 100);
dialog::addItem(XLAT("what's this?"), 'h');
dialog::addBack();
dialog::addBoolItem(XLAT("enable the Hypersian Rug mode"), rug::rugged, 'u');
dialog::addBoolItem(XLAT("render the texture only once"), (renderonce), 'o');
@ -1748,11 +1745,15 @@ void show() {
}
#endif
dialog::addBreak(50);
dialog::addHelp();
dialog::addBack();
dialog::display();
keyhandler = [] (int sym, int uni) {
dialog::handleNavigation(sym, uni);
if(uni == 'h') gotoHelp(makehelp());
if(uni == 'h' || uni == SDLK_F1) gotoHelp(makehelp());
else if(uni == 'u') {
if(rug::rugged) rug::close();
else {

View File

@ -687,20 +687,21 @@ void show_surfaces() {
dialog::addBreak(100);
dialog::addItem(XLAT("what's this?"), 'h');
dialog::addSelItem(XLAT("precision"), its(precision), 'p');
string cstyles[4] = { "OFF", "on surface", "on H² (static)", "on H² (dynamic)" };
if((rug::rugged && sh && sh != dsHyperboloid && sh != dsHemisphere) || coverage_style)
dialog::addSelItem(XLAT("display coverage"), cstyles[coverage_style], 'c');
else dialog::addBreak(100);
dialog::addItem(XLAT("take me back"), 'q');
dialog::addHelp();
dialog::addBack();
dialog::display();
keyhandler = [] (int sym, int uni) {
dialog::handleNavigation(sym, uni);
if(uni == 'h')
gotoHelp(
if(uni == 'h' || uni == SDLK_F1)
gotoHelp(XLAT(
"In this menu you can choose from several known smooth surfaces of constant negative curvature. "
"Since the curvature of hyperbolic plane is also constant negative, these surfaces "
"are great to draw hyperbolic tesselations on. While they look great, only a small part "
@ -708,7 +709,7 @@ void show_surfaces() {
"good for playing HyperRogue; however, the coverage extends far away in specific directions, "
"so first increasing sight range in graphics config and texture size in hypersian rug settings may improve the effect. "
"For convenience, you can also choose other 3D models from this menu."
);
));
else if(uni == '1')
run_shape(dsTractricoid);