mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -1,5 +1,10 @@
|
||||
enum ActionType { skip, mute, full, poi }
|
||||
enum ActionType {
|
||||
skip('跳过'),
|
||||
mute('静音'),
|
||||
full('整个视频'),
|
||||
poi('精彩时刻'),
|
||||
;
|
||||
|
||||
extension ActionTypeExt on ActionType {
|
||||
String get title => const ['跳过', '静音', '整个视频', '精彩时刻'][index];
|
||||
final String title;
|
||||
const ActionType(this.title);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
enum SkipType { alwaysSkip, skipOnce, skipManually, showOnly, disable }
|
||||
enum SkipType {
|
||||
alwaysSkip('总是跳过'),
|
||||
skipOnce('跳过一次'),
|
||||
skipManually('手动跳过'),
|
||||
showOnly('仅显示'),
|
||||
disable('禁用'),
|
||||
;
|
||||
|
||||
extension SkipTypeExt on SkipType {
|
||||
String get title => const ['总是跳过', '跳过一次', '手动跳过', '仅显示', '禁用'][index];
|
||||
final String title;
|
||||
const SkipType(this.title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user