From 213dd4573db0c8f131dc1c5236a2adf771a74789 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 18 Dec 2014 19:36:58 +0400 Subject: [PATCH] Always show option for raid marks --- ElvUI_SLE/modules/raidmarkers.lua | 2 +- ElvUI_SLE/options/raidmarkers_c.lua | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ElvUI_SLE/modules/raidmarkers.lua b/ElvUI_SLE/modules/raidmarkers.lua index 6eb7dc4..cf69cb2 100644 --- a/ElvUI_SLE/modules/raidmarkers.lua +++ b/ElvUI_SLE/modules/raidmarkers.lua @@ -140,7 +140,7 @@ end function RM:ToggleSettings() if self.db.enable then - RegisterStateDriver(self.frame, "visibility", self.db.visibility == 'DEFAULT' and '[noexists, nogroup] hide; show' or '[group] show; hide') + RegisterStateDriver(self.frame, "visibility", self.db.visibility == 'DEFAULT' and '[noexists, nogroup] hide; show' or self.db.visibility == 'ALWAYS' and '[petbattle] hide; show' or '[group] show; [petbattle] hide; hide') else UnregisterStateDriver(self.frame, "visibility") self.frame:Hide() diff --git a/ElvUI_SLE/options/raidmarkers_c.lua b/ElvUI_SLE/options/raidmarkers_c.lua index 5284d87..40e706f 100644 --- a/ElvUI_SLE/options/raidmarkers_c.lua +++ b/ElvUI_SLE/options/raidmarkers_c.lua @@ -1,11 +1,6 @@ local E, L, V, P, G = unpack(ElvUI); local RM = E:GetModule('SLE_RaidMarkers') -local raidmarkerVisibility = { - DEFAULT = L['Default'], - INPARTY = AGGRO_WARNING_IN_PARTY, -} - local function configTable() E.Options.args.sle.args.options.args.raidmarkerbars = { order = 4, @@ -48,7 +43,11 @@ local function configTable() order = 6, name = L["Visibility"], disabled = function() return not E.db.sle.raidmarkers.enable end, - values = raidmarkerVisibility, + values = { + DEFAULT = L['Default'], + INPARTY = AGGRO_WARNING_IN_PARTY, + ALWAYS = L['Always Display'], + }, }, backdrop = { type = 'toggle', -- 1.7.9.5