mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
修复录像问题
This commit is contained in:
parent
dbf7cb90f5
commit
38dbc214ac
@ -1833,6 +1833,7 @@ control.prototype.startReplay = function (list) {
|
|||||||
|
|
||||||
////// 更改播放状态 //////
|
////// 更改播放状态 //////
|
||||||
control.prototype.triggerReplay = function () {
|
control.prototype.triggerReplay = function () {
|
||||||
|
console.log(core.dymCanvas.replay.canvas.style.width);
|
||||||
if (core.status.replay.pausing) this.resumeReplay();
|
if (core.status.replay.pausing) this.resumeReplay();
|
||||||
else this.pauseReplay();
|
else this.pauseReplay();
|
||||||
};
|
};
|
||||||
@ -4362,7 +4363,9 @@ control.prototype._resize_canvas = function (obj) {
|
|||||||
for (var name in core.dymCanvas) {
|
for (var name in core.dymCanvas) {
|
||||||
var ctx = core.dymCanvas[name],
|
var ctx = core.dymCanvas[name],
|
||||||
canvas = ctx.canvas;
|
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.style.width =
|
||||||
(canvas.width / ratio) * core.domStyle.scale + 'px';
|
(canvas.width / ratio) * core.domStyle.scale + 'px';
|
||||||
canvas.style.height =
|
canvas.style.height =
|
||||||
|
@ -76,7 +76,8 @@ items.prototype.getItemEffectTip = function (itemId) {
|
|||||||
|
|
||||||
////// 使用道具 //////
|
////// 使用道具 //////
|
||||||
items.prototype.useItem = function (itemId, noRoute, callback) {
|
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();
|
if (callback) callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3547,6 +3547,15 @@ ui.prototype._drawViewMaps_buildData = function (index, x, y) {
|
|||||||
////// 绘制道具栏 //////
|
////// 绘制道具栏 //////
|
||||||
ui.prototype._drawToolbox = function (index) {};
|
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) {};
|
ui.prototype._drawEquipbox = function (index) {};
|
||||||
|
|
||||||
|
@ -1255,6 +1255,6 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"name": "百科全书",
|
"name": "百科全书",
|
||||||
"canUseItemEffect": "true",
|
"canUseItemEffect": "true",
|
||||||
"text": "一个包含游戏中所有功能详细说明的百科全书,可以查看游戏中所有的功能",
|
"text": "一个包含游戏中所有功能详细说明的百科全书,可以查看游戏中所有的功能",
|
||||||
"useItemEffect": "if (!core.isPlaying()) core.plugin.descOpened.value = true;"
|
"useItemEffect": "if (!core.isReplaying()) core.plugin.descOpened.value = true;"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -55,7 +55,7 @@ onMounted(async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (time >= 4000) {
|
if (time >= 4050) {
|
||||||
chapterShowed.value = false;
|
chapterShowed.value = false;
|
||||||
ani.ticker.destroy();
|
ani.ticker.destroy();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user