mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
24 lines
523 B
Lua
24 lines
523 B
Lua
local example = {}
|
|
example.title = "Checkbox"
|
|
example.category = "Object Demonstrations"
|
|
|
|
function example.func(loveframes, centerarea)
|
|
|
|
local frame = loveframes.Create("frame")
|
|
frame:SetName("Checkbox")
|
|
frame:SetHeight(85)
|
|
frame:CenterWithinArea(unpack(centerarea))
|
|
|
|
local checkbox1 = loveframes.Create("checkbox", frame)
|
|
checkbox1:SetText("Checkbox 1")
|
|
checkbox1:SetPos(5, 30)
|
|
|
|
local checkbox2 = loveframes.Create("checkbox", frame)
|
|
checkbox2:SetText("Checkbox 2")
|
|
checkbox2:SetPos(5, 60)
|
|
|
|
end
|
|
|
|
return example
|
|
|