LoveFrames/demo/examples/numberbox.lua

18 lines
411 B
Lua
Raw Normal View History

2019-03-06 23:19:58 +00:00
local example = {}
example.title = "Numberbox"
example.category = "Object Demonstrations"
function example.func(loveframes, centerarea)
local frame = loveframes.Create("frame")
frame:SetName("Numberbox")
frame:SetSize(210, 60)
frame:CenterWithinArea(unpack(centerarea))
local numberbox = loveframes.Create("numberbox", frame)
numberbox:SetPos(5, 30)
numberbox:SetSize(200, 25)
end
return example