WeakAuras

WeakAuras

206M Downloads

Next steps with Snippets

asaka-wa opened this issue ยท 0 comments

commented

Putting some ideas down for future updates to Snippets so they don't get lost.

  • Snippets that show only in their specific code block
  • Make Snippets from selection to prevent having to change windows to make a new snippet from a section of the current code.
  • Make Snippets actually be a function that returns the Snippet string. This is to allow for a Snippet that checks if VDT exists or not, but once implemented could allow for other useful stuff?

Additional Snippets:

local _, class, _, _, _, name = GetPlayerInfoByGUID(GUID) -- change this value
if name and class and RAID_CLASS_COLORS[class] then
    return RAID_CLASS_COLORS[class]:WrapTextInColorCode(name)
elseif name then
    return name 
end