-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUntitled-2.lua
23 lines (14 loc) · 1.01 KB
/
Untitled-2.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local macroBtn = CreateFrame("Button", "myMacroButton", UIParent, "SecureActionButtonTemplate")
macroBtn:SetAttribute("type1", "macro") -- left click causes macro
macroBtn:SetAttribute("macrotext1", "/raid zomg a left click!") -- text for macro on left click
/run local macroBtn = CreateFrame("Button", "myMacroButton", UIParent, "SecureActionButtonTemplate") macroBtn:SetAttribute("type1", "macro") macroBtn:SetAttribute("macrotext1", "/party zomg a left click!")
/run local mb = CreateFrame("Button", "mb", UIParent, "SecureActionButtonTemplate") btn:SetAttribute("type", "spell") btn:SetAttribute("spell", "奥术射击") btn:SetAttribute("target", "target")
function()
local btn = CreateFrame("Button", "killcreature", UIParent, "SecureActionButtonTemplate")
btn:SetAttribute("type", "spell")
btn:SetAttribute("spell", "奥术射击")
btn:SetAttribute("target", "target")
end
/run print(mb:GetAttribute("target"))
/run mb:SetAttribute("spell", "奥术射击")
/run mb:SetAttribute("target", "训练假人")