1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 23:49:53 +00:00

fixed ESC not working in draw editor, and 'fill' showing incorrectly

This commit is contained in:
Zeno Rogue 2024-06-29 10:49:17 +02:00
parent edc173a538
commit cbf8167d8f

View File

@ -2386,7 +2386,7 @@ EX namespace mapeditor {
else if(freedraw) { else if(freedraw) {
dialog::addBoolItem_action("symmetry", texture::texturesym, '0'); dialog::addBoolItem_action("symmetry", texture::texturesym, '0');
if(drawing_tool) { if(drawing_tool) {
if(dtfill) if(!dtfill)
dialog::addBoolItem(XLAT("fill"), dtfill, 'f'); dialog::addBoolItem(XLAT("fill"), dtfill, 'f');
else else
dialog::addColorItem(XLAT("fill"), dtcolor, 'f'); dialog::addColorItem(XLAT("fill"), dtcolor, 'f');
@ -2947,6 +2947,7 @@ EX namespace mapeditor {
handlePanning(sym, uni); handlePanning(sym, uni);
dialog::handleNavigation(sym, uni); dialog::handleNavigation(sym, uni);
if(uni == SDLK_ESCAPE) popScreen();
if(uni == SETMOUSEKEY) { if(uni == SETMOUSEKEY) {
if(mousekey == newmousekey) if(mousekey == newmousekey)