Verified Commit b02f83eb authored by Merathilis's avatar Merathilis
Browse files

bring ChatBubbles back to life! @Simpy

parent 7098d068
......@@ -23,7 +23,7 @@ function M:UpdateBubbleBorder()
if not str then return end
if E.private.general.chatBubbles == 'backdrop' then
backdrop:SetBackdropBorderColor(str:GetTextColor())
backdrop.backdrop:SetBackdropBorderColor(str:GetTextColor())
end
local name = self.Name and self.Name:GetText()
......@@ -84,25 +84,28 @@ end
local yOffset --Value set in M:LoadChatBubbles()
function M:SkinBubble(frame, backdrop)
local bubbleFont = LSM:Fetch('font', E.private.general.chatBubbleFont)
if backdrop then
backdrop:DisableDrawLayer("BORDER")
end
if backdrop.String then
backdrop.String:FontTemplate(bubbleFont, E.private.general.chatBubbleFontSize, E.private.general.chatBubbleFontOutline)
end
if E.private.general.chatBubbles == 'backdrop' then
if not backdrop.template then
backdrop:SetBackdrop()
backdrop:SetTemplate('Transparent', nil, true)
backdrop:CreateBackdrop('Transparent', nil, true)
end
elseif E.private.general.chatBubbles == 'backdrop_noborder' then
if not backdrop.noBorder then
backdrop:SetBackdrop()
backdrop.noBorder = backdrop:CreateTexture(nil, 'ARTWORK')
end
backdrop.noBorder:SetInside(frame, 4, 4)
backdrop.noBorder:SetColorTexture(unpack(E.media.backdropfadecolor))
elseif E.private.general.chatBubbles == 'nobackdrop' then
backdrop:SetBackdrop()
backdrop:DisableDrawLayer("BORDER")
backdrop.Tail:Hide()
end
if not frame.Name then
......
<Ui xmlns='http://www.blizzard.com/wow/ui/'>
<Script file='Misc.lua'/>
<Script file='DebugTools.lua'/>
<!--Script file='ChatBubbles.lua'/-->
<Script file='ChatBubbles.lua'/>
<Script file='RaidMarker.lua'/>
<Script file='Loot.lua'/>
<Script file='LootRoll.lua'/>
......
......@@ -242,7 +242,7 @@ end
function M:PLAYER_ENTERING_WORLD()
self:ForceCVars()
--self:ToggleChatBubbleScript()
self:ToggleChatBubbleScript()
end
--[[local function OnValueChanged(self, value)
......@@ -326,7 +326,7 @@ function M:Initialize()
self.Initialized = true
self:LoadRaidMarker()
self:LoadLootRoll()
--self:LoadChatBubbles()
self:LoadChatBubbles()
self:LoadLoot()
self:ToggleItemLevelInfo(true)
self:RegisterEvent('MERCHANT_SHOW')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment