Quantcast

better mover stuff

Darthpred [11-24-12 - 11:51]
better mover stuff
Filename
ElvUI_SLE/modules/pvpmover/pvpmover.lua
diff --git a/ElvUI_SLE/modules/pvpmover/pvpmover.lua b/ElvUI_SLE/modules/pvpmover/pvpmover.lua
index d59a149..af52bae 100644
--- a/ElvUI_SLE/modules/pvpmover/pvpmover.lua
+++ b/ElvUI_SLE/modules/pvpmover/pvpmover.lua
@@ -1,5 +1,7 @@
 local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
 local P = E:NewModule('PvPMover', 'AceHook-3.0', 'AceEvent-3.0');
+local holder = CreateFrame("Frame", "SLE_PvP", E.UIParent)
+

 local function update()
 	if WorldStateCaptureBar1 then
@@ -12,8 +14,12 @@ local function update()
 end

 function P:Initialize()
+	holder:SetSize(10, 58)
+	holder:SetPoint("TOP", E.UIParent, "TOP", -5, -15)
+	WorldStateAlwaysUpFrame:ClearAllPoints()
+	WorldStateAlwaysUpFrame:SetPoint("CENTER", holder)
 	self:RegisterEvent("UPDATE_WORLD_STATES", update)
-	E:CreateMover(WorldStateAlwaysUpFrame, "PvPMover", "PvP", nil, nil, nil, "ALL,S&L")
+	E:CreateMover(holder, "PvPMover", "PvP", nil, nil, nil, "ALL,S&L")
 end

 E:RegisterModule(P:GetName())
\ No newline at end of file