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
8ce63cf6
Commit
8ce63cf6
authored
Oct 03, 2015
by
Robin Schoonover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show Spell ID for mounts in mount collection.
parent
1d4b10ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
AllTheIDs.lua
AllTheIDs.lua
+11
-3
Other.lua
Other.lua
+15
-0
No files found.
AllTheIDs.lua
View file @
8ce63cf6
...
...
@@ -37,21 +37,29 @@ end
do
local
tmp
=
{}
function
addon
:
TextAppendID
(
fs
,
...
)
local
function
textAppendID
(
self
,
fs
,
div
,
...
)
local
line
=
self
:
IDLine
(
...
)
local
orig
=
fs
:
GetText
()
if
line
==
fs
.
_alltheid
and
strfind
(
orig
,
line
)
then
if
line
==
fs
.
_alltheid
and
orig
~=
nil
and
strfind
(
orig
,
line
)
then
return
end
wipe
(
tmp
)
tinsert
(
tmp
,
orig
)
tinsert
(
tmp
,
"
\n
"
)
tinsert
(
tmp
,
div
)
tinsert
(
tmp
,
line
)
fs
:
SetText
(
table.concat
(
tmp
,
""
))
fs
.
_alltheid
=
line
end
function
addon
:
TextAppendID
(
fs
,
...
)
textAppendID
(
self
,
fs
,
"
\n
"
,
...
)
end
function
addon
:
TextAppendID_NoNL
(
fs
,
...
)
textAppendID
(
self
,
fs
,
""
,
...
)
end
end
function
addon
:
HookTipScript
(
handler
,
func
)
...
...
Other.lua
View file @
8ce63cf6
...
...
@@ -32,6 +32,21 @@ function event_frame:ADDON_LOADED(addon_name)
end
event_frame
:
RegisterEvent
(
"ADDON_LOADED"
)
--
-- Mount Collection
--
OnAddOnLoaded
(
"Blizzard_Collections"
,
function
()
hooksecurefunc
(
"MountJournal_UpdateMountDisplay"
,
function
()
MountJournal
.
MountDisplay
.
InfoButton
.
Lore
:
SetText
(
descriptionText
)
local
spellID
=
MountJournal
.
MountDisplay
.
lastDisplayed
if
spellID
then
addon
:
TextAppendID_NoNL
(
MountJournal
.
MountDisplay
.
InfoButton
.
Lore
,
"Spell"
,
spellID
)
end
end
)
end
)
--
-- PetJournal
--
...
...
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