From 29f331e62801a0079b26be7d14ae868ef704dc08 Mon Sep 17 00:00:00 2001 From: mtsgi Date: Sat, 23 Nov 2024 14:08:57 +0900 Subject: [PATCH] =?UTF-8?q?speed,=20orbit=20=E5=8F=AF=E8=A6=96=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 ++ src/components/Note.vue | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/src/App.vue b/src/App.vue index b9c1e04..a4609ee 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1849,6 +1849,8 @@ export default Vue.extend< transition: 0.1s all ease; strong { color: #a0a0a0; + &.speed { color: #f08080; } + &.orbit { color: #87cefa; } } input[type="checkbox"] { position: absolute; diff --git a/src/components/Note.vue b/src/components/Note.vue index 991ce92..7f20fe9 100644 --- a/src/components/Note.vue +++ b/src/components/Note.vue @@ -81,6 +81,9 @@ {{ getError }} + x{{ noteSpeed }} + >{{ noteOrbit }} + BEAT {{ note.option[0] }} {{ note.position }}/{{ note.split }} SpObj @@ -355,6 +358,44 @@ export default Vue.extend({ } return null; }, + noteSpeed(): number { + // TAP, ロング, 音札 + if ([1, 2, 5].includes(this.drawType)) { + if (this.drawOptions[0]) { return Number(this.drawOptions[0]) } + } + // 左右フリック + else if ([3, 4].includes(this.drawType)) { + if (this.drawOptions[3]) { return Number(this.drawOptions[3]) } + } + // テクスチャ + else if (this.drawType === 94) { + if (this.drawOptions[5]) { return Number(this.drawOptions[5]) } + } + // 区切り線 + else if (this.drawType === 95) { + if (this.drawOptions[1]) { return Number(this.drawOptions[1]) } + } + return 1; + }, + noteOrbit(): number { + // TAP, ロング + if ([1, 2].includes(this.drawType)) { + if (this.drawOptions[1]) { return Number(this.drawOptions[1]) } + } + // 左右フリック + else if ([3, 4].includes(this.drawType)) { + if (this.drawOptions[4]) { return Number(this.drawOptions[4]) } + } + // テクスチャ + else if (this.drawType === 94) { + if (this.drawOptions[6]) { return Number(this.drawOptions[6]) } + } + // 区切り線 + else if (this.drawType === 95) { + if (this.drawOptions[2]) { return Number(this.drawOptions[2]) } + } + return 0; + }, /** 描画用のノートタイプ(ダミー時は擬態対象) */ drawType (): number { if (this.note.type === 90) {