mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
18 lines
411 B
Lua
18 lines
411 B
Lua
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 |