Add things
This commit is contained in:
parent
4d8312b79d
commit
00e1fd985d
28 changed files with 395 additions and 31 deletions
|
|
@ -41,6 +41,22 @@ function ns.button(x --[[Float]], y --[[Float]], width --[[Float]], height --[[F
|
|||
return string.format("button[%f,%f;%f,%f;%s;%s]\n", x, y, name or "", label or "")
|
||||
end
|
||||
|
||||
function ns.list(location, list, x, y, w, h)
|
||||
local out = {}
|
||||
for a = 0, w -1 do
|
||||
for b = 0, h -1 do
|
||||
out[#out +1] = "\
|
||||
image["
|
||||
out[#out +1] = a *1.25 +x -0.0625
|
||||
out[#out +1] = ","
|
||||
out[#out +1] = b *1.25 +y -0.0625
|
||||
out[#out +1] = ";1.14,1.14;rgt_other_button_bg.png;8,8]"
|
||||
end
|
||||
end
|
||||
out[#out +1] = string.format("list[%s;%s;%f,%f;%i,%i]", location, list, x, y, w, h)
|
||||
return table.concat(out)
|
||||
end
|
||||
|
||||
local function show_test_view()
|
||||
ui.begin()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue