Skip to content

Commit

Permalink
Add on click to artifact bar
Browse files Browse the repository at this point in the history
Opens the artifact weapon frame when the artifact experience bar is clicked
  • Loading branch information
jsimpson committed Nov 9, 2016
1 parent 2713556 commit fbe38c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Interface/AddOns/nMainbar/modules/artifactBar.lua
Expand Up @@ -17,6 +17,14 @@ if (cfg.artifactBar.mouseover) then
ArtifactWatchBar:HookScript('OnLeave', function()
securecall('UIFrameFadeOut', ArtifactWatchBar.OverlayFrame.Text, 0.2, ArtifactWatchBar.OverlayFrame.Text:GetAlpha(), 0)
end)

ArtifactWatchBar:SetScript('OnMouseDown', function(self)
if not ArtifactFrame or not ArtifactFrame:IsShown() then
ShowUIPanel(SocketInventoryItem(16))
elseif ArtifactFrame and ArtifactFrame:IsShown() then
HideUIPanel(ArtifactFrame)
end
end)
else
ArtifactWatchBar.OverlayFrame.Text:Show()
ArtifactWatchBar.OverlayFrame.Text.Hide = function() end
Expand Down

0 comments on commit fbe38c1

Please sign in to comment.