mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-02-28 17:37:07 +08:00
fix: 录像按键
This commit is contained in:
parent
ebcc0bcfe5
commit
83ba5b0e65
@ -253,12 +253,6 @@ actions.prototype._sys_onkeyUp_replay = function (e) {
|
|||||||
else if (e.keyCode == 78)
|
else if (e.keyCode == 78)
|
||||||
// N
|
// N
|
||||||
core.stepReplay();
|
core.stepReplay();
|
||||||
else if (e.keyCode == 84)
|
|
||||||
// T
|
|
||||||
core.control._replay_toolbox();
|
|
||||||
else if (e.keyCode == 81)
|
|
||||||
// Q_sys_onkeyUp
|
|
||||||
core.control._replay_equipbox();
|
|
||||||
else if (e.keyCode == 66)
|
else if (e.keyCode == 66)
|
||||||
// B
|
// B
|
||||||
core.ui._drawStatistics();
|
core.ui._drawStatistics();
|
||||||
|
@ -228,9 +228,9 @@ export class Hotkey extends EventEmitter<HotkeyEvent> {
|
|||||||
// 检查全局启用情况
|
// 检查全局启用情况
|
||||||
if (!this.enabled) return false;
|
if (!this.enabled) return false;
|
||||||
const when = this.conditionMap.get(this.scope)!;
|
const when = this.conditionMap.get(this.scope)!;
|
||||||
|
if (!when()) return false;
|
||||||
if (type === 'down') this.checkPress(key);
|
if (type === 'down') this.checkPress(key);
|
||||||
else this.checkPressEnd(key);
|
else this.checkPressEnd(key);
|
||||||
if (!when()) return false;
|
|
||||||
const toEmit = this.keyMap.get(key);
|
const toEmit = this.keyMap.get(key);
|
||||||
if (!toEmit) return false;
|
if (!toEmit) return false;
|
||||||
|
|
||||||
|
@ -443,7 +443,10 @@ gameKey.use(mainScope);
|
|||||||
// ----- Realization
|
// ----- Realization
|
||||||
|
|
||||||
gameKey
|
gameKey
|
||||||
.when(() => !core.status.lockControl && !core.isMoving())
|
.when(
|
||||||
|
() =>
|
||||||
|
!core.status.lockControl && !core.isMoving() && !core.isReplaying()
|
||||||
|
)
|
||||||
.realize('book', () => {
|
.realize('book', () => {
|
||||||
core.openBook(true);
|
core.openBook(true);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user