/Tukui/modules/blizzard/capturebar.lua
http://github.com/Asphyxia/Tukui · Lua · 22 lines · 18 code · 3 blank · 1 comment · 6 complexity · 413569142a129037a8c1bc4e70ec6ad6 MD5 · raw file
- local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
- -- reposition capture bar to top/center of the screen
- local function CaptureUpdate()
- if NUM_EXTENDED_UI_FRAMES then
- local captureBar
- for i=1, NUM_EXTENDED_UI_FRAMES do
- captureBar = getglobal("WorldStateCaptureBar" .. i)
- if captureBar and captureBar:IsVisible() then
- captureBar:ClearAllPoints()
-
- if( i == 1 ) then
- captureBar:Point("TOP", UIParent, "TOP", 0, -120)
- else
- captureBar:Point("TOPLEFT", getglobal("WorldStateCaptureBar" .. i - 1 ), "TOPLEFT", 0, -25)
- end
- end
- end
- end
- end
- hooksecurefunc("UIParent_ManageFramePositions", CaptureUpdate)