From 962c6ed1a8b91e6d32ba8ccaf6298da46e920075 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 1 Jul 2012 23:10:33 +0400 Subject: [PATCH] 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 --- ElvUI_SLE/modules/anchorpoints.lua | 82 -------------------- ElvUI_SLE/modules/load_modules.xml | 1 - ElvUI_SLE/modules/skins/blizzard/extraab.lua | 31 ++++++++ ElvUI_SLE/modules/skins/blizzard/load_blizzard.xml | 1 + 4 files changed, 32 insertions(+), 83 deletions(-) delete mode 100644 ElvUI_SLE/modules/anchorpoints.lua create mode 100644 ElvUI_SLE/modules/skins/blizzard/extraab.lua 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 @@ -