All pastes #439586 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-14 11:33 UTC
rendered paste body
--- Bars.lua    (revision 32602)
+++ Bars.lua    (working copy)
@@ -42,6 +42,9 @@
        ["reset"] = true,
        ["Reset position"] = true,
        ["Reset the anchor position, moving it to the center of your screen."] = true,
+
+       ["Reverse"] = true,
+       ["Toggles if bars are reversed (fill up instead of emptying)."] = true,
 } end)
 
 L:RegisterTranslations("koKR", function() return {
@@ -232,6 +235,14 @@
                        validate = media:List(mType),
                        order = 102,
                },
+               [L["Reverse"]] = {
+                       type = "toggle",
+                       name = L["Reverse"], 
+                       desc = L["Toggles if bars are reversed (fill up instead of emptying)."], 
+                       get = function() return plugin.db.profile.reverse end,
+                       set = function(f) plugin.db.profile.reverse = f end,
+                       order = 103
+               },
        },
 }
 
@@ -329,6 +340,7 @@
 
        self:SetCandyBarScale(id, db.scale or 1)
        self:SetCandyBarFade(id, .5)
+       self:SetCandyBarReversed(id, self.db.profile.reverse)
        self:StartCandyBar(id, true)
 end