Lua tooltips

This commit is contained in:
2012-10-17 11:27:31 +02:00
parent bcbddf1b2c
commit 00159095ed
7 changed files with 90 additions and 15 deletions
@@ -1,10 +1,11 @@
local frame = CreateFrame('Frame');
frame.X = 100;
frame.X = 100;
local button = CreateFrame('Button', frame);
button:SetTexture('images/Enter');
button.Width = 100;
button.Height = 50;
button.OnClick = function(clickPos)
Console.WriteLine(clickPos.X .. ' ' .. clickPos.Y);
end
button.OnClick = function(clickPos)
Console.WriteLine(clickPos.X .. ' ' .. clickPos.Y)
end