WoW:API GetGlyphSocketInfo: Difference between revisions

→‎Examples: fixed code
(formatting, 3.1)
(→‎Examples: fixed code)
Line 18: Line 18:
   local enabled, glyphType, glyphSpellID, icon = GetGlyphSocketInfo(i);
   local enabled, glyphType, glyphSpellID, icon = GetGlyphSocketInfo(i);
   if ( enabled ) then
   if ( enabled ) then
   local link = [[API GetGlyphLink|GetGlyphLink]](i);-- Retrieves the Glyph's link (nil of no glyph in Socket);
   local link = [[API GetGlyphLink|GetGlyphLink]](i);-- Retrieves the Glyph's link ("" if no glyph in Socket);
   if ( link ) then
   if ( link ~= "") then
     DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." contains "..link);
     DEFAULT_CHAT_FRAME:AddMessage("Glyph Socket "..i.." contains "..link);
   else
   else
Anonymous user