diff State.lua @ 98:a44173c7a82c

- added (Hidden) to label when bar is being shown temporarily for config - added snap-indicator (lock) icon. Displays when not dragging, if anchored, as well. - changed bar color when anchored
author Flick <flickerstreak@gmail.com>
date Fri, 24 Oct 2008 18:14:07 +0000
parents 5d3b7b025142
children 3699d7dad312
line wrap: on
line diff
--- a/State.lua	Thu Oct 23 00:01:00 2008 +0000
+++ b/State.lua	Fri Oct 24 18:14:07 2008 +0000
@@ -73,6 +73,9 @@
           end
           hidden = h
         end
+        if showAll then
+          control:CallMethod("UpdateHiddenLabel",hide[state])
+        end
       ]],
 
     --keybindState  TODO: broken
@@ -206,6 +209,12 @@
     function SetStateDriver( bar, rule )
       local f = bar:GetFrame()
 
+      if not f.UpdateHiddenLabel then
+        function f:UpdateHiddenLabel(hide)
+          bar:SetLabelSubtext( hide and L["Hidden"] )
+        end
+      end
+
       local props = { }
       for p, h in pairs(properties) do
         if type(h) == "string" then