oUF tags use OnUpdate instead of the assigned events when they contain > or <
Literals can be pre- or appended by separating them with a
>
before or<
after the function name. The literals will be only displayed when the function returns a non-nil value. I.e."[perhp<%]"
will display the current health as a percentage of the maximum health followed by the % sign.
Sample tag:
[curartifactpower:short]/[maxartifactpower:short][ (>bagartifactpower:short<)][mouseover]
Fix:
diff -Nuar ElvUI/Libraries/oUF/elements/tags.lua ElvUI-OptionalTags/Libraries/oUF/elements/tags.lua
--- ElvUI/Libraries/oUF/elements/tags.lua 2017-08-12 12:36:01.408293100 +0200
+++ ElvUI-OptionalTags/Libraries/oUF/elements/tags.lua 2017-08-12 12:37:10.561835400 +0200
@@ -661,8 +661,9 @@
local containsOnUpdate
for tag in tagstr:gmatch(_PATTERN) do
- if not tagEvents[tag:sub(2, -2)] then
- containsOnUpdate = onUpdateDelay[tag:sub(2, -2)] or 0.15;
+ tag = getTagName(tag)
+ if not tagEvents[tag] then
+ containsOnUpdate = onUpdateDelay[tag] or 0.15;
end
end