Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Blazeflack
ElvUI_CustomTags
Commits
aa72c74d
Commit
aa72c74d
authored
Oct 20, 2017
by
Blazeflack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added faction:icon tag
Reference: #2
parent
6ebc0024
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
ElvUI_CustomTags/core.lua
ElvUI_CustomTags/core.lua
+15
-0
ElvUI_CustomTags/media/Alliance.blp
ElvUI_CustomTags/media/Alliance.blp
+0
-0
ElvUI_CustomTags/media/Horde.blp
ElvUI_CustomTags/media/Horde.blp
+0
-0
No files found.
ElvUI_CustomTags/core.lua
View file @
aa72c74d
...
...
@@ -15,6 +15,7 @@ local GetNumGroupMembers = GetNumGroupMembers
local
IsInGroup
=
IsInGroup
local
IsInRaid
=
IsInRaid
local
UnitClass
=
UnitClass
local
UnitFactionGroup
=
UnitFactionGroup
local
UnitHealth
=
UnitHealth
local
UnitHealthMax
=
UnitHealthMax
local
UnitIsDead
=
UnitIsDead
...
...
@@ -591,6 +592,20 @@ ElvUF.Tags.Methods['name:long:abbreviate'] = function(unit)
return name
end
ElvUF.Tags.Events['
faction
:
icon
'] = '
UNIT_NAME_UPDATE
'
ElvUF.Tags.Methods['
faction
:
icon
'] = function(unit)
local faction = UnitFactionGroup(unit)
local str = ""
if faction == "Alliance" then
str = "|TInterface\\AddOns\\ElvUI_CustomTags\\media\\Alliance:0:0:0:-1|t"
elseif faction == "Horde" then
str = "|TInterface\\AddOns\\ElvUI_CustomTags\\media\\Horde:0:0:0:-1|t"
end
return str
end
ElvUF.Tags.Methods["classcolor:player"] = function()
local _, unitClass = UnitClass("player")
local String
...
...
ElvUI_CustomTags/media/Alliance.blp
0 → 100644
View file @
aa72c74d
File added
ElvUI_CustomTags/media/Horde.blp
0 → 100644
View file @
aa72c74d
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment