Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 97:5d3b7b025142 | 98:a44173c7a82c |
|---|---|
| 70 self:Hide() | 70 self:Hide() |
| 71 else | 71 else |
| 72 self:Show() | 72 self:Show() |
| 73 end | 73 end |
| 74 hidden = h | 74 hidden = h |
| 75 end | |
| 76 if showAll then | |
| 77 control:CallMethod("UpdateHiddenLabel",hide[state]) | |
| 75 end | 78 end |
| 76 ]], | 79 ]], |
| 77 | 80 |
| 78 --keybindState TODO: broken | 81 --keybindState TODO: broken |
| 79 | 82 |
| 203 ]]) | 206 ]]) |
| 204 end | 207 end |
| 205 | 208 |
| 206 function SetStateDriver( bar, rule ) | 209 function SetStateDriver( bar, rule ) |
| 207 local f = bar:GetFrame() | 210 local f = bar:GetFrame() |
| 211 | |
| 212 if not f.UpdateHiddenLabel then | |
| 213 function f:UpdateHiddenLabel(hide) | |
| 214 bar:SetLabelSubtext( hide and L["Hidden"] ) | |
| 215 end | |
| 216 end | |
| 208 | 217 |
| 209 local props = { } | 218 local props = { } |
| 210 for p, h in pairs(properties) do | 219 for p, h in pairs(properties) do |
| 211 if type(h) == "string" then | 220 if type(h) == "string" then |
| 212 table.insert(props,p) | 221 table.insert(props,p) |
