Skip to content

Commit 3a597f5

Browse files
committed
fix: mod 选项自定义排序不工作
1 parent 7ccfbdf commit 3a597f5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed
6.14 KB
Binary file not shown.

MaiChartManager/Front/src/components/ModManager/AquaMaiConfigurator.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export default defineComponent({
157157
return configSort[big!].includes(it.path!);
158158
}
159159
return it.path!.split('.')[0] === big && !it.attribute!.exampleHidden;
160+
}).sort((a, b) => {
161+
if (!props.useNewSort) return 0;
162+
return configSort[big!].indexOf(a.path!) - configSort[big!].indexOf(b.path!);
160163
}).map((section) => {
161164
return <ConfigSection key={section.path!} section={section}
162165
entryStates={props.config.entryStates!}

MaiChartManager/Front/src/components/ModManager/configSort.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
- GameSystem.Assets.Fonts
3232
- Fancy.CustomLogo
3333
- Fancy.CustomPlaceName
34-
- Fancy.CustomSkins
3534
- Fancy.CustomVersionString
35+
- Fancy.CustomCreditsString
3636
- Fancy.RandomBgm
37+
- Fancy.CustomSkins
38+
- Fancy.CustomButton
3739
- Fancy.DemoMaster
3840
- Fancy.GamePlay.AlignCircleSlideJudgeDisplay
3941
- Fancy.GamePlay.SlideArrowAnimation

MaiChartManager/Front/src/store/refs.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import {computed, ref} from "vue";
1+
import { computed, ref } from "vue";
22
import { AppVersionResult, ConfigDto, GameModInfo, GenreXml, GetAssetsDirsResult, MusicXmlWithABJacket, VersionXml } from "@/client/apiGen";
33
import api from "@/client/api";
4-
import {captureException} from "@sentry/vue";
4+
import { captureException } from "@sentry/vue";
55
import posthog from "posthog-js";
6-
import {useStorage} from "@vueuse/core";
6+
import { useStorage } from "@vueuse/core";
7+
import deniedOgg from "@/assets/Denied.ogg";
78

89
export const error = ref();
910
export const errorId = ref<string>();
@@ -37,6 +38,7 @@ export const globalCapture = async (err: any, context: string) => {
3738
errorId: errorId.value,
3839
message: error.value?.error?.message || error.value?.error?.toString() || error.value?.message || error.value?.toString(),
3940
})
41+
new Audio(deniedOgg).play();
4042
}
4143

4244
export const showNeedPurchaseDialog = ref(false);

0 commit comments

Comments
 (0)