View Single Post
09-20-20, 10:06 PM   #8
draikos
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 4
Fizzlemizz thanks so much for helping with that!
Definitely helped cut down a lot of the additional lines I had added in. It still didn't update the "subsequent" messages from the Talking Head Frame. I was able to resolve this by changing the Hook script to a "hooksecurefunc" instead and use the function "TalkingHeadFrame_PlayCurrent" to update the text each time.

Lua Code:
  1. TalkingHeadFrame.MainFrame.CloseButton:Hide()
  2. TalkingHeadFrame.BackgroundFrame:SetAlpha(0)
  3.  
  4. hooksecurefunc("TalkingHeadFrame_PlayCurrent", function()
  5.     TalkingHeadFrame.MainFrame.CloseButton:Hide()
  6.     TalkingHeadFrame.NameFrame.Name:SetTextColor(1, 0.82, 0.02)
  7.     TalkingHeadFrame.NameFrame.Name:SetShadowColor(0, 0, 0, 1)
  8.     TalkingHeadFrame.NameFrame.Name:SetShadowOffset(2, -2)
  9.  
  10.     TalkingHeadFrame.TextFrame.Text:SetTextColor(255,255,255)
  11.     TalkingHeadFrame.TextFrame.Text:SetShadowColor(0, 0, 0, 1)
  12.     TalkingHeadFrame.TextFrame.Text:SetShadowOffset(2, -2)
  13.     TalkingHeadFrame.BackgroundFrame:SetAlpha(0)
  14. end)

Last edited by draikos : 09-20-20 at 10:09 PM.
  Reply With Quote