View Single Post
10-03-19, 01:30 AM   #1
lurtex
A Defias Bandit
Join Date: Oct 2019
Posts: 2
Classic: Script into addon

Hey

Im wondering if anyone can help me to convert some scripts into an addon so i dont have to manually run it every time i log on (works on retail but not on classic), and how to make the TargetFrameNameBackground transparent like my player frame:
https://gyazo.com/1446e21a2c71cb8b104fc8cf4c2bd2f9


/run hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(_,s)if s==PlayerFrameHealthBar.TextString then local t=s:GetText()if t then s:SetText(t:gsub(" / .*",""))end end end)
/run hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(_,s)if s==TargetFrameHealthBar.TextString then local t=s:GetText()if t then s:SetText(t:gsub(" / .*",""))end end end)
/run hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(_,s)if s==PlayerFrameManaBar.TextString then local t=s:GetText()if t then s:SetText(t:gsub(" / .*",""))end end end)
/run hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(_,s)if s==TargetFrameManaBar.TextString then local t=s:GetText()if t then s:SetText(t:gsub(" / .*",""))end end end)

Thank you
  Reply With Quote