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:
14
textures.cpp
14
textures.cpp
@@ -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) {
|
||||
|
Reference in New Issue
Block a user