Quantcast

Deleted anchorpoints.lua and moved stripping textures from ExtraActionButton to skins section.

Darthpred [07-01-12 - 19:10]
Deleted anchorpoints.lua and moved stripping textures from ExtraActionButton to skins section.
Don't know if we still need E:MoveUI in the function O_o
Filename
ElvUI_SLE/modules/anchorpoints.lua
ElvUI_SLE/modules/load_modules.xml
ElvUI_SLE/modules/skins/blizzard/extraab.lua
ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml
diff --git a/ElvUI_SLE/modules/anchorpoints.lua b/ElvUI_SLE/modules/anchorpoints.lua
deleted file mode 100644
index d0535fd..0000000
--- a/ElvUI_SLE/modules/anchorpoints.lua
+++ /dev/null
@@ -1,82 +0,0 @@
-local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB
-local AB = E:GetModule('ActionBars');
---[[
-AB["barDefaults"] = {
-	["bar1"] = {
-		['page'] = 1,
-		['bindButtons'] = "ACTIONBUTTON",
-		['conditions'] = "[bonusbar:5] 11; [bar:2] 2; [bar:3] 3; [bar:4] 4; [bar:5] 5; [bar:6] 6;",
-		['position'] = "BOTTOM,ElvUIParent,BOTTOM,0,21",
-	},
-	["bar2"] = {
-		['page'] = 5,
-		['bindButtons'] = "MULTIACTIONBAR2BUTTON",
-		['conditions'] = "",
-		['position'] = "BOTTOM,ElvUI_Bar1,TOP,0,2",
-	},
-	["bar3"] = {
-		['page'] = 6,
-		['bindButtons'] = "MULTIACTIONBAR1BUTTON",
-		['conditions'] = "",
-		['position'] = "LEFT,ElvUI_Bar1,RIGHT,4,0",
-	},
-	["bar4"] = {
-		['page'] = 4,
-		['bindButtons'] = "MULTIACTIONBAR4BUTTON",
-		['conditions'] = "",
-		['position'] = "RIGHT,ElvUIParent,RIGHT,-4,0",
-	},
-	["bar5"] = {
-		['page'] = 3,
-		['bindButtons'] = "MULTIACTIONBAR3BUTTON",
-		['conditions'] = "",
-		['position'] = "RIGHT,ElvUI_Bar1,LEFT,-4,0",
-	},
-}
-]]
- --Will do something with this after i found how defaults for it are set.
-	--local function PositionStanceBar()
-	--ElvUI_BarShapeShift:Point('TOPLEFT', E.UIParent, 'TOPLEFT', 4, -4);
-		--[[AB.movers['barShapeShift']["p"] = "BOTTOMRIGHT"
-		AB.movers['barShapeShift']["p2"] = LeftChatPanel
-		AB.movers['barShapeShift']["p3"] = "TOPRIGHT"
-		AB.movers['barShapeShift']["p4"] = 2
-		AB.movers['barShapeShift']["p5"] = -3]]
-	--end
-
-	local function PositionGMMover() --Still works lol O_o
-		if not E:HasMoverBeenMoved('GMMover') then
-			GMMover:ClearAllPoints()
-			GMMover:Point("TOPLEFT", E.UIParent, "TOPLEFT", 310, -1)
-		end
-	end
-
-local function PositionHookUpdate()
-
-	--For some reason the FocusTarget frame position won't stick unless I do this. UF positions are set in install.lua
-	E:MoveUI(true, 'unitframes')
-	E:MoveUI(false)
-
-	-- hook the ExtraActionButton1 texture, idea by roth via WoWInterface forums
-	-- code taken from Tukui
-	local button = ExtraActionButton1
-	local icon = button.icon
-	local texture = button.style
-
-	local function disableTexture(style, texture)
-		if string.sub(texture,1,9) == "Interface" then
-			style:SetTexture("")
-		end
-	end
-	button.style:SetTexture("")
-	hooksecurefunc(texture, "SetTexture", disableTexture)
-end
-
-local frame = CreateFrame("Frame", nil, nil)
-frame:RegisterEvent("PLAYER_ENTERING_WORLD")
-frame:SetScript("OnEvent",function(self, event)
-	if event == "PLAYER_ENTERING_WORLD" then
-		PositionHookUpdate()
-		frame:UnregisterEvent("PLAYER_ENTERING_WORLD")
-	end
-end)
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/load_modules.xml b/ElvUI_SLE/modules/load_modules.xml
index e963b03..8afe6be 100644
--- a/ElvUI_SLE/modules/load_modules.xml
+++ b/ElvUI_SLE/modules/load_modules.xml
@@ -12,5 +12,4 @@
 	<Include file='skins\load_skins.xml'/>
 	<Include file='uibuttons\load_uibuttons.xml'/>
 	<Include file='unitframes\load_unitframes.xml'/>
-	<Script file='anchorpoints.lua'/>
 </Ui>
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/skins/blizzard/extraab.lua b/ElvUI_SLE/modules/skins/blizzard/extraab.lua
new file mode 100644
index 0000000..e3d2985
--- /dev/null
+++ b/ElvUI_SLE/modules/skins/blizzard/extraab.lua
@@ -0,0 +1,31 @@
+local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB
+
+local function PositionHookUpdate()
+	--[[
+	--For some reason the FocusTarget frame position won't stick unless I do this. UF positions are set in install.lua
+	E:MoveUI(true, 'unitframes')
+	E:MoveUI(false)
+]]
+	-- hook the ExtraActionButton1 texture, idea by roth via WoWInterface forums
+	-- code taken from Tukui
+	local button = ExtraActionButton1
+	local icon = button.icon
+	local texture = button.style
+
+	local function disableTexture(style, texture)
+		if string.sub(texture,1,9) == "Interface" then
+			style:SetTexture("")
+		end
+	end
+	button.style:SetTexture("")
+	hooksecurefunc(texture, "SetTexture", disableTexture)
+end
+
+local frame = CreateFrame("Frame", nil, nil)
+frame:RegisterEvent("PLAYER_ENTERING_WORLD")
+frame:SetScript("OnEvent",function(self, event)
+	if event == "PLAYER_ENTERING_WORLD" then
+		PositionHookUpdate()
+		frame:UnregisterEvent("PLAYER_ENTERING_WORLD")
+	end
+end)
\ No newline at end of file
diff --git a/ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml b/ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml
index 131ca34..510da41 100644
--- a/ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml
+++ b/ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml
@@ -1,3 +1,4 @@
 <Ui xmlns="http://www.blizzard.com/wow/ui/">
+	<Script file='extraab.lua'/>
 	<Script file='misc.lua'/>
 </Ui>
\ No newline at end of file