Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetGlyphSocketInfo
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Returns information on a glyph socket. enabled, glyphType, glyphTooltipIndex, glyphSpellID, icon = GetGlyphSocketInfo(socketID[, talentGroup]); ==Arguments== ;socketID : Number - glyph [Glyph SocketID|socket index]] (1 to GetNumGlyphSockets() ) ;talentGroup : Optional Number - (dual) specialization index (1 to {{api|GetNumTalentGroups}}(...)). == Returns == ;enabled: Boolean - 1 if available, nil if locked. ;glyphType : Number - GLYPHTYPE_PRIME (0), GLYPHTYPE_MAJOR (1), or GLYPHTYPE_MINOR (2) ;glyphTooltipIndex : Number - Index to be used with GLYPH_SLOT_TOOLTIP# ;glyphSpellID : Number - spell ID of socketted glyph, nil if no glyph is socketed. ;icon : String - Glyph rune texture path. == Examples == The following code scans all the glyph sockets and prints out the status of each one. for i = 1, NUM_GLYPH_SLOTS do local enabled, glyphType, glyphTooltipIndex, glyphSpellID, icon = GetGlyphSocketInfo(i); if ( enabled ) then local link = [[API GetGlyphLink|GetGlyphLink]](i);-- Retrieves the Glyph's link ("" if no glyph in Socket); if ( link ~= "") then DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." contains "..link); else DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." is unlocked and empty!"); end else DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." is locked!"); end end == Notes == * {{api|GetSpellInfo}} can be used to translate glyphSpellID to a glyph name. * The talentGroup argument was added in [[Patch 3.1]]. * The glyphTooltipIndex argument was added in [[Patch 4.0.1]].
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)