全键盘操作

This commit is contained in:
ckcz123 2017-12-26 16:58:59 +08:00
parent dcc8eeb0e7
commit 92c4a2e84d
2 changed files with 4 additions and 3 deletions

View File

@ -1153,7 +1153,7 @@ events.prototype.keyDownSwitchs = function (keycode) {
} }
if (keycode==40) { if (keycode==40) {
core.status.event.selection++; core.status.event.selection++;
if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length; if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length-1;
core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices); core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices);
} }
} }
@ -1230,7 +1230,7 @@ events.prototype.keyDownSettings = function (keycode) {
} }
if (keycode==40) { if (keycode==40) {
core.status.event.selection++; core.status.event.selection++;
if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length; if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length-1;
core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices); core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices);
} }
} }
@ -1295,7 +1295,7 @@ events.prototype.keyDownSyncSave = function (keycode) {
} }
if (keycode==40) { if (keycode==40) {
core.status.event.selection++; core.status.event.selection++;
if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length; if (core.status.event.selection>=choices.length) core.status.event.selection=choices.length-1;
core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices); core.ui.drawChoices(core.status.event.ui.text, core.status.event.ui.choices);
} }
} }

View File

@ -2,6 +2,7 @@
=== 全局 === === 全局 ===
[↑][↓][←][→] 移动勇士 [↑][↓][←][→] 移动勇士
[CTRL] 跳过对话
[X] 打开/关闭怪物手册 [X] 打开/关闭怪物手册
[G] 打开/关闭楼层传送器 [G] 打开/关闭楼层传送器
[S] 打开/关闭存档页面 [S] 打开/关闭存档页面