From 785effca68b37378c9a36dbd608cd6f89ce802c0 Mon Sep 17 00:00:00 2001 From: Lanerra Date: Sun, 19 Oct 2014 15:21:19 -0700 Subject: [PATCH] - Add class color option to health bars - Added tapped color for unit frames - Updated to 6.0 --- oUF_Lanerra.lua | 12 ++++++++++-- oUF_Lanerra.toc | 4 ++-- oUF_Lanerra_Config.lua | 3 ++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/oUF_Lanerra.lua b/oUF_Lanerra.lua index bf5d9fc..8811ec0 100644 --- a/oUF_Lanerra.lua +++ b/oUF_Lanerra.lua @@ -291,8 +291,16 @@ local UpdateHealth = function(Health, unit, min, max) end end - -- Bar Color Stuff - Health:SetStatusBarColor(.25, .25, .25) + -- Bar Color Stuff + if (Settings.Show.ClassColorHealth) then + Health.colorClass = true + else + Health:SetStatusBarColor(0.25, 0.25, 0.25) + end + + if UnitIsTapped(unit) then + Health:SetStatusBarColor(0.6, 0.6, 0.6) + end end -- Group update health function diff --git a/oUF_Lanerra.toc b/oUF_Lanerra.toc index 3868ad8..8f8c005 100644 --- a/oUF_Lanerra.toc +++ b/oUF_Lanerra.toc @@ -1,5 +1,5 @@ -## Interface: 50400 -## Version: 1.5.4 +## Interface: 60000 +## Version: 1.5.5 ## Title: oUF_Lanerra ## Notes: oUF layout by Lanerra diff --git a/oUF_Lanerra_Config.lua b/oUF_Lanerra_Config.lua index bd0125b..a32f9c1 100644 --- a/oUF_Lanerra_Config.lua +++ b/oUF_Lanerra_Config.lua @@ -6,7 +6,8 @@ Settings = { ToT = true, Party = true, Raid = true, - HealerOverride = true + HealerOverride = true, + ClassColorHealth = true, }, Media = { Border = 'Interface\\Addons\\oUF_Lanerra\\media\\borderTexture.tga', -- 1.7.9.5