Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Outline for Name in default Unit Frames


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