From d9960dd9bd6ea5ccd4def8ff3807f4ff6c465699 Mon Sep 17 00:00:00 2001 From: Mikhail Osher Date: Fri, 16 Jul 2021 21:41:33 +0300 Subject: [PATCH] Add MikScrollingBattleText announcements destination support --- Modules/Announcements.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/Announcements.lua b/Modules/Announcements.lua index eaa14cb..9c66f17 100644 --- a/Modules/Announcements.lua +++ b/Modules/Announcements.lua @@ -177,9 +177,9 @@ function Announcements:Send(msg, throttle, color) RaidNotice_AddMessage(RaidBossEmoteFrame, msg, color) elseif (dest == "fct" and IsAddOnLoaded("Blizzard_CombatText")) then CombatText_AddMessage(msg, nil, color.r, color.g, color.b, "crit", 1) - --[[elseif (dest == "msbt" and IsAddOnLoaded("MikScrollingBattleText")) then - MikSBT.DisplayMessage(msg, MikSBT.DISPLAYTYPE_NOTIFICATION, true, color.r * 255, color.g * 255, color.b * 255) - elseif (dest == "sct" and IsAddOnLoaded("sct")) then + elseif (dest == "msbt" and IsAddOnLoaded("MikScrollingBattleText")) then + MikSBT.Animations.DisplayMessage(msg, MikSBT.DISPLAYTYPE_NOTIFICATION, true, color.r * 255, color.g * 255, color.b * 255) + --[[elseif (dest == "sct" and IsAddOnLoaded("sct")) then SCT:DisplayText(msg, color, true, "event", 1) elseif (dest == "parrot" and IsAddOnLoaded("parrot")) then Parrot:ShowMessage(msg, "Notification", true, color.r, color.g, color.b)--]] @@ -211,6 +211,7 @@ function Announcements:GetOptions() ["party"] = L["Party"], ["rw"] = L["Raid Warning"], ["fct"] = L["Blizzard's Floating Combat Text"], + ["msbt"] = L["MikScrollingBattleText"], } return { @@ -281,4 +282,4 @@ function Announcements:GetOptions() values = destValues, }), } -end \ No newline at end of file +end