- {{ button.key.up }}
+ {{ (button as KeySteeringWheel).key.up }}
- {{ button.key.left }}
+ {{ (button as KeySteeringWheel).key.left }}
- {{ button.key.right }}
+ {{ (button as KeySteeringWheel).key.right }}
- {{ button.key.down }}
+ {{ (button as KeySteeringWheel).key.down }}
@@ -131,8 +99,8 @@ function refreshKeyMappingButton() {
v-else
class="mask-button"
:style="{
- left: button.x + 'px',
- top: button.y - 14 + 'px',
+ left: button.posX + 'px',
+ top: button.posY - 14 + 'px',
}"
>
{{ button.key }}
@@ -183,6 +151,12 @@ function refreshKeyMappingButton() {
display: flex;
justify-content: center;
align-items: center;
+ z-index: 1;
+ position: absolute;
+ left: 70px;
+ top: 30px;
+ right: 0;
+ bottom: 0;
.content {
width: 80%;
diff --git a/src/components/keyboard/KeyBoard.vue b/src/components/keyboard/KeyBoard.vue
index b9a4d0a..37aa358 100644
--- a/src/components/keyboard/KeyBoard.vue
+++ b/src/components/keyboard/KeyBoard.vue
@@ -4,19 +4,22 @@ import KeyInfo from "./KeyInfo.vue";
import KeySetting from "./KeySetting.vue";
import KeyCommon from "./KeyCommon.vue";
import KeySteeringWheel from "./KeySteeringWheel.vue";
+import KeySkill from "./KeySkill.vue";
import { KeySteeringWheel as KeyMappingSteeringWheel } from "../../keyMappingConfig";
import { useGlobalStore } from "../../store/global";
import { useDialog, useMessage } from "naive-ui";
import { onBeforeRouteLeave } from "vue-router";
+import KeyObservation from "./KeyObservation.vue";
// TODO 普通按钮 KeyMacro,KeyCancelSkill,KeyTap
-// 单个键,KeyMacro有输入框
+// KeyMacro有输入框
// TODO 方向轮盘按钮 KeySteeringWheel
-// 有四个按钮+offset
+// offset
// TODO 技能按钮 KeyDirectionalSkill,KeyDirectionlessSkill,KeyTriggerWhenPressedSkill(有区分directional)
-// 单个键,靠两个flag来区分这四种情况,还有range或time要视情况
+// 靠两个flag来区分这四种情况,还有range或time要视情况
// TODO 添加视野按钮 KeyObservation
-// 单个键,有灵敏度scale
+// 有灵敏度scale
+
// TODO 按钮齿轮图标可修改、删除
// TODO 右键空白区域添加按键
// TODO 设置界面添加本地数据编辑器(类似utools)
@@ -190,6 +193,7 @@ onBeforeRouteLeave(() => {