Module:ScriptItem: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 816: Line 816:
local args = p.getArgs(frame)
local args = p.getArgs(frame)
if  true then return ''  end
local derivedTypes = {
local derivedTypes = {
ped     = {'Civilian', 'Player'},
ped     = {'Civilian', 'Player'},
Line 878: Line 877:
local rows = {}
local rows = {}
if args.type == 'variable' or args.type == 'function' then
if args.type == 'variable' or args.type == 'function' then
for i=1,(#parts)-1 do
for i=1,(#parts)-1,1 do
rows[i] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[i]).."</span>", "namespace" }
rows[i] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[i]).."</span>", "namespace" }
end
end
rows[#parts] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[#parts]).."</span>", p.properCase(args.type) }
rows[#parts] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(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[0] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[0]).."</span>", "Object (JS Object, Lua Userdata, Squirrel Userdata)" }
rows[1] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[1]).."</span>", "Object (JS Object, Lua Userdata, Squirrel Userdata)" }
rows[1] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[1]).."</span>", p.properCase(args.type) }
rows[2] = { "<span style=\"font-family: 'Source Code Pro', monospace;\">"..p.properCase(parts[2]).."</span>", p.properCase(args.type) }
end
end
if #rows > 0 then
if #rows > 0 then
6,834

edits