mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-18 05:04:30 +08:00
refactor: KeyCode 移动至 @motajs/client-base
This commit is contained in:
1 parent
693e531639
commit
50292e2d8a
18 files changed
+23
-15
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
mainSetting,
|
||||
settingStorage
|
||||
} from './main/setting';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import '@/plugin';
|
||||
import './package';
|
||||
import { CustomToolbar } from './main/custom/toolbar';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Hotkey, HotkeyData } from '../custom/hotkey';
|
||||
import type { HeroMover, IMoveController } from '@/game/state/move';
|
||||
import { Ticker } from 'mutate-animate';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import {
|
||||
deleteWith,
|
||||
generateBinary,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EventEmitter, Listener } from '@motajs/legacy-common';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { gameKey } from './hotkey';
|
||||
import { unwarpBinary } from './hotkey';
|
||||
import { deleteWith, flipBinary } from '@motajs/legacy-ui';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { gameKey, HotkeyJSON } from '../custom/hotkey';
|
||||
import {
|
||||
openDanmakuPoster,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Keyboard } from '../custom/keyboard';
|
||||
|
||||
const qweKey = new Keyboard('qwe'); // 字母键盘,A-Z
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client';
|
||||
import { KeyCode, KeyCodeUtils } from '@motajs/client-base';
|
||||
import { CustomToolbar } from '../custom/toolbar';
|
||||
import BoxAnimate from '@/components/boxAnimate.vue';
|
||||
import { checkAssist, unwarpBinary } from '../custom/hotkey';
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import type { MotaSetting, SettingDisplayer } from '@/core/main/setting';
|
||||
import type { GameStorage } from '@/core/main/storage';
|
||||
import type { DamageEnemy, EnemyCollection } from './enemy/damage';
|
||||
import type { specials } from './enemy/special';
|
||||
import type { KeyCode } from '@motajs/client';
|
||||
import type { KeyCode } from '@motajs/client-base';
|
||||
import type { Ref } from 'vue';
|
||||
import type * as battle from './enemy/battle';
|
||||
import type * as hero from './state/hero';
|
||||
|
||||
@@ -22,7 +22,7 @@ import { gameKey } from '@/core/main/custom/hotkey';
|
||||
import { generateKeyboardEvent } from '@/core/main/custom/keyboard';
|
||||
import { transitioned } from '../use';
|
||||
import { linear } from 'mutate-animate';
|
||||
import { KeyCode } from '@motajs/client';
|
||||
import { KeyCode } from '@motajs/client-base';
|
||||
import { Progress } from '../components/misc';
|
||||
|
||||
interface ToolbarProps extends DefaultProps {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@motajs/user",
|
||||
"dependencies": {
|
||||
"@motajs/client": "workspace:*",
|
||||
"@motajs/client-base": "workspace:*",
|
||||
"@motajs/common": "workspace:*",
|
||||
"@motajs/render": "workspace:*",
|
||||
"@motajs/system": "workspace:*",
|
||||
|
||||
Reference in new issue
Block a user