forked from Aviarita/LuaExtended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stdlib.sublime-completions
179 lines (163 loc) · 15.9 KB
/
stdlib.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"scope" : "source.luae - string",
"completions":
[
// Constants
"_G",
"_VERSION",
{ "trigger": "package_cpath", "contents": "package.cpath" },
{ "trigger": "package_loaded", "contents": "package.loaded" },
{ "trigger": "package_loaders", "contents": "package.loaders" },
{ "trigger": "package_path", "contents": "package.path" },
{ "trigger": "package_preload", "contents": "package.preload" },
{ "trigger": "math_pi", "contents": "math.pi" },
{ "trigger": "math_huge", "contents": "math.huge" },
// The rest
{ "trigger": "collectgarbage( opt, arg )", "contents": "collectgarbage( ${1:opt}, ${2:arg} )" },
{ "trigger": "getfenv( f )", "contents": "getfenv( ${1:f} )" },
{ "trigger": "getmetatable( object )", "contents": "getmetatable( ${1:object} )" },
{ "trigger": "ipairs( t )", "contents": "ipairs( ${1:t} )" },
{ "trigger": "load( func, chunkname )", "contents": "load( ${1:func}, ${2:chunkname} )" },
{ "trigger": "loadstring( string, chunkname )", "contents": "loadstring( ${1:string}, ${2:chunkname} )" },
{ "trigger": "next( table, index )", "contents": "next( ${1:table}, ${2:index} )" },
{ "trigger": "pairs( t )", "contents": "pairs( ${1:t} )" },
{ "trigger": "pcall( f, arg1, ... )", "contents": "pcall( ${1:f}, ${2:arg1}, ${3:...} )" },
{ "trigger": "print( ... )", "contents": "print( ${1:...} )" },
{ "trigger": "rawequal( v1, v2 )", "contents": "rawequal( ${1:v1}, ${2:v2} )" },
{ "trigger": "rawget( table, index )", "contents": "rawget( ${1:table}, ${2:index} )" },
{ "trigger": "rawset( table, index, value )", "contents": "rawset( ${1:table}, ${2:index}, ${3:value} )" },
{ "trigger": "select( index, ... )", "contents": "select( ${1:index}, ${2:...} )" },
{ "trigger": "setfenv( f, table )", "contents": "setfenv( ${1:f}, ${2:table} )" },
{ "trigger": "setmetatable( table, metatable )", "contents": "setmetatable( ${1:table}, ${2:metatable} )" },
{ "trigger": "tonumber( e, base )", "contents": "tonumber( ${1:e}, ${2:base} )" },
{ "trigger": "tostring( e )", "contents": "tostring( ${1:e} )" },
{ "trigger": "type( v )", "contents": "type( ${1:v} )" },
{ "trigger": "unpack( list, i, j )", "contents": "unpack( ${1:list}, ${2:i}, ${3:j} )" },
{ "trigger": "xpcall( f, err )", "contents": "xpcall( ${1:f}, ${2:err} )" },
{ "trigger": "module( name, ... )", "contents": "module( ${1:name}, ${2:...} )" },
{ "trigger": "require( modname )", "contents": "require( ${1:modname} )" },
{ "trigger": "package_loadlib( libname, funcname )", "contents": "package.loadlib( ${1:libname}, ${2:funcname} )" },
{ "trigger": "package_seeall( module )", "contents": "package.seeall( ${1:module} )" },
{ "trigger": "string_byte( s, i, j )", "contents": "string.byte( ${1:s}, ${2:i}, ${3:j} )" },
{ "trigger": "string_char( ... )", "contents": "string.char( ${1:...} )" },
{ "trigger": "string_dump( function )", "contents": "string.dump( ${1:func} )" },
{ "trigger": "string_find( s, pattern, init, plain )", "contents": "string.find( ${1:s}, ${2:pattern}, ${3:init}, ${4:plain} )" },
{ "trigger": "string_format( formatstring, ... )", "contents": "string.format( ${1:formatstring}, ${2:...} )" },
{ "trigger": "string_gmatch( s, pattern )", "contents": "string.gmatch( ${1:s}, ${2:pattern} )" },
{ "trigger": "string_gsub( s, pattern, repl, n )", "contents": "string.gsub( ${1:s}, ${2:pattern}, ${3:repl}, ${4:n} )" },
{ "trigger": "string_len( s )", "contents": "string.len( ${1:s} )" },
{ "trigger": "string_lower( s )", "contents": "string.lower( ${1:s} )" },
{ "trigger": "string_match( s, pattern, init )", "contents": "string.match( ${1:s}, ${2:pattern}, ${3:init} )" },
{ "trigger": "string_rep( s, n )", "contents": "string.rep( ${1:s}, ${2:n} )" },
{ "trigger": "string_reverse( s )", "contents": "string.reverse( ${1:s} )" },
{ "trigger": "string_sub( s, i, j )", "contents": "string.sub( ${1:s}, ${2:i}, ${3:j} )" },
{ "trigger": "string_upper( s )", "contents": "string.upper( ${1:s} )" },
{ "trigger": "table_concat( table, sep, i, j )", "contents": "table.concat( ${1:table}, ${2:sep}, ${3:i}, ${4:j} )" },
{ "trigger": "table_insert( table, pos, value )", "contents": "table.insert( ${1:table}, ${2:pos}, ${3:value} )" },
{ "trigger": "table_maxn( table )", "contents": "table.maxn( ${1:table} )" },
{ "trigger": "table_remove( table, pos )", "contents": "table.remove( ${1:table}, ${2:pos} )" },
{ "trigger": "table_sort( table, comp )", "contents": "table.sort( ${1:table}, ${2:comp} )" },
{ "trigger": "math_abs( x )", "contents": "math.abs( ${1:x} )" },
{ "trigger": "math_acos( x )", "contents": "math.acos( ${1:x} )" },
{ "trigger": "math_asin( x )", "contents": "math.asin( ${1:x} )" },
{ "trigger": "math_atan( x )", "contents": "math.atan( ${1:x} )" },
{ "trigger": "math_atan2( y, x )", "contents": "math.atan2( ${1:y}, ${2:x} )" },
{ "trigger": "math_ceil( x )", "contents": "math.ceil( ${1:x} )" },
{ "trigger": "math_cos( x )", "contents": "math.cos( ${1:x} )" },
{ "trigger": "math_cosh( x )", "contents": "math.cosh( ${1:x} )" },
{ "trigger": "math_deg( x )", "contents": "math.deg( ${1:x} )" },
{ "trigger": "math_exp( x )", "contents": "math.exp( ${1:x} )" },
{ "trigger": "math_floor( x )", "contents": "math.floor( ${1:x} )" },
{ "trigger": "math_fmod( x, y )", "contents": "math.fmod( ${1:x}, ${2:y} )" },
{ "trigger": "math_frexp( x )", "contents": "math.frexp( ${1:x} )" },
{ "trigger": "math_ldexp( m, e )", "contents": "math.ldexp( ${1:m}, ${2:e} )" },
{ "trigger": "math_log( x )", "contents": "math.log( ${1:x} )" },
{ "trigger": "math_log10( x )", "contents": "math.log10( ${1:x} )" },
{ "trigger": "math_max( x, ... )", "contents": "math.max( ${1:x}, ${2:...} )" },
{ "trigger": "math_min( x, ... )", "contents": "math.min( ${1:x}, ${2:...} )" },
{ "trigger": "math_modf( x )", "contents": "math.modf( ${1:x} )" },
{ "trigger": "math_pow( x, y )", "contents": "math.pow( ${1:x}, ${2:y} )" },
{ "trigger": "math_rad( x )", "contents": "math.rad( ${1:x} )" },
{ "trigger": "math_random( m, n )", "contents": "math.random( ${1:m}, ${2:n} )" },
{ "trigger": "math_randomseed( x )", "contents": "math.randomseed( ${1:x} )" },
{ "trigger": "math_sin( x )", "contents": "math.sin( ${1:x} )" },
{ "trigger": "math_sinh( x )", "contents": "math.sinh( ${1:x} )" },
{ "trigger": "math_sqrt( x )", "contents": "math.sqrt( ${1:x} )" },
{ "trigger": "math_tan( x )", "contents": "math.tan( ${1:x} )" },
{ "trigger": "math_tanh( x )", "contents": "math.tanh( ${1:x} )" },
// Gamesense api
{ "trigger": "client_set_event_callback(event_name, callback)", "contents": "client.set_event_callback(${1:event_name}, ${2:callback})" },
{ "trigger": "client_log(msg, ...)", "contents": "client.log(${1:msg}, ${2:...})" },
{ "trigger": "client_color_log(r, g, b, msg, ..)", "contents": "client.color_log(${1:r}, ${2:g}, ${3:b}, ${4:msg}, ${5:...})" },
{ "trigger": "client_exec(cmd, ...)", "contents": "client.exec(${1:cmd}, ${2:...})" },
{ "trigger": "client_userid_to_entindex(entity_index)", "contents": "client.userid_to_entindex(${1:entity_index})" },
{ "trigger": "client_random_int(minimum, maximum)", "contents": "client.random_int(${1:minimum}, ${2:maximum})" },
{ "trigger": "client_random_float(minimum, maximum)", "contents": "client.random_float(${1:minimum}, ${2:maximum})" },
{ "trigger": "client_get_cvar(cvar_name)", "contents": "client.get_cvar(${1:cvar_name})" },
{ "trigger": "client_set_cvar(cvar_name, value)", "contents": "client.set_cvar(${1:cvar_name}, ${2:value})" },
{ "trigger": "client_draw_hitboxes(entindex, duration, hitboxes, r, g, b)", "contents": "client.draw_hitboxes(${1:entindex}, ${2:duration}, ${3:hitboxes}, ${4:r}, ${5:g}, ${6:b})" },
{ "trigger": "client_draw_debug_text(x, y, z, line_offset, duration, r, g, b, a, ...)", "contents": "client.draw_debug_text(${1:x}, ${2:y}, ${3:z}, ${4:line_offset}, ${5:duration}, ${6:r}, ${7:g}, ${8:b}, ${9:a}, ${10:...})" },
{ "trigger": "client_draw_text(paint_ctx, x, y, r, g, b, a, flags, max_width, ...)", "contents": "client.draw_text(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:r}, ${5:g}, ${6:b}, ${7:a}, ${8:flags}, ${9:max_width}, ${10:...})" },
{ "trigger": "client_draw_rectangle(paint_ctx, x, y, w, h, r, g, b, a)", "contents": "client.draw_rectangle(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:w}, ${5:h}, ${6:r}, ${7:g}, ${8:b}, ${9:a})" },
{ "trigger": "client_draw_line(paint_ctx, xa, ya, xb, yb, r, g, b, a)", "contents": "client.draw_line(${1:paint_ctx}, ${2:xa}, ${3:ya}, ${4:xb}, ${5:yb}, ${6:r}, ${7:g}, ${8:b}, ${9:a})" },
{ "trigger": "client_draw_gradient(paint_ctx, x, y, w, h, r1, g1, b1, a1, r2, g2, b2, a2, ltr)", "contents": "client.draw_gradient(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:w}, ${5:h}, ${6:r1}, ${7:g1}, ${8:b1}, ${9:a1}, ${10:r2}, ${11:g2}, ${12:b2}, ${13:a2}, ${14:ltr},)" },
{ "trigger": "client_draw_circle(paint_ctx, x, y, r, g, b, a, radius, start_degrees, percentage)", "contents": "client.draw_circle(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:r}, ${5:g}, ${6:b}, ${7:a}, ${8:radius}, ${9:start_degrees}, ${10:percentage})" },
{ "trigger": "client_draw_circle_outline(paint_ctx, x, y, r, g, b, a, radius, start_degrees, percentage, thickness)", "contents": "client.draw_circle_outline(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:r}, ${5:g}, ${6:b}, ${7:a}, ${8:radius}, ${9:start_degrees}, ${10:percentage}, ${11:thickness})" },
{ "trigger": "client_draw_indicator(paint_ctx, r, g, b, a, ...)", "contents": "client.draw_indicator(${1:paint_ctx}, ${2:r}, ${3:g}, ${4:b}, ${5:a}, ${6:...})" },
{ "trigger": "client_world_to_screen(paint_ctx, x, y, z)", "contents": "client.world_to_screen(${1:paint_ctx}, ${2:x}, ${3:y}, ${4:z})" },
{ "trigger": "client_timestamp()", "contents": "client.timestamp()" },
{ "trigger": "client_system_time()", "contents": "client.system_time()" },
{ "trigger": "client_screen_size()", "contents": "client.screen_size()" },
{ "trigger": "client_latency()", "contents": "client.latency()" },
{ "trigger": "client_camera_angles()", "contents": "client.camera_angles()" },
{ "trigger": "client_eye_position()", "contents": "client.eye_position()" },
{ "trigger": "client_visible(x, y, z)", "contents": "client.visible(${1:x}, ${2:y}, ${3:z})" },
{ "trigger": "client_trace_line(skip_entindex, from_x, from_y, from_z, to_x, to_y, to_z)", "contents": "client.trace_line(${1:skip_entindex}, ${2:from_x}, ${3:from_y}, ${4:from_z}, ${5:to_x}, ${6:to_y}, ${7:to_z})" },
{ "trigger": "client_delay_call(delay, callback, ...)", "contents": "client.delay_call(${1:delay}, ${2:callback}, ${3:...})" },
{ "trigger": "client_set_clan_tag(string)", "contents": "client.visible(${1:string})" },
{ "trigger": "entity_get_local_player()", "contents": "entity.get_local_player()" },
{ "trigger": "entity_get_all(classname)", "contents": "entity.get_all(${1:classname})" },
{ "trigger": "entity_get_players(enemies_only)", "contents": "entity.get_players(${1:enemies_only})" },
{ "trigger": "entity_get_classname(entity)", "contents": "entity.get_classname(${1:entity})" },
{ "trigger": "entity_get_prop(ent, propname, array_index)", "contents": "entity.get_prop(${1:ent}, ${2:propname}, ${3:array_index})" },
{ "trigger": "entity_set_prop(ent, propname, value, array_index)", "contents": "entity.set_prop(${1:ent}, ${2:propname}, ${3:value}, ${4:array_index})" },
{ "trigger": "entity_is_alive(entity_index)", "contents": "entity.is_alive(${1:entity_index})" },
{ "trigger": "entity_is_enemy(entity_index)", "contents": "entity.is_enemy(${1:entity_index})" },
{ "trigger": "entity_is_dormant(entity_index)", "contents": "entity.is_dormant(${1:entity_index})" },
{ "trigger": "entity_get_player_name(entity_index)", "contents": "entity.get_player_name(${1:entity_index})" },
{ "trigger": "entity_get_player_weapon(entity_index)", "contents": "entity.get_player_weapon(${1:entity_index})" },
{ "trigger": "entity_hitbox_position(entity_index, hitbox)", "contents": "entity.hitbox_position(${1:entity_index}, ${2:hitbox})" },
{ "trigger": "entity_get_steam64(entity_index)", "contents": "entity.get_steam64(${1:entity_index})" },
{ "trigger": "entity_get_bounding_box(paint_ctx, entity_index)", "contents": "entity.get_bounding_box(${1:paint_ctx}, ${2:entity_index})" },
{ "trigger": "globals_realtime()", "contents": "globals.realtime()" },
{ "trigger": "globals_curtime()", "contents": "globals.curtime()" },
{ "trigger": "globals_absoluteframetime()", "contents": "globals.absoluteframetime()" },
{ "trigger": "globals_frametime()", "contents": "globals.frametime()" },
{ "trigger": "globals_framecount()", "contents": "globals.framecount()" },
{ "trigger": "globals_maxplayers()", "contents": "globals.maxplayers()" },
{ "trigger": "globals_tickcount()", "contents": "globals.tickcount()" },
{ "trigger": "globals_tickinterval()", "contents": "globals.tickinterval()" },
{ "trigger": "globals_mapname()", "contents": "globals.mapname()" },
{ "trigger": "ui_reference(tab, container, name)", "contents": "ui.reference(${1:tab}, ${2:container}, ${3:name})" },
{ "trigger": "ui_new_checkbox(tab, container, name)", "contents": "ui.new_checkbox(${1:tab}, ${2:container}, ${3:name})" },
{ "trigger": "ui_new_hotkey(tab, container, name)", "contents": "ui.new_hotkey(${1:tab}, ${2:container}, ${3:name})" },
{ "trigger": "ui_new_button(tab, container, name, callback)", "contents": "ui.new_button(${1:tab}, ${2:container}, ${3:name}, ${4:callback})" },
{ "trigger": "ui_new_slider(tab, container, name, min, max, init_value, show_tooltip, unit, scale, tooltips)", "contents": "ui.new_slider(${1:tab}, ${2:container}, ${3:name}, ${4:min}, ${5:max}, ${6:init_value}, ${7:show_tooltip}, ${8:unit}, ${9:scale}, ${10:tooltips})" },
{ "trigger": "ui_new_combobox(tab, container, name, ...)", "contents": "ui.new_combobox(${1:tab}, ${2:container}, ${3:name}, ${4:...})" },
{ "trigger": "ui_new_multiselect(tab, container, name, ...)", "contents": "ui.new_multiselect(${1:tab}, ${2:container}, ${3:name}, ${4:...})" },
{ "trigger": "ui_new_color_picker(tab, container, name, r, g, b, a)", "contents": "ui.new_color_picker(${1:tab}, ${2:container}, ${3:name}, ${4:r}, ${5:g}, ${6:b}, ${7:a})" },
{ "trigger": "ui_set(item, value, ...)", "contents": "ui.set(${1:item}, ${2:value}, ${3:...})" },
{ "trigger": "ui_get(item)", "contents": "ui.get(${1:item})" },
{ "trigger": "ui_set_callback(item, callback)", "contents": "ui.set_callback(${1:item}, ${2:callback})" },
{ "trigger": "ui_set_visible(item, visible)", "contents": "ui.set_visible(${1:item}, ${2:visible})" },
{ "trigger": "ui_is_menu_open()", "contents": "ui.is_menu_open()" },
{ "trigger": "renderer_text(x, y, r, g, b, a, flags, max_width, ...)", "contents": "renderer.text(${1:x}, ${2:y}, ${3:r}, ${4:g}, ${5:b}, ${6:a}, ${7:flags}, ${8:max_width}, ${9:...})" },
{ "trigger": "renderer_rectangle(x, y, w, h, r, g, b, a)", "contents": "renderer.rectangle(${1:x}, ${2:y}, ${3:w}, ${4:h}, ${5:r}, ${6:g}, ${7:b}, ${8:a})" },
{ "trigger": "renderer_line(xa, ya, xb, yb, r, g, b, a)", "contents": "renderer.line(${1:xa}, ${2:ya}, ${3:xb}, ${4:yb}, ${5:r}, ${6:g}, ${7:b}, ${8:a})" },
{ "trigger": "renderer_gradient(x, y, w, h, r1, g1, b1, a1, r2, g2, b2, a2, ltr)", "contents": "renderer.gradient(${1:x}, ${2:y}, ${3:w}, ${4:h}, ${5:r1}, ${6:g1}, ${7:b1}, ${8:a1}, ${9:r2}, ${10:g2}, ${11:b2}, ${12:a2}, ${13:ltr})" },
{ "trigger": "renderer_circle(x, y, r, g, b, a, radius, start_degrees, percentage)", "contents": "renderer.circle(${1:x}, ${2:y}, ${3:r}, ${4:g}, ${5:b}, ${6:a}, ${7:radius}, ${8:start_degrees}, ${9:percentage})" },
{ "trigger": "renderer_circle_outline(x, y, r, g, b, a, radius, start_degrees, percentage, thickness)", "contents": "renderer.circle_outline(${1:x}, ${2:y}, ${3:r}, ${4:g}, ${5:b}, ${6:a}, ${7:radius}, ${8:start_degrees}, ${9:percentage}, ${10:thickness})" },
{ "trigger": "renderer_indicator(r, g, b, a, ...)", "contents": "renderer.indicator(${1:r}, ${2:g}, ${3:b}, ${4:a}, ${5:...})" },
{ "trigger": "renderer_world_to_screen(x, y, z)", "contents": "renderer.world_to_screen(${1:x}, ${2:y}, ${3:z})" },
]
}