Quantcast
Download
(78 Kb)
Download
Updated: 07-22-18 01:38 PM
Compatibility:
Battle for Azeroth (8.0.1)
Updated:07-22-18 01:38 PM
Created:01-18-18 04:30 PM
Downloads:558
Favorites:1
MD5:
8.0.1

oUF Dispellable

Version: 8.0.2
by: Rainrider [More]

oUF_Dispellable

This is an element for the unitframe framework oUF.
It does nothing by itself and requires layout support to do its magic.

BREAKING CHANGE

I decided to rename the addon to oUF_Dispellable due to a spelling mistake, which means layout authors will have to adopt the proper spelling from version 2.0.0 onward. Sorry guys and gals

Description

oUF_Dispellable provides functionality to highlight debuffs dispellable by the player. It can display either a texture colored by the debuff type, or an icon representing the found dispellable debuff, or both.

It enables and disables itself automatically based on whether the player can dispel or not and keeps an always updated list of the dispel spells available to the player. It also keeps track of self-dispels like Grimoire: Imp and Cleansed by Flame to highlight only the player frame when only those are known.

How to use (for layout authors)

The element is fully documented and follows the current oUF guidelines for documentation. Please take a look at the code
for details and examples. You could also consult the wiki.

How to install

If you are a layout author, here are some options how to distribute oUF_Dispellable with your layout:

  • unzip the whole embedded package into your layout's folder and load libs\LibStub\LibStub.lua, libs\LibPlayerSpells-1.0\lib.xml and oUF_Dispellable.lua from your .toc file in that order. While this is the simplest option, you will have to keep your copy updated manually.
  • if you are using git for source control management, you could use gitmodules to pull oUF_Dispellable and it's dependencies.
  • you could use some automated packaging for distribution like packager. Once set up, this is the best solution.

Please consider making oUF_Dispellable optional for your users. The easiest way is to distribute it with your layout as a separate addon and use something like
Code:
if not IsAddOnLoaded('oUF_Dispellable') then return end
before calling its functionality. Users can then opt-out of using it by just uninstalling it without having to edit your code. This way they can also update oUF_Dispellable themselves, without you having to release a new version of your layout just to pick some minor changes.

If you are a layout user and oUF_Dispellable didn't come together with your layout despite the layout supporting it, just install it as a normal addon.

Issues

If you have any problems using oUF_Dispellable, please open an issue at Github. Remember to first search if there is an open/closed issue concerning your problem.

License

Please read the included LICENSE.

Changes in 8.0.2:
  • Rainrider (1):
    1. Fix missing @
  • 1 file changed, 1 insertion(+), 1 deletion(-)

Changes in 8.0.1:
  • Rainrider (1):
    1. Workaround for load errors
  • 4 files changed, 23 insertions(+), 3 deletions(-)

Changes in 8.0.0:
  • Rainrider (1):
    1. Update for Battle for Azeroth
  • 2 files changed, 8 insertions(+), 4 deletions(-)

Changes in 2.0.1:
  • Rainrider (2):
    1. Add Stoneform (dwarf racial)
    2. Fix code documentation
  • 2 files changed, 15 insertions(+), 10 deletions(-)

Changes in 2.0.0:
  • Rainrider (1):
    1. Breaking change: Fix my poor spelling
  • 4 files changed, 43 insertions(+), 43 deletions(-)

Changes in 1.0.2:
  • Rainrider (2):
    1. Fix self dispels
    2. Don't disable the element separately for headers
  • 2 files changed, 18 insertions(+), 39 deletions(-)

Changes in 1.0.1:
  • Rainrider (3):
    1. Use travis for linting
    2. Linting
    3. Outsource the packager
  • 6 files changed, 38 insertions(+), 2016 deletions(-)
Archived Files (8)
File Name
Version
Size
Author
Date
8.0.1
78kB
Rainrider
07-22-18 12:27 PM
8.0.0
77kB
Rainrider
07-19-18 05:41 PM
2.0.1
75kB
Rainrider
03-21-18 04:08 PM
2.0.0
74kB
Rainrider
02-04-18 12:20 PM
1.0.2
74kB
Rainrider
02-02-18 08:20 PM
1.0.1
74kB
Rainrider
01-20-18 02:24 PM
1.0.0
74kB
Rainrider
01-18-18 06:36 PM
67a4cd3
76kB
Rainrider
01-18-18 04:30 PM


Post A Reply Comment Options
Unread 02-03-18, 08:25 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1726
File comments: 3698
Uploads: 123
Thanks, will look into it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 02-02-18, 08:44 PM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 450
File comments: 28
Uploads: 2
Sorry for taking so long to reply. The default aura element in oUF will expose the debuffType to layouts through PostUpdateIcon once we release the next version. You could use the CustomFilter option from the aura element as all returns from UnitAura are passed to it. The new oUF version should come out pretty soon though.
Report comment to moderator  
Reply With Quote
Unread 01-20-18, 12:26 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1726
File comments: 3698
Uploads: 123
I was looking for a replacement of a module that I used for a quite some time to support debuff highlighting. Originally I used it to recolor orbs based on debuff type. They would glow green or purple etc. based on debuff type.

Is it possible to use this feature with this module even if the player unit has no dispell option?

If no could you add an option to make it work without the dispell detection just for the colorization of magic debuffs, curses, diseases and poisons?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 01-20-18 at 12:28 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: