Mercurial > wow > reaction
comparison classes/Overlay.lua @ 183:1696ff2c80cc
minor library rename/storage/cleanup
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 22 Oct 2010 15:56:08 +0000 |
parents | df68b5a40490 |
children | 2e7a322e0195 |
comparison
equal
deleted
inserted
replaced
182:55c2fc0c8d55 | 183:1696ff2c80cc |
---|---|
1 local addonName, addonTable = ... | 1 local addonName, addonTable = ... |
2 local ReAction = addonTable.ReAction | 2 local ReAction = addonTable.ReAction |
3 local L = ReAction.L | 3 local L = ReAction.L |
4 local LKB = ReAction.LKB | |
4 local CreateFrame = CreateFrame | 5 local CreateFrame = CreateFrame |
5 local InCombatLockdown = InCombatLockdown | 6 local InCombatLockdown = InCombatLockdown |
6 local floor = math.floor | 7 local floor = math.floor |
7 local min = math.min | 8 local min = math.min |
8 local format = string.format | 9 local format = string.format |
16 local SetButtonGrid = Bar.SetButtonGrid | 17 local SetButtonGrid = Bar.SetButtonGrid |
17 local ApplyAnchor = Bar.ApplyAnchor | 18 local ApplyAnchor = Bar.ApplyAnchor |
18 local GameTooltipTextRight1 = GameTooltipTextRight1 | 19 local GameTooltipTextRight1 = GameTooltipTextRight1 |
19 local GameTooltipTextRight2 = GameTooltipTextRight2 | 20 local GameTooltipTextRight2 = GameTooltipTextRight2 |
20 local GameTooltipTextRight3 = GameTooltipTextRight3 | 21 local GameTooltipTextRight3 = GameTooltipTextRight3 |
21 | |
22 local KB = LibStub("LibKeyBound-1.0") | |
23 | 22 |
24 -- | 23 -- |
25 -- Wrap some of the bar manipulators to make them state-aware | 24 -- Wrap some of the bar manipulators to make them state-aware |
26 -- | 25 -- |
27 local function SetAnchor( bar, point, frame, relPoint, x, y ) | 26 local function SetAnchor( bar, point, frame, relPoint, x, y ) |
717 UpdateAnchorDecoration() | 716 UpdateAnchorDecoration() |
718 end | 717 end |
719 | 718 |
720 overlay:SetScript("OnShow", overlay.RefreshControls) | 719 overlay:SetScript("OnShow", overlay.RefreshControls) |
721 | 720 |
722 KB.RegisterCallback(overlay,"LIBKEYBOUND_ENABLED") | 721 LKB.RegisterCallback(overlay,"LIBKEYBOUND_ENABLED") |
723 KB.RegisterCallback(overlay,"LIBKEYBOUND_DISABLED") | 722 LKB.RegisterCallback(overlay,"LIBKEYBOUND_DISABLED") |
724 | 723 |
725 if ReAction:GetKeybindMode() then | 724 if ReAction:GetKeybindMode() then |
726 overlay:SetFrameLevel(1) | 725 overlay:SetFrameLevel(1) |
727 end | 726 end |
728 | 727 |