Always show option for raid marks
Darthpred [12-18-14 - 15:36]
Always show option for raid marks
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',