comparison classes/Overlay.lua @ 207:c24ac8ee1e45

kb mode and config mode now mutually exclusive
author Flick <flickerstreak@gmail.com>
date Tue, 16 Nov 2010 21:49:54 -0800
parents 2e7a322e0195
children
comparison
equal deleted inserted replaced
206:01b1c7db47d4 207:c24ac8ee1e45
702 function() 702 function()
703 ReAction:ShowEditor(bar) 703 ReAction:ShowEditor(bar)
704 end 704 end
705 ) 705 )
706 706
707 function overlay:LIBKEYBOUND_ENABLED(evt)
708 self:SetFrameLevel(1)
709 end
710
711 function overlay:LIBKEYBOUND_DISABLED(evt)
712 self:SetFrameLevel(10)
713 end
714
715 function overlay:RefreshControls() 707 function overlay:RefreshControls()
716 UpdateAnchorDecoration() 708 UpdateAnchorDecoration()
717 end 709 end
718 710
719 overlay:SetScript("OnShow", overlay.RefreshControls) 711 overlay:SetScript("OnShow", overlay.RefreshControls)
720
721 LKB.RegisterCallback(overlay,"LIBKEYBOUND_ENABLED")
722 LKB.RegisterCallback(overlay,"LIBKEYBOUND_DISABLED")
723 712
724 if ReAction:GetKeybindMode() then 713 if ReAction:GetKeybindMode() then
725 overlay:SetFrameLevel(1) 714 overlay:SetFrameLevel(1)
726 end 715 end
727 716