1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-24 17:51:22 +00:00

texture:: 'paint textures' in main menu now starts Canvas automatically

This commit is contained in:
Zeno Rogue
2019-01-03 15:16:12 +01:00
parent cd2fa33bbc
commit 9ccf82d9dc
3 changed files with 23 additions and 19 deletions

View File

@@ -1056,6 +1056,17 @@ string texturehelp =
"(these probably work best with the 'large picture' setting in geometry selection). "
"Again, tesselations can have their geometry changed.\n\n";
void start_editor() {
addMessage("white");
if(config.data.whitetexture() && config.data.loadTextureGL()) {
config.tstate = config.tstate_max = tsActive;
config.perform_mapping();
config.finish_mapping();
mapeditor::initdraw(cwt.at);
pushScreen(mapeditor::showDrawEditor);
}
}
void showMenu() {
cmode = sm::SIDE | sm::MAYDARK | sm::DIALOG_STRICT_X;
gamescreen(0);
@@ -1215,16 +1226,7 @@ void showMenu() {
pushScreen(mapeditor::showDrawEditor);
}
else if(uni == 'n' && config.tstate == tsOff) {
addMessage("white");
if(config.data.whitetexture() && config.data.loadTextureGL()) {
config.tstate = config.tstate_max = tsActive;
config.perform_mapping();
config.finish_mapping();
mapeditor::initdraw(cwt.at);
pushScreen(mapeditor::showDrawEditor);
}
}
else if(uni == 'n' && config.tstate == tsOff) start_editor();
#endif
else if(uni == 't' && config.tstate == tsOff)