mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
fix: add special dm
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -105,13 +105,15 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
|||||||
if (currentDanmakuList != null) {
|
if (currentDanmakuList != null) {
|
||||||
for (DanmakuElem e in currentDanmakuList) {
|
for (DanmakuElem e in currentDanmakuList) {
|
||||||
if (e.mode == 7) {
|
if (e.mode == 7) {
|
||||||
_controller!.addDanmaku(
|
try {
|
||||||
SpecialDanmakuContentItem.fromList(
|
_controller!.addDanmaku(
|
||||||
DmUtils.decimalToColor(e.color),
|
SpecialDanmakuContentItem.fromList(
|
||||||
e.fontsize.toDouble(),
|
DmUtils.decimalToColor(e.color),
|
||||||
jsonDecode(e.content),
|
e.fontsize.toDouble(),
|
||||||
),
|
jsonDecode(e.content.replaceAll('\n', '\\n')),
|
||||||
);
|
),
|
||||||
|
);
|
||||||
|
} catch (_) {}
|
||||||
} else {
|
} else {
|
||||||
_controller!.addDanmaku(
|
_controller!.addDanmaku(
|
||||||
DanmakuContentItem(
|
DanmakuContentItem(
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: main
|
ref: main
|
||||||
resolved-ref: "233f3e2581cbe2dd4867effbd0c512ef6b340599"
|
resolved-ref: a9c804a0d1fc8f408c833a159b1395ecb8a55215
|
||||||
url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git"
|
url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.2.6"
|
version: "0.2.6"
|
||||||
|
|||||||
Reference in New Issue
Block a user