summaryrefslogtreecommitdiff
path: root/streetsmod/forms.lua
blob: f4126109fa66d2dca5d87a5a41b9a34ef60e611d (plain)
1
2
3
4
5
6
7
8
9
10
streets.forms.chatcmd = smartfs.create("streets:chatcmd", function(state)
	state:size(10,6)
	local tlist = state:element("list", { pos={x=0,y=1}, size={w=6,h=5}, name = "streets:chatcmd_modlist" } )
	tlist:removeItem()
	for k, v in pairs(streets.extendedBy) do
		tlist:addItem(tostring(k) .. " " .. S("installed") .. ": " .. tostring(v))
	end
	state:label(6.5, 1, "streets:chatcmd_version", S("Running version") .. ": " .. streets.version)
	state:label(6.5, 1.5, "streets:chatcmd_loadtime", S("Load time") .. ": " .. round(streets.load.fin - streets.load.start,4) .. "s")
end)