Advertisement
Oysi

Untitled

Jun 10th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Macro Part 1:
  2.  
  3. /run a,t,n="AudioOptionsSoundPanel",{"Sound","Music","Ambience","Dialog"},{}for i,v in pairs(t)do n[i]=_G[a]:CreateFontString()n[i]:SetFont("Fonts\\FRIZQT__.TTF",12,"OUTLINE")n[i]:SetPoint("CENTER",_G[a..v.."Volume"],"RIGHT",40,0)end print("P1 done")
  4.  
  5. Macro Part 2:
  6.  
  7. /run _G[a]:HookScript("OnUpdate",function()for i,v in pairs(t)do n[i]:SetText(string.format("%.2f%%",GetCVar("Sound_"..(v=="Sound"and"SFX"or v).."Volume")*100))end end)print("P2 done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement