oUF_AFKIcon

Overview

oUF_AFKIcon adds a customizable AFK Icon to oUF Unit Frames configured to use it.

This addon is not a unit frame! To work, it requires both oUF and an oUF layout configured to use it.

Usage:

oUF_AFKIcon is a addon that adds a customizable AFK Icon to your custom oUF unit frame layouts. It does nothing by itself and requires both oUF and an oUF layout to function.

To use this in your layout, you will need an AFKIcon member on your oUF unit object (self):

local afkIcon = hp:CreateTexture(nil, "OVERLAY")
afkIcon:SetPoint("CENTER", name, "CENTER")
afkIcon:SetWidth(16)
afkIcon:SetHeight(16)
afkIcon:Hide()
self.AFKIcon = afkIcon

This example makes the icon parented on the healthbar, and centers it on the unit name textstring.

The default icon is a 16x16 red circle with a white exclamation point, but you can also override this by setting the AFKIconTexture member of your unit object to a valid path:

self.AFKIconTexture = "Interface\\Addons\\oUF_MyLayout\\AFKIcon.tga"

You must login to post a comment. Don't have an account? Register to get one!

Table of contents

  1. 1 Overview
  2. 2 Usage:

Facts

Date created
26 Sep 2008
Category
Last update
27 Oct 2008
Development stage
Release
License
Apache License version 2.0
Curse link
oUF_AFKIcon
Recent files
  • R: v1.1-Release for 3.0.2 on 27 Oct 2008
  • A: r5 for 3.0.2 on 27 Oct 2008
  • A: r4 for 2.4.3 on 03 Oct 2008
  • R: v1.0-release for 2.4.3 on 01 Oct 2008
  • A: r2 for 2.4.3 on 01 Oct 2008

Authors