diff --git a/public/libs/control.js b/public/libs/control.js index f6e2b34..9ca2ed3 100644 --- a/public/libs/control.js +++ b/public/libs/control.js @@ -1833,6 +1833,7 @@ control.prototype.startReplay = function (list) { ////// 更改播放状态 ////// control.prototype.triggerReplay = function () { + console.log(core.dymCanvas.replay.canvas.style.width); if (core.status.replay.pausing) this.resumeReplay(); else this.pauseReplay(); }; @@ -4362,7 +4363,9 @@ control.prototype._resize_canvas = function (obj) { for (var name in core.dymCanvas) { var ctx = core.dymCanvas[name], canvas = ctx.canvas; - var ratio = canvas.hasAttribute('isHD') ? core.domStyle.ratio : 1; + var ratio = canvas.hasAttribute('isHD') + ? core.domStyle.ratio * devicePixelRatio + : 1; canvas.style.width = (canvas.width / ratio) * core.domStyle.scale + 'px'; canvas.style.height = diff --git a/public/libs/items.js b/public/libs/items.js index 28bc362..06ca34f 100644 --- a/public/libs/items.js +++ b/public/libs/items.js @@ -76,7 +76,8 @@ items.prototype.getItemEffectTip = function (itemId) { ////// 使用道具 ////// items.prototype.useItem = function (itemId, noRoute, callback) { - if (!this.canUseItem(itemId)) { + const ignore = ['I560', 'I559']; + if (!this.canUseItem(itemId) || ignore.includes(itemId)) { if (callback) callback(); return; } diff --git a/public/libs/ui.js b/public/libs/ui.js index 4ceb8f6..07c9b37 100644 --- a/public/libs/ui.js +++ b/public/libs/ui.js @@ -3547,6 +3547,15 @@ ui.prototype._drawViewMaps_buildData = function (index, x, y) { ////// 绘制道具栏 ////// ui.prototype._drawToolbox = function (index) {}; +////// 获得所有应该在道具栏显示的某个类型道具 ////// +ui.prototype.getToolboxItems = function (cls) { + return Object.keys(core.status.hero.items[cls] || {}) + .filter(function (id) { + return !core.material.items[id].hideInToolbox; + }) + .sort(); +}; + ////// 绘制装备界面 ////// ui.prototype._drawEquipbox = function (index) {}; diff --git a/public/project/items.js b/public/project/items.js index 1764290..0c2899a 100644 --- a/public/project/items.js +++ b/public/project/items.js @@ -1255,6 +1255,6 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "name": "百科全书", "canUseItemEffect": "true", "text": "一个包含游戏中所有功能详细说明的百科全书,可以查看游戏中所有的功能", - "useItemEffect": "if (!core.isPlaying()) core.plugin.descOpened.value = true;" + "useItemEffect": "if (!core.isReplaying()) core.plugin.descOpened.value = true;" } } \ No newline at end of file diff --git a/src/ui/chapter.vue b/src/ui/chapter.vue index c03cb35..70c0dfe 100644 --- a/src/ui/chapter.vue +++ b/src/ui/chapter.vue @@ -55,7 +55,7 @@ onMounted(async () => { return; } - if (time >= 4000) { + if (time >= 4050) { chapterShowed.value = false; ani.ticker.destroy(); }