View Single Post
10-09-17, 03:09 PM   #1
Ezi
A Kobold Labourer
Join Date: Jan 2010
Posts: 1
Outline for Name in default Unit Frames

I' m looking to add outline to name in target and focus names on default unit frames, i've found this code:

Code:
local FrameTypes = {'target', 'focus'}

	local DefaultFont, DefaultSize, _  = PlayerName:GetFont()
    
    for i, FrameType in ipairs(FrameTypes) do
        FrameTextureFrameName = loadstring("return " .. FrameType:sub(1,1):upper()..FrameType:sub(2) .. "FrameTextureFrameName")()
        local FontStyle = self.sets['textOutline'] and "OUTLINE" or nil;
        FrameTextureFrameName:SetFont(DefaultFont, DefaultSize, FontStyle)
    end
It's from rozbur's UI tweaks. However this addon is broken and this is only feature i'm looking for. This alone does not work, could anyone help me tweak this piece of code?
  Reply With Quote