1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-07 10:52:23 +00:00

color by sides; canvas coloring selectable from the texture menu

This commit is contained in:
Zeno Rogue
2018-08-20 15:49:17 +02:00
parent cd91148459
commit a4ced4a504
4 changed files with 49 additions and 5 deletions

View File

@@ -1059,6 +1059,20 @@ void showMenu() {
dialog::addItem(XLAT("paint a new texture"), 'n');
#endif
dialog::addSelItem(XLAT("precision"), its(config.gsplits), 'P');
dialog::addBoolItem(XLAT("Canvas"), specialland == laCanvas, 'X');
dialog::add_action([] () {
bool inwhite = specialland == laCanvas && patterns::whichCanvas == 'g' && patterns::canvasback == 0xFFFFFF;
if(inwhite)
pushScreen(patterns::showPrePattern);
else {
stop_game();
firstland = specialland = laCanvas;
patterns::whichCanvas = 'g';
patterns::canvasback = 0xFFFFFF;
start_game();
}
});
}
if(config.tstate == tsAdjusting) {