6,834
edits
No edit summary |
No edit summary |
||
Line 891: | Line 891: | ||
rows[#parts] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..parts[#parts].."</span>", p.properCase(args.type) } | rows[#parts] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..parts[#parts].."</span>", p.properCase(args.type) } | ||
elseif args.type == 'property' or args.type == 'method' then | elseif args.type == 'property' or args.type == 'method' then | ||
rows[1] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[1]).."</span>", "Object | local text1 | ||
rows[2] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..parts[2].."</span>", p.properCase(args.type) } | if args.type == 'property' then | ||
text1 = 'Properties use the dot "." operator in JS, Lua, and Squirrel' | |||
else | |||
text1 = 'Methods use the dot "." operator in JS and Squirrel, or the colon operator ":" in Lua' | |||
end | |||
rows[1] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[1]).."</span>", "Object", "GTAC Types: Userdata type in Lua and Squirrel, or Object type in JS" } | |||
rows[2] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..parts[2].."</span>", p.properCase(args.type), text1 } | |||
end | end | ||
if #rows > 0 then | if #rows > 0 then | ||
table.insert(out, "<div style='margin-top: 20px;'></div>") | table.insert(out, "<div style='margin-top: 20px;'></div>") | ||
table.insert(out, "\n"..p.table(false, rows, { 120, 400 }, false)) | table.insert(out, "\n"..p.table(false, rows, { 120, 120, 400 }, false)) | ||
end | end | ||
end | end |
edits