View Single Post
09-20-20, 06:27 PM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
As Xrystal noted, you need to adjust the TH frame from the Blizzard addon, not one you've created.

Lua Code:
  1. local function main(self, event, ...)
  2.     local addon = ... -- Check for the addon that has just loaded
  3.     if addon ~= "Blizzard_TalkingHeadUI" then return end -- Not the TH addon so scram
  4.    
  5.     self:UnregisterAllEvents() -- Is the TH addon so we no longer need to check for addons loading
  6.    
  7.     TalkingHeadFrame.BackgroundFrame:SetAlpha(0) -- adjust the TH frame
  8.     TalkingHeadFrame.MainFrame.CloseButton:Hide()
  9.  
  10.     TalkingHeadFrame.NameFrame.Name:SetTextColor(1, 0.82, 0.02)
  11.     TalkingHeadFrame.NameFrame.Name:SetShadowColor(0, 0, 0, 1)
  12.     TalkingHeadFrame.NameFrame.Name:SetShadowOffset(2, -2)
  13.  
  14.     TalkingHeadFrame.TextFrame.Text:SetTextColor(255,255,255)
  15.     TalkingHeadFrame.TextFrame.Text:SetShadowColor(0, 0, 0, 1)
  16.     TalkingHeadFrame.TextFrame.Text:SetShadowOffset(2, -2)
  17. end
  18.  
  19. local f = CreateFrame("Frame") -- frame to listen for the registered event(s)
  20. f:RegisterEvent("ADDON_LOADED")
  21. f:SetScript("OnEvent", main)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote