Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollyonn committed Jan 27, 2019
1 parent 7eb70af commit 58a9530
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions ElvUI_EnhancedFriendsList/ElvUI_EnhancedFriendsList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ function EFL:Update_NoteIcon(button)
button.note:ClearAllPoints()

if E.db.enhanceFriendsList.showStatusIcon then
button.note:Point("LEFT", 0, -7)
button.note:Point("LEFT", 3, -7)
else
button.note:Point("LEFT", 0, 7)
button.note:Point("LEFT", 3, 5)
end

if E.db.enhanceFriendsList.showNoteIcon then
Expand All @@ -270,11 +270,15 @@ function EFL:Update_NoteIcon(button)
end

function EFL:Construct_NoteIcon(button)
S:HandleCloseButton(button.note, nil, "|TInterface\\FriendsFrame\\UI-FriendsFrame-Note:15:15:4:-2|t")
button.note:Size(24, 28)
button.note:Size(18)

button.note:SetScript("OnEnter", nil)
button.note:SetScript("OnLeave", nil)
button.note.tex = button.note:CreateTexture(nil, "OVERLAY")
button.note.tex:SetTexture([[Interface\AddOns\ElvUI\media\textures\copy]])
button.note.tex:SetInside()
button.note.tex:SetAlpha(0.3)

button.note:HookScript2("OnEnter", function() button.note.tex:SetAlpha(1) end)
button.note:HookScript2("OnLeave", function() button.note.tex:SetAlpha(0.3) end)
end

-- Background
Expand Down Expand Up @@ -461,6 +465,7 @@ function EFL:FriendListUpdate()
button.note = _G["FriendsFrameFriendButton"..i.."ButtonTextNote"]

button:StripTextures()
button.note:StripTextures()

_G["FriendsFrameFriendButton"..i.."ButtonTextLocation"]:Hide()
_G["FriendsFrameFriendButton"..i.."ButtonTextNoteIcon"]:Hide()
Expand Down

0 comments on commit 58a9530

Please sign in to comment.