978ee00 - Different health text and more text space in config
[wowui.git] / OmaRF / Core.lua
index 8b1b8da..74f5aed 100644 (file)
@@ -6,6 +6,7 @@ OmaRF.normalBackColor = {0.7, 0.7, 0.7};
 OmaRF.dispelBackColor = {0.5, 0.2, 0};
 
 OmaRF.frames = {};
+OmaRF.majorFrames = {};
 OmaRF.positions = {
     "TOPLEFT", "TOPRIGHT", "CENTER", "BOTTOMLEFT", "BOTTOMRIGHT"
 };
@@ -14,9 +15,13 @@ OmaRF.running = false;
 
 local defaults = {
     profile = {
-        indicatorFont = "Arial Narrow",
-        showIcons = true,
         enabled = true,
+        majorAuras = {
+            auras = {"Aqua Bomb"},
+            max = 3;
+            iconSize = 24,
+            textSize = 10,
+        },
         indicators = {
             ['**'] = {
                 auras = {},
@@ -47,10 +52,15 @@ end
 
 function OmaRF:OnDisable()
     self.running = false;
-    for _, frame in pairs(self.frames) do
+    for name, frame in pairs(self.frames) do
         for _, ind in pairs(frame) do
-            ind.text:SetText("");
-            ind.icon:SetTexture("");
+            ind.text:Hide();
+            ind.icon:Hide();
+        end
+        for _, ind in ipairs(self.majorFrames[name]) do
+            ind.icon:Hide();
+            ind.expire:Hide();
+            ind.stack:Hide();
         end
     end
 end
@@ -79,5 +89,6 @@ function SlashCmdList.OMARF(msg, editBox)
         return;
     end
 
+    InterfaceOptionsFrame_OpenToCategory(OmaRF.optionsFrames.Profile);
     InterfaceOptionsFrame_OpenToCategory(OmaRF.optionsFrames.Indicators);
 end