Mercurial > wow > reaction
comparison classes/Overlay.lua @ 135:5c0591a31163
Fixed bug with bar overlay appearing behind buttons when ButtonFacade enabled
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Wed, 18 Mar 2009 01:52:53 +0000 |
parents | a2d2f23137c8 |
children | df67685b340e |
comparison
equal
deleted
inserted
replaced
134:d186e041ca14 | 135:5c0591a31163 |
---|---|
461 f:SetResizable(true) | 461 f:SetResizable(true) |
462 | 462 |
463 -- child of UIParent so that alpha and scale doesn't propagate to it | 463 -- child of UIParent so that alpha and scale doesn't propagate to it |
464 local overlay = CreateFrame("Button", nil, UIParent) | 464 local overlay = CreateFrame("Button", nil, UIParent) |
465 overlay:EnableMouse(true) | 465 overlay:EnableMouse(true) |
466 overlay:SetFrameLevel(3) -- set it above the buttons | 466 overlay:SetFrameLevel(10) -- set it above the buttons |
467 overlay:SetPoint("TOPLEFT", f, "TOPLEFT", -4, 4) | 467 overlay:SetPoint("TOPLEFT", f, "TOPLEFT", -4, 4) |
468 overlay:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", 4, -4) | 468 overlay:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", 4, -4) |
469 overlay:SetBackdrop({ | 469 overlay:SetBackdrop({ |
470 edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", | 470 edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", |
471 tile = true, | 471 tile = true, |
711 function overlay:LIBKEYBOUND_ENABLED(evt) | 711 function overlay:LIBKEYBOUND_ENABLED(evt) |
712 self:SetFrameLevel(1) | 712 self:SetFrameLevel(1) |
713 end | 713 end |
714 | 714 |
715 function overlay:LIBKEYBOUND_DISABLED(evt) | 715 function overlay:LIBKEYBOUND_DISABLED(evt) |
716 self:SetFrameLevel(3) | 716 self:SetFrameLevel(10) |
717 end | 717 end |
718 | 718 |
719 function overlay:RefreshControls() | 719 function overlay:RefreshControls() |
720 UpdateAnchorDecoration() | 720 UpdateAnchorDecoration() |
721 end | 721 end |