mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 04:45:54 +08:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,6 +342,9 @@ class GStorage {
|
||||
static bool get showVipDanmaku =>
|
||||
GStorage.setting.get(SettingBoxKey.showVipDanmaku, defaultValue: true);
|
||||
|
||||
static bool get showSpecialDanmaku => GStorage.setting
|
||||
.get(SettingBoxKey.showSpecialDanmaku, defaultValue: true);
|
||||
|
||||
static bool get mergeDanmaku =>
|
||||
GStorage.setting.get(SettingBoxKey.mergeDanmaku, defaultValue: false);
|
||||
|
||||
@@ -695,6 +698,7 @@ class SettingBoxKey {
|
||||
refreshDragPercentage = 'refreshDragPercentage',
|
||||
refreshDisplacement = 'refreshDisplacement',
|
||||
showVipDanmaku = 'showVipDanmaku',
|
||||
showSpecialDanmaku = 'showSpecialDanmaku',
|
||||
mergeDanmaku = 'mergeDanmaku',
|
||||
showHotRcmd = 'showHotRcmd',
|
||||
audioNormalization = 'audioNormalization',
|
||||
|
||||
Reference in New Issue
Block a user