mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
21 lines
444 B
Lua
21 lines
444 B
Lua
local example = {}
|
|
example.title = "Multichoice"
|
|
example.category = "Object Demonstrations"
|
|
|
|
function example.func(loveframes, centerarea)
|
|
|
|
local frame = loveframes.Create("frame")
|
|
frame:SetName("Multichoice")
|
|
frame:SetSize(210, 60)
|
|
frame:CenterWithinArea(unpack(centerarea))
|
|
|
|
local multichoice = loveframes.Create("multichoice", frame)
|
|
multichoice:SetPos(5, 30)
|
|
|
|
for i=1, 10 do
|
|
multichoice:AddChoice(i)
|
|
end
|
|
|
|
end
|
|
|
|
return example |