Mercurial > wow > reaction
comparison Bar.lua @ 82:5b7fd67a28ea
Fixed incorrect state propagator
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Wed, 25 Jun 2008 23:03:06 +0000 |
| parents | 57f8151ea0f0 |
| children | f32e2375e39b |
comparison
equal
deleted
inserted
replaced
| 81:57f8151ea0f0 | 82:5b7fd67a28ea |
|---|---|
| 48 -- of indirection to all state changes, as a secondary (trivial) statemap must be invoked. This | 48 -- of indirection to all state changes, as a secondary (trivial) statemap must be invoked. This |
| 49 -- complicates frame setup slightly. | 49 -- complicates frame setup slightly. |
| 50 local bf = CreateFrame("Frame", nil, f, "SecureStateHeaderTemplate") | 50 local bf = CreateFrame("Frame", nil, f, "SecureStateHeaderTemplate") |
| 51 bf:SetAllPoints() | 51 bf:SetAllPoints() |
| 52 bf:Show() | 52 bf:Show() |
| 53 bf:SetAttribute("useparent*",true) -- this facilitates SecureButton_GetModifiedAttribute() | 53 bf:SetAttribute("useparent*",true) -- this facilitates SecureButton_GetModifiedAttribute() |
| 54 bf:SetAttribute("statemap-parent","*:=") -- however some methods don't use it, so propagate the state too | 54 bf:SetAttribute("statemap-parent","$input") -- However, we also need SetAttribute(state-parent) propagation too |
| 55 f:SetAttribute("addchild",bf) | 55 f:SetAttribute("addchild",bf) |
| 56 | 56 |
| 57 -- Both frames are read-only. Override the default accessors for this object. | 57 -- Both frames are read-only. Override the default accessors for this object. |
| 58 function self:GetFrame() | 58 function self:GetFrame() |
| 59 return f | 59 return f |
