This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
forked from Shestak/ShestakUI
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Shestak/ShestakUI
Conflicts: DarkShestakUI/Modules/Skins/Blizzard/Interface.lua DarkShestakUI/Modules/Skins/Blizzard/Options.lua
- Loading branch information
Showing
7 changed files
with
65 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
local T, C, L, _ = unpack(select(2, ...)) | ||
local T, C, L, _ = unpack(select(2, ...)) | ||
if C.chat.enable ~= true then return end | ||
|
||
---------------------------------------------------------------------------------------- | ||
-- Invite player(by Zork) | ||
-- Alt Click to Invite player | ||
---------------------------------------------------------------------------------------- | ||
local origSetItemRef = SetItemRef | ||
SetItemRef = function(link, text, ...) | ||
local linkType = string.sub(link, 1, 6) | ||
if IsAltKeyDown() and linkType == "player" then | ||
local name = string.match(link, "player:([^:]+)") | ||
InviteUnit(name) | ||
return nil | ||
hooksecurefunc("SetItemRef", function(link) --Secure hook to avoid taint | ||
if IsAltKeyDown() then | ||
local ChatFrameEditBox = ChatEdit_ChooseBoxForSend() | ||
local player = link:match("^player:([^:]+)") | ||
InviteToGroup(player) | ||
ChatEdit_OnEscapePressed(ChatFrameEditBox) -- Secure hook opens whisper, so closing it. | ||
end | ||
return origSetItemRef(link, text, ...) | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters