Emote-Button

Ein einfacher Button zum ausf├╝hren eines Emotes.

Snippet

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 )
Posted by Pwnees at Sat, 06 Feb 2010 22:30:49 +0000