Add new code snippets
This commit is contained in:
11
Complete Projects/trash/Button
Normal file
11
Complete Projects/trash/Button
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
local Button = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
|
||||
Button:SetWidth(150)
|
||||
Button:SetHeight(25)
|
||||
Button:SetPoint("TOP")
|
||||
Button:SetText("Dance")
|
||||
Button:RegisterForClicks("AnyUp")
|
||||
Button:SetScript("OnClick", function()
|
||||
DoEmote("dance", UnitName("target"))
|
||||
end )
|
||||
Reference in New Issue
Block a user