Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

9
WA snippets/Buttons.lua Normal file
View File

@@ -0,0 +1,9 @@
function()
local r = WeakAuras.regions['julijatest'].region
local b = CreateFrame("Button", "WEAK AURA NAME HERE", r, "SecureActionButtonTemplate") --Does some crazy shit
b:SetAllPoints() --No idea
b:SetAttribute("unit", "player") --Target I guess?
b:SetAttribute("macro", "DN") --What do // sub macro for spell
b:SetAttribute("type", "macro") --What do again....? // sub macro for spell
end
--Goes with PLAYER_ENTERING_WORLD And only with it otherwise doesn't properly load for some reason