1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

'kills' key changed to '/' to remove conflict with searching

This commit is contained in:
Zeno Rogue 2017-08-18 02:47:10 +02:00
parent db290e479a
commit 0df6d78c0b

View File

@ -155,13 +155,13 @@ void showPickScores() {
displayButton(x, y, pickscore_options[i].first, 1000+i, 0);
}
displayButton(vid.xres/2, vid.yres - vid.fsize*2, "kills", 'm', 8);
displayButton(vid.xres/2, vid.yres - vid.fsize*2, "kills", '/', 8);
scoredisplay = d;
mouseovers = mapeditor::infix;
keyhandler = [] (int sym, int uni) {
if(uni == 'm') monsterpage = !monsterpage; else
if(uni == '/' && mapeditor::infix == "") monsterpage = !monsterpage; else
if(uni >= '1' && uni <= '9') uni = uni + 1000 - '1';
else if(uni >= 1000 && uni < 1000 + size(pickscore_options)) {
scoredisplay = pickscore_options[uni - 1000].second;