daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest May 17th, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. local n,w,h="CompactUnitFrameProfilesGeneralOptionsFrame" h,w=
  3. _G[n.."HeightSlider"],
  4. _G[n.."WidthSlider"]
  5. h:SetMinMaxValues(1,150)
  6. w:SetMinMaxValues(1,150)
  7.  
  8. hooksecurefunc("CompactUnitFrame_UpdateName",function(frame)
  9.     if frame and not frame:IsForbidden() then
  10.         local frame_name = frame:GetName()
  11.         if frame_name and frame_name:match("^CompactRaidFrame%d") and frame.unit and frame.name then
  12.             local unit_name = GetUnitName(frame.unit,true)
  13.             if unit_name then
  14.                 frame.name:SetText(unit_name:match("[^-]+"))
  15.             end
  16.         end
  17.     end
  18. end)
RAW Paste Data
Top