Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
E
ElvUI
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ElvUI Project
  • ElvUI
  • Issues
  • #13

Closed
Open
Created Aug 12, 2017 by Martin@sezz

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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None