Forum: Lua/XML Help
12-05-10, 08:03 PM
|
Replies: 4
Views: 27,845
local button = CreateFrame('Button',...
local button = CreateFrame('Button', 'MyButtonName', UIParent)
button:SetPoint('CENTER')
button:SetSize(16, 16)
button:SetScript('OnClick', function()
-- do something
end)
<Ui>
|