Compare commits

...

2 Commits

Author SHA1 Message Date
13e08b122f fix(mt0): fix some schemes in MT0
修复0F梅障第二次展示不同的问题
修复0F仙子出现时缺少动画问题
修复0F仙子出现时莫名消失又突然出现的问题
显示新道具现在将强制显示在中间
2022-11-13 00:58:49 +13:00
3360d2f37b fix(plugin): showValues can be used, fix npcnan.png and npcnv.png 2022-11-13 00:32:32 +13:00
4 changed files with 558 additions and 491 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -437,6 +437,97 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
}
return config;
}
core.ui._drawSettings = function () {
core.status.event.id = 'settings';
this.drawChoices(null, [
"系统设置", "虚拟键盘", "浏览地图", "存档笔记", "同步存档", "游戏信息", "返回标题", "返回游戏", "数值显示: " + (core.getFlag("itemDetail") ? "[ON]" : "[OFF]")
]);
}
core.actions._clickSettings = function (x, y) {
if (this._out(x)) return;
var choices = core.status.event.ui.choices;
var topIndex = this._getChoicesTopIndex(choices.length);
if (y >= topIndex && y < topIndex + choices.length) {
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 1:
// core.playSound('确定');
core.ui._drawKeyBoard();
break;
case 2:
// core.playSound('确定');
core.clearUI();
core.ui._drawViewMaps();
break;
case 3:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawNotes();
break;
case 4:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawSyncSave();
break;
case 5:
core.status.event.selection = 0;
core.playSound('确定');
core.ui._drawGameInfo();
break;
case 6:
return core.confirmRestart();
case 7:
core.playSound('取消');
core.ui.closePanel();
break;
case 8:
core.playSound('确定');
core.setFlag("itemDetail", !core.getFlag("itemDetail"));
core.getItemDetail();
core.ui.closePanel();
break;
}
}
return;
}
////// 获得某个物品 //////
core.events.getItem = function (id, num, x, y, isGentleClick, callback) {
if (num == null) num = 1;
var itemCls = core.material.items[id].cls;
core.removeBlock(x, y);
core.items.getItemEffect(id, num);
var text = '获得 ' + core.material.items[id].name;
if (num > 1) text += "x" + num;
if (itemCls === 'items' && num == 1) text += core.items.getItemEffectTip(id);
core.drawTip(text, id);
// --- 首次获得道具的提示
if (!core.hasFlag("__itemHint__")) core.setFlag("__itemHint__", []);
var itemHint = core.getFlag("__itemHint__");
if (core.flags.itemFirstText && itemHint.indexOf(id) < 0 && itemCls != 'items') {
var hint = core.material.items[id].text || "该道具暂无描述";
try {
hint = core.replaceText(hint);
} catch (e) { }
if (!core.status.event.id || core.status.event.id == 'action') {
core.insertAction("\t[" + core.material.items[id].name + "," + id + "]\b[center]" + hint + "\n"
+ (id.endsWith('Key') ? "(钥匙类道具,遇到对应的门时自动打开)"
: itemCls == 'tools' ? "消耗类道具请按T在道具栏使用"
: itemCls == 'constants' ? "永久类道具请按T在道具栏使用"
: itemCls == 'equips' ? "装备类道具请按Q在装备栏进行装备" : ""));
}
itemHint.push(id);
}
this.afterGetItem(id, x, y, isGentleClick);
if (callback) callback();
}
},
"drawLight": function () {