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
c6e265c0
Commit
c6e265c0
authored
Oct 03, 2015
by
Robin Schoonover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show Item IDs for toys.
parent
8ce63cf6
Pipeline
#195
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
AllTheIDs.lua
AllTheIDs.lua
+19
-2
GameTooltip.lua
GameTooltip.lua
+8
-0
No files found.
AllTheIDs.lua
View file @
c6e265c0
...
...
@@ -82,7 +82,24 @@ function addon:HookTip(method, hookfunc)
end
end
addon
:
HookTipScript
(
"OnTooltipCleared"
,
function
(
self
)
self
.
_alltheid
=
nil
local
afterShowTips
=
{}
local
function
AfterShowHook
()
for
i
,
tip
in
ipairs
(
afterShowTips
)
do
if
not
tip
.
_alltheid
and
tip
.
_alltheid_type
then
addon
:
AddIDLine
(
tip
,
tip
.
_alltheid_type
,
tip
.
_alltheid_id
)
end
end
wipe
(
afterShowTips
)
end
addon
:
HookTipScript
(
"OnShow"
,
function
(
tip
)
tinsert
(
afterShowTips
,
tip
)
C_Timer
.
After
(
0
,
AfterShowHook
)
end
)
addon
:
HookTipScript
(
"OnTooltipCleared"
,
function
(
tip
)
tip
.
_alltheid_type
=
nil
tip
.
_alltheid_id
=
nil
tip
.
_alltheid
=
nil
end
)
GameTooltip.lua
View file @
c6e265c0
...
...
@@ -113,6 +113,14 @@ addon:HookTip("SetQuestLogCurrency", function(self, type, idx)
-- TODO GetQuestCurrencyInfo(type, idx) => name, texture, count
end
)
addon
:
HookTip
(
"SetToyByItemID"
,
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
(
"SetUnitAura"
,
function
(
self
,
unit
,
index
,
filter
)
local
_
,
_
,
_
,
_
,
_
,
_
,
_
,
_
,
_
,
_
,
spellID
=
UnitAura
(
unit
,
index
,
filter
)
addon
:
AddIDLine
(
self
,
"Spell"
,
spellID
)
...
...
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