Skip to content

Commit

Permalink
自己发的弹幕加框
Browse files Browse the repository at this point in the history
  • Loading branch information
GD-Slime committed May 27, 2024
1 parent 90c11d6 commit 3a0ba22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BiliLite.UWP/Pages/LiveDetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private void LiveRoomViewModelAddNewDanmu(object sender, DanmuMsgModel e)
}
try
{
m_danmakuController.AddLiveDanmaku(e.Text, false, e.DanmuColor.StrToColor());
m_danmakuController.AddLiveDanmaku(e.Text, (SettingService.Account.Logined && e.Uid.ToInt64() == SettingService.Account.UserID), e.DanmuColor.StrToColor());
}
catch (Exception ex)
{
Expand Down
1 change: 1 addition & 0 deletions src/BiliLite.UWP/Services/FrostMasterDanmakuController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public override void Load(IEnumerable danmakuList)
public override void Add(BiliDanmakuItem danmakuItem, bool owner)
{
var realDanmakuItem = m_mapper.Map<DanmakuItem>(danmakuItem);
if (owner) realDanmakuItem.HasBorder = true;
m_danmakuMaster.AddRealtimeDanmaku(realDanmakuItem, false);
}

Expand Down
2 changes: 1 addition & 1 deletion src/BiliLite.UWP/Services/NsDanmakuController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public override void Add(BiliDanmakuItem danmakuItem,bool owner)

public override void AddLiveDanmaku(string text, bool owner, Color color)
{
m_danmakuControl.AddLiveDanmu(text, false, color);
m_danmakuControl.AddLiveDanmu(text, owner, color);
}

public override void Pause()
Expand Down

0 comments on commit 3a0ba22

Please sign in to comment.