.
This commit is contained in:
parent
17db7a81b9
commit
9f81251570
@ -9175,8 +9175,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
const type = checkAudioType(data);
|
||||
if (type === "") {
|
||||
console.error(
|
||||
"Unknown audio type. Header: '" +
|
||||
[...toCheck]
|
||||
"Unknown audio type. Header: '" + [...toCheck]
|
||||
.map((v) => v.toString().padStart(2, "0"))
|
||||
.join(" ")
|
||||
.toUpperCase() +
|
||||
@ -9361,8 +9360,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
this.audioType = checkAudioType(data);
|
||||
if (!this.audioType) {
|
||||
console.error(
|
||||
"Unknown audio type. Header: '" +
|
||||
[...toCheck]
|
||||
"Unknown audio type. Header: '" + [...toCheck]
|
||||
.map((v) => v.toString(16).padStart(2, "0"))
|
||||
.join(" ")
|
||||
.toUpperCase() +
|
||||
@ -9792,7 +9790,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
this.gain = this.ac.createGain();
|
||||
this.gain.connect(this.ac.destination);
|
||||
this.audioRoutes = new Map();
|
||||
/*const func = () => {
|
||||
const func = () => {
|
||||
this.ac.resume();
|
||||
document.body.removeEventListener("mousedown", func);
|
||||
document.body.removeEventListener("touchstart", func);
|
||||
@ -9800,7 +9798,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
};
|
||||
document.body.addEventListener("mousedown", func, { capture: true });
|
||||
document.body.addEventListener("touchstart", func, { capture: true });
|
||||
document.body.addEventListener("keydown", func, { capture: true });*/
|
||||
document.body.addEventListener("keydown", func, { capture: true });
|
||||
}
|
||||
/**
|
||||
* 解码音频数据
|
||||
@ -10848,7 +10846,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
core.stopSound();
|
||||
core.doAction();
|
||||
};
|
||||
},
|
||||
},
|
||||
"怪物碎裂特效": function () {
|
||||
// 在此增加新插件
|
||||
// -------------------- 安装说明 -------------------- //
|
||||
@ -17123,7 +17121,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
[x + w, y + h],
|
||||
];
|
||||
};
|
||||
const inRect = ([x, y], [[sx, sy], [dx, dy]]) => {
|
||||
const inRect = ([x, y], [
|
||||
[sx, sy],
|
||||
[dx, dy]
|
||||
]) => {
|
||||
return sx <= x && x <= dx && sy <= y && y <= dy;
|
||||
};
|
||||
const pos = [px, py];
|
||||
@ -17698,9 +17699,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
text,
|
||||
150,
|
||||
posy - 30,
|
||||
page === this.selection[0] && i === this.selection[1]
|
||||
? "#FFFFFF"
|
||||
: "#444444",
|
||||
page === this.selection[0] && i === this.selection[1] ?
|
||||
"#FFFFFF" :
|
||||
"#444444",
|
||||
"#000000",
|
||||
6,
|
||||
core.ui._buildFont(66, true)
|
||||
@ -17898,9 +17899,9 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
text,
|
||||
950,
|
||||
posy - 30,
|
||||
page === this.selection[0] && i === this.selection[1]
|
||||
? "#FFFFFF"
|
||||
: "#444444",
|
||||
page === this.selection[0] && i === this.selection[1] ?
|
||||
"#FFFFFF" :
|
||||
"#444444",
|
||||
"#000000",
|
||||
6,
|
||||
core.ui._buildFont(66, true)
|
||||
@ -18100,7 +18101,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
}
|
||||
});
|
||||
};
|
||||
},
|
||||
},
|
||||
"横屏切换": function () {
|
||||
// 在此增加新插件
|
||||
this.triggerFullscreen = async function (full) {
|
||||
|
Loading…
Reference in New Issue
Block a user