Commit f8c231b6 authored by Blazeflack's avatar Blazeflack
Browse files

Added name:caps from Kazie

parent bfbc639c
## Interface: 70100 ## Interface: 70200
## Author: Blazeflack ## Author: Blazeflack
## Version: 1.03 ## Version: 1.04
## Title: |cff1784d1ElvUI|r |cff4beb2cCustomTags|r ## Title: |cff1784d1ElvUI|r |cff4beb2cCustomTags|r
## Notes: A collection of custom unitframe tags requested by users. ## Notes: A collection of custom unitframe tags requested by users.
## RequiredDeps: ElvUI ## RequiredDeps: ElvUI
......
...@@ -9,7 +9,7 @@ local _G = _G ...@@ -9,7 +9,7 @@ local _G = _G
local unpack, pairs, assert = unpack, pairs, assert local unpack, pairs, assert = unpack, pairs, assert
local twipe = table.wipe local twipe = table.wipe
local ceil, sqrt, floor, abs = math.ceil, math.sqrt, math.floor, math.abs local ceil, sqrt, floor, abs = math.ceil, math.sqrt, math.floor, math.abs
local format = string.format local format, strupper = string.format, strupper
--WoW API --WoW API
local IsInGroup = IsInGroup local IsInGroup = IsInGroup
local IsInRaid = IsInRaid local IsInRaid = IsInRaid
...@@ -529,6 +529,12 @@ ElvUF.Tags.Methods["deficit:name:colors"] = function(unit) ...@@ -529,6 +529,12 @@ ElvUF.Tags.Methods["deficit:name:colors"] = function(unit)
return String return String
end end
ElvUF.Tags.Events['name:caps'] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Methods['name:caps'] = function(unit)
local name = UnitName(unit)
return name ~= nil and strupper(name) or ''
end
ElvUF.Tags.Methods["classcolor:player"] = function() ElvUF.Tags.Methods["classcolor:player"] = function()
local _, unitClass = UnitClass("player") local _, unitClass = UnitClass("player")
local String local String
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment