6,865
edits
No edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 15: | Line 15: | ||
['Game'] = {'gta.game', 'gta.standardControls', 'gta.gameSpeed', 'gta.loadDFF', 'gta.loadTXD', 'gta.loadCOL'}, | ['Game'] = {'gta.game', 'gta.standardControls', 'gta.gameSpeed', 'gta.loadDFF', 'gta.loadTXD', 'gta.loadCOL'}, | ||
['GameStat'] = {'gta.setGameStat', 'gta.getGameStat'}, | ['GameStat'] = {'gta.setGameStat', 'gta.getGameStat'}, | ||
['GTAIV'] = {'OnAddIVNetworkEvent'}, | |||
['GUI'] = {'OnGUIClick'}, | ['GUI'] = {'OnGUIClick'}, | ||
['Key'] = {'isScancodePressed', 'OnCharacter'}, | ['Key'] = {'isScancodePressed', 'OnCharacter'}, | ||
| Line 38: | Line 39: | ||
-- Category Names. (String(s) to look for in an item name, case-INsensitive.) | -- Category Names. (String(s) to look for in an item name, case-INsensitive.) | ||
'Blip', 'Building', 'Camera', 'Chatbox', 'Cheat', 'Client', 'Command', 'Cursor', 'Debug', 'Dodo', | 'Blip', 'Building', 'Camera', 'Chatbox', 'Cheat', 'Client', 'Command', 'Cursor', 'Debug', 'Dodo', | ||
'Element', 'Entity', 'Event', 'File', 'Font', 'Garage', 'HTTP', 'HUD', 'Key', 'Mission', 'Mouse', 'NetFlags', 'Network', 'Object', | 'Element', 'Entity', 'Event', 'File', 'Font', 'Garage', 'GTAIV', 'HTTP', 'HUD', 'Key', 'Mission', 'Mouse', 'NetFlags', 'Network', 'Object', | ||
'Pause', 'Ped', 'Pickup', 'Player', 'Process', 'Render', 'Resource', 'Screen', 'Socket', 'Sphere', 'Time', 'Vehicle', 'Weather', 'World' | 'Pause', 'Ped', 'Pickup', 'Player', 'Process', 'Render', 'Resource', 'Screen', 'Socket', 'Sphere', 'Time', 'Vehicle', 'Weather', 'World' | ||
} | } | ||
| Line 454: | Line 455: | ||
local isProbablyOptional = text:sub(1, 1) == '[' | local isProbablyOptional = text:sub(1, 1) == '[' | ||
if isProbablyOptional then | if isProbablyOptional then | ||
local optionalEndIndex = | local optionalEndIndex = text:find(']', 2, true) | ||
if optionalEndIndex then | if optionalEndIndex then | ||
parts.optional = true | parts.optional = true | ||
| Line 806: | Line 807: | ||
local entries = p.getIndexedArgs(frame, data2[1]) | local entries = p.getIndexedArgs(frame, data2[1]) | ||
for i2, entry in ipairs(entries) do | for i2, entry in ipairs(entries) do | ||
local entry2 = "'''Example "..exampleIndex.." - "..data2[2]..":'''<br>"..p.loadTemplate(frame, 'CodeSyntax', {entry | local entry2 = "'''Example "..exampleIndex.." - "..data2[2]..":'''<br>"..p.loadTemplate(frame, 'CodeSyntax', {entry,id='example_'..exampleIndex}) | ||
table.insert(examples, entry2) | table.insert(examples, entry2) | ||
exampleIndex = exampleIndex + 1 | exampleIndex = exampleIndex + 1 | ||
edits