Optons and shit
Darthpred [08-19-14 - 21:56]
diff --git a/ElvUI_SLE/modules/raidutility.lua b/ElvUI_SLE/modules/raidutility.lua
index 6b9ed7a..ad42c46 100644
--- a/ElvUI_SLE/modules/raidutility.lua
+++ b/ElvUI_SLE/modules/raidutility.lua
@@ -11,6 +11,11 @@ local function Leave(self)
self:SetAlpha(0)
end
+function M:RUReset()
+ local a = E.db.sle.rumouseover and 0 or 1
+ RaidUtility_ShowButton:SetAlpha(a)
+end
+
--For moving raid utility button
local function MoreInit()
E:CreateMover(RaidUtility_ShowButton, "RaidUtility_Mover", L["Raid Utility"], nil, nil, nil, "ALL,S&L,S&L MISC")
diff --git a/ElvUI_SLE/options/raidutility_c.lua b/ElvUI_SLE/options/raidutility_c.lua
new file mode 100644
index 0000000..50b3adf
--- /dev/null
+++ b/ElvUI_SLE/options/raidutility_c.lua
@@ -0,0 +1,33 @@
+local E, L, V, P, G = unpack(ElvUI);
+local M = E:GetModule('Misc')
+
+local function configTable()
+ E.Options.args.sle.args.options.args.ru = {
+ order = 9,
+ type = "group",
+ name = L['Raid Utility'],
+ args = {
+ ru = {
+ order = 1,
+ type = "group",
+ name = L['Raid Utility'],
+ args = {
+ info = {
+ order = 1,
+ type = "description",
+ name = "Options for the raid control button",
+ },
+ mouseover = {
+ order = 2,
+ type = "toggle",
+ name = L["Enable"],
+ get = function(info) return E.db.sle.rumouseover end,
+ set = function(info, value) E.db.sle.rumouseover = value; M:RUReset() end,
+ },
+ },
+ },
+ },
+ }
+end
+
+table.insert(E.SLEConfigs, configTable)
\ No newline at end of file