Quantcast
Classic: Script into addon - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Classic: Script into addon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off