fix:系统设置改为会显示,但显示新版设置界面

This commit is contained in:
ShakeFlower 2025-04-19 13:34:54 +08:00
parent da209cdbac
commit f581ba3299
3 changed files with 15 additions and 14 deletions

View File

@ -2526,38 +2526,38 @@ actions.prototype._clickSettings = function (x, y) {
var selection = y - topIndex;
core.status.event.selection = selection;
switch (selection) {
// case 0:
// core.status.event.selection = 0;
// core.playSound('确定');
// core.ui._drawSwitchs();
// break;
case 0:
core.status.event.selection = 0;
core.playSound('确定');
core.tryUseItem('setting');
break;
case 1:
// core.playSound('确定');
core.ui._drawKeyBoard();
break;
case 1:
case 2:
// core.playSound('确定');
core.clearUI();
core.ui._drawViewMaps();
break;
case 2:
case 3:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawNotes();
break;
case 3:
case 4:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawSyncSave();
break;
case 4:
case 5:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawGameInfo();
break;
case 5:
return core.confirmRestart();
case 6:
return core.confirmRestart();
case 7:
core.playSound('取消');
core.ui.closePanel();
break;

View File

@ -3807,8 +3807,10 @@ events.prototype.tryUseItem = function (itemId) {
return core.ui._drawCenterFly();
}
if (core.canUseItem(itemId)) {
const noRouteList = ['setting'];
// setting使用不计入录像。弹幕机postman需要计入因为它带有后续选项
core.ui.closePanel();
core.useItem(itemId);
core.useItem(itemId, noRouteList.includes(itemId));
} else {
core.playSound('操作失败');
core.drawTip("当前无法使用" + core.material.items[itemId].name, itemId);

View File

@ -2008,8 +2008,7 @@ ui.prototype._drawSwitchs_action = function () {
ui.prototype._drawSettings = function () {
core.status.event.id = 'settings';
this.drawChoices(null, [
// "系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏"
"虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏"
"系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏"
]);
}