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

filedialog and infix moved from mapeditor.cpp to dialogs.cpp

This commit is contained in:
Zeno Rogue
2017-12-09 04:01:56 +01:00
parent 635d1f911c
commit 4fa764c175
6 changed files with 201 additions and 193 deletions

View File

@@ -252,12 +252,8 @@ void showTextureMenu() {
dialog::handleNavigation(sym, uni);
if(uni == 'r')
pushScreen(patterns::showPattern);
else if(uni == 'f') {
mapeditor::cfileptr = &texturename;
mapeditor::filecaption = XLAT("texture to load:");
mapeditor::cfileext = ".png";
pushScreen(mapeditor::drawFileDialog);
}
else if(uni == 'f')
dialog::openFileDialog(texturename, XLAT("texture to load:"), ".png");
else if(uni == 'm') {
texture_on = !texture_on;
if(texture_on) perform_mapping();