1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

gp:: help works

This commit is contained in:
Zeno Rogue 2018-04-10 05:20:03 +02:00
parent 196b7ad104
commit baffd5be17

View File

@ -465,7 +465,7 @@ namespace gp {
if((config_x-config_y)%3 && !show_nonthree) if((config_x-config_y)%3 && !show_nonthree)
dialog::addInfo("This pattern needs x-y divisible by 3"); dialog::addInfo("This pattern needs x-y divisible by 3");
else else
dialog::addBoolItem(XLAT("tuned"), param == loc(config_x, config_y), 'f'); dialog::addBoolItem(XLAT("select"), param == loc(config_x, config_y), 'f');
dialog::addBreak(100); dialog::addBreak(100);
dialog::addItem(XLAT("help"), SDLK_F1); dialog::addItem(XLAT("help"), SDLK_F1);
@ -488,6 +488,8 @@ namespace gp {
dialog::editNumber(config_x, 1, 10, 1, 1, "x", helptext()); dialog::editNumber(config_x, 1, 10, 1, 1, "x", helptext());
else if(uni == 'y') else if(uni == 'y')
dialog::editNumber(config_y, 1, 10, 1, 1, "y", helptext()); dialog::editNumber(config_y, 1, 10, 1, 1, "y", helptext());
else if(uni == '?' || sym == SDLK_F1 || uni == 'h' || uni == '2')
gotoHelp(helptext());
else if(doexiton(sym, uni)) else if(doexiton(sym, uni))
popScreen(); popScreen();
}; };