View Single Post
04-14-18, 08:15 PM   #11
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
If you're trying to add role, etc. icons onto your unit frames you can just use the built-in ones for oUF.

https://github.com/oUF-wow/oUF/blob/...rindicator.lua

Code:
    -- Position and size
    local LeaderIndicator = self:CreateTexture(nil, 'OVERLAY')
    LeaderIndicator:SetSize(16, 16)
    LeaderIndicator:SetPoint('BOTTOM', self, 'TOP')

    -- Register it with oUF
    self.LeaderIndicator = LeaderIndicator

Go up 1 tree to: https://github.com/oUF-wow/oUF/tree/master/elements and there's the other built-in elements for oUF.
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote