From b618ea5297a493d116cd8abe5c2bb92224f57e0e Mon Sep 17 00:00:00 2001 From: Xruptor Date: Fri, 15 Jan 2016 08:51:04 -0500 Subject: [PATCH] Issues with Git Repositories v2.7 Resolved There was an issue with some of the repositories where the initial Push didn't complete correctly. This has been resolved. V2.7 should be the latest update. --- RightClickSelfCast.lua | 43 +++++++++++++++++++++---------------------- RightClickSelfCast.toc | 2 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/RightClickSelfCast.lua b/RightClickSelfCast.lua index b004cc5..77d29a6 100644 --- a/RightClickSelfCast.lua +++ b/RightClickSelfCast.lua @@ -36,6 +36,27 @@ function f:PLAYER_LOGIN() end end + -- ElvUI (Author: Elv22, TukUI fork) + -- https://www.tukui.org/about.php?ui=elvui + -- Since there are so many different forks/modifications of ElvUI out there. Just do it without using IsAddOnLoaded() + local barID = 1 + while _G["ElvUI_Bar"..barID] do + for _,button in next,_G["ElvUI_Bar"..barID].buttons,nil do + button:SetAttribute("unit2", "player") + end + barID = barID+1 + end + + -- Tukui (Author: Elv22, TukUI fork) + -- https://www.tukui.org + -- Since there are so many different forks/modifications of Tukui out there. Just do it without using IsAddOnLoaded() + for id=1, 12 do + local button = _G["ActionButton"..id] + if button ~= nil then + button:SetAttribute("unit2", "player") + end + end + -- this is for the mod ExtraBar (Author: Cowmonster) -- http://www.wowinterface.com/downloads/info14492-ExtraBar.html if IsAddOnLoaded('ExtraBar') then @@ -64,28 +85,6 @@ function f:PLAYER_LOGIN() end end - -- ElvUI (Author: Elv22, TukUI fork) - -- https://www.tukui.org/about.php?ui=elvui - -- Since there are so many different forks/modifications of ElvUI out there. Just do it without using IsAddOnLoaded() - local barID = 1 - while _G["ElvUI_Bar"..barID] do - for _,button in next,_G["ElvUI_Bar"..barID].buttons,nil do - button:SetAttribute("unit2", "player") - end - barID = barID+1 - end - - -- Tukui (Author: Elv22, TukUI fork) - -- https://www.tukui.org - -- Since there are so many different forks/modifications of Tukui out there. Just do it without using IsAddOnLoaded() - for id=1, 12 do - local button = _G["ActionButton"..id] - if button ~= nil then - button:SetAttribute("unit2", "player") - end - end - - self:UnregisterEvent("PLAYER_LOGIN") self.PLAYER_LOGIN = nil diff --git a/RightClickSelfCast.toc b/RightClickSelfCast.toc index 8bc3fc6..8b0be0d 100644 --- a/RightClickSelfCast.toc +++ b/RightClickSelfCast.toc @@ -1,7 +1,7 @@ ## Interface: 60200 ## Title: RightClickSelfCast ## Author: Xruptor -## Version: 2.6 +## Version: 2.7 ## Notes: Makes all the Blizzard actionbars always self-cast on right-click (regardless of current target) RightClickSelfCast.lua \ No newline at end of file -- 1.7.9.5