feat: special danmaku by @My-Responsitories

Closes #91
Closes #219
Closes #394
Closes #602
Closes #613

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-05 16:32:23 +08:00
parent 08dc04f874
commit b02e6c04b9
8 changed files with 48 additions and 27 deletions

View File

@@ -12,14 +12,11 @@ class DmUtils {
}
static DanmakuItemType getPosition(int mode) {
DanmakuItemType type = DanmakuItemType.scroll;
if (mode >= 1 && mode <= 3) {
type = DanmakuItemType.scroll;
} else if (mode == 4) {
type = DanmakuItemType.bottom;
} else if (mode == 5) {
type = DanmakuItemType.top;
}
return type;
return switch (mode) {
4 => DanmakuItemType.bottom,
5 => DanmakuItemType.top,
7 => DanmakuItemType.special,
_ => DanmakuItemType.scroll,
};
}
}