29b33e2 - Create slash command to load config addon
[wowui.git] / RaidFrameCustomizationConfig / IndicatorsConfig.lua
index 5cbd343..29522f8 100644 (file)
@@ -115,15 +115,13 @@ local function createOptionsTable(self)
     return options;
 end
 
     return options;
 end
 
-function RaidFrameCustomization:SetupOptions()
-    local profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db);
-    local options = createOptionsTable(self);
-    local config = LibStub("AceConfig-3.0");
-    config:RegisterOptionsTable("Indicators", options);
-    config:RegisterOptionsTable("Indicators Profiles", profiles);
+local profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(RaidFrameCustomization.db);
+local options = createOptionsTable(RaidFrameCustomization);
+local config = LibStub("AceConfig-3.0");
+config:RegisterOptionsTable("Indicators", options);
+config:RegisterOptionsTable("Indicators Profiles", profiles);
 
 
-    local dialog = LibStub("AceConfigDialog-3.0");
-    self.optionsFrames = {};
-    self.optionsFrames.Indicators = dialog:AddToBlizOptions("Indicators", "Indicators");
-    self.optionsFrames.Profile = dialog:AddToBlizOptions("Indicators Profiles", "Profiles", "Indicators");
-end
+local dialog = LibStub("AceConfigDialog-3.0");
+RaidFrameCustomization.optionsFrames = {};
+RaidFrameCustomization.optionsFrames.Indicators = dialog:AddToBlizOptions("Indicators", "Indicators");
+RaidFrameCustomization.optionsFrames.Profile = dialog:AddToBlizOptions("Indicators Profiles", "Profiles", "Indicators");