Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AllTheIDs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wowui
AllTheIDs
Commits
36d6c812
Commit
36d6c812
authored
Oct 05, 2015
by
Robin Schoonover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle item id for heirlooms in the heirloom collection, much like the toy box collection.
parent
38a31b56
Pipeline
#197
passed with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
GameTooltip.lua
GameTooltip.lua
+8
-0
No files found.
GameTooltip.lua
View file @
36d6c812
...
...
@@ -89,6 +89,14 @@ addon:HookTip("SetGlyphByID", function(self, id)
addon
:
AddIDLine
(
self
,
"Glyph"
,
id
)
end
)
addon
:
HookTip
(
"SetHeirloomByItemID"
,
function
(
tip
,
itemid
)
-- This won't cause the OnTooltipSetItem to be called, and the tooltip
-- won't actually be filled in during the same call either, so we need
-- to remember what item it was.
tip
.
_alltheid_type
=
"Item"
tip
.
_alltheid_id
=
itemid
end
)
addon
:
HookTip
(
"SetHyperlink"
,
function
(
self
,
link
)
local
_
,
_
,
name
,
id
=
strfind
(
link
,
"(%w+):(%d+)"
)
addon
:
AddIDLine
(
self
,
name
:
gsub
(
"^%l"
,
string.upper
),
id
)
...
...
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