Skip to content

Commit

Permalink
Merge pull request #2 from Loki214/master
Browse files Browse the repository at this point in the history
Some additions from @Loki214
  • Loading branch information
TheLetslook authored Sep 10, 2017
2 parents e69e30d + 006e74d commit f207f80
Showing 1 changed file with 211 additions and 7 deletions.
218 changes: 211 additions & 7 deletions snippets/lua.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"string.find": {
"prefix": "string.find",
"body": "string.find( ${1:str}, ${2:index})",
"body": "string.find( ${1:str}, ${2:index} )",
"description": "",
"scope": "source.lua"
},
Expand Down Expand Up @@ -2224,7 +2224,7 @@
},
"interpolateBetween": {
"prefix": "interpolateBetween",
"body": "interpolateBetween( ${1:float x1}, ${2:float y1}, ${3:float z1}, ${4:float x2}, ${5:float y2}, ${6:float z2}, ${7:float fProgress}, ${8:string strEasingType}, [ ${9:float fEasingPeriod}, ${10:float fEasingAmplitude}, ${11:float fEasingOvershoot }] )",
"body": "interpolateBetween( ${1:float x1}, ${2:float y1}, ${3:float z1}, ${4:float x2}, ${5:float y2}, ${6:float z2}, ${7:float fProgress}, ${8:string strEasingType}, [ ${9:float fEasingPeriod}, ${10:float fEasingAmplitude}, ${11:float fEasingOvershoot }] )",
"description": "Server-side",
"scope": "source.lua"
},
Expand Down Expand Up @@ -2836,7 +2836,7 @@
},
"setAccountPassword": {
"prefix": "setAccountPassword",
"body": "setAccountPassword( ${1:account theAccount}, ${2:string password} )",
"body": "setAccountPassword( ${1:account theAccount}, ${2:string password}, ${2: string passwordType=\"plaintext\"} )",
"description": "Server-side",
"scope": "source.lua"
},
Expand Down Expand Up @@ -4267,6 +4267,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"createBrowser": {
"prefix": "createBrowser",
"body": "createBrowser( ${1:int width}, ${2:int height}, ${3:bool isLocal} [, ${4:bool transparent = false} ] )",
"description": "Server-side",
"scope": "source.lua"
},
"createColCircle": {
"prefix": "createColCircle",
"body": "createColCircle( ${1:float fX}, ${2:float fY}, ${3:float radius} )",
Expand Down Expand Up @@ -4327,6 +4333,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"createLight": {
"prefix": "createLight",
"body": "createLight( ${1:int lightType}, ${2:float posX}, ${3:float posY}, ${4:float posZ [}, ${5:float radius = 3}, ${6:int r = 255}, ${7:int g = 0}, ${8:int b = 0}, ${9:float dirX = 0}, ${10:float dirY = 0}, ${11:float dirZ = 0}, ${12:bool createsShadow = false} ] )",
"description": "Server-side",
"scope": "source.lua"
},
"createMarker": {
"prefix": "createMarker",
"body": "createMarker( ${1:float x}, ${2:float y}, ${3:float z }[, ${4:string theType = }\"checkpoint\", ${5:float size = 4.0}, ${6:int r = 0}, ${7:int g = 0}, ${8:int b = 255}, ${9:int a = 255}, visibleTo = getRootElement( ) ] )",
Expand Down Expand Up @@ -4729,6 +4741,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"executeBrowserJavascript": {
"prefix": "executeBrowserJavascript",
"body": "executeBrowserJavascript( ${1:browser webBrowser}, ${2:string jsCode} )",
"description": "Server-side",
"scope": "source.lua"
},
"executeCommandHandler": {
"prefix": "executeCommandHandler",
"body": "executeCommandHandler( ${1:string commandName}, ${2:player thePlayer}, [ ${3:string args }] )",
Expand Down Expand Up @@ -4843,6 +4861,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"focusBrowser": {
"prefix": "focusBrowser",
"body": "focusBrowser( ${1:browser webBrowser} )",
"description": "Server-side",
"scope": "source.lua"
},
"fromJSON": {
"prefix": "fromJSON",
"body": "fromJSON( ${1:string json} )",
Expand Down Expand Up @@ -5005,6 +5029,36 @@
"description": "Client-side",
"scope": "source.lua"
},
"getBrowserProperty": {
"prefix": "getBrowserProperty",
"body": "getBrowserProperty( ${1:browser theBrowser}, ${2:string key} )",
"description": "Server-side",
"scope": "source.lua"
},
"getBrowserSource": {
"prefix": "getBrowserSource",
"body": "getBrowserSource( ${1:browser theBrowser}, ${2:funciton callback} )",
"description": "Server-side",
"scope": "source.lua"
},
"getBrowserTitle": {
"prefix": "getBrowserTitle",
"body": "getBrowserTitle( ${1:browser theBrowser} )",
"description": "Server-side",
"scope": "source.lua"
},
"getBrowserURL": {
"prefix": "getBrowserURL",
"body": "getBrowserURL( ${1:browser theBrowser} )",
"description": "Server-side",
"scope": "source.lua"
},
"getBrowserVolume": {
"prefix": "getBrowserVolume",
"body": "getBrowserVolume( ${1:browser theBrowser} )",
"description": "Server-side",
"scope": "source.lua"
},
"getCameraGoggleEffect": {
"prefix": "getCameraGoggleEffect",
"body": "getCameraGoggleEffect( )",
Expand All @@ -5017,6 +5071,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"getCameraFieldOfView": {
"prefix": "getCameraFieldOfView",
"body": "getCameraFieldOfView( ${1:string cameraMode} )",
"description": "Client-side",
"scope": "source.lua"
},
"getCameraTarget": {
"prefix": "getCameraTarget",
"body": "getCameraTarget( ${1:player thePlayer} )",
Expand All @@ -5029,6 +5089,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"getCameraShakeLevel": {
"prefix": "getCameraShakeLevel",
"body": "getCameraShakeLevel( )",
"description": "Client-side",
"scope": "source.lua"
},
"getChatboxLayout": {
"prefix": "getChatboxLayout",
"body": "getChatboxLayout( [ ${1:string CVar }] )",
Expand Down Expand Up @@ -5377,6 +5443,30 @@
"description": "Client-side",
"scope": "source.lua"
},
"getLightType": {
"prefix": "getLightType",
"body": "getLightType( ${1:light theLight } )",
"description": "Client-side",
"scope": "source.lua"
},
"getLightRadius": {
"prefix": "getLightRadius",
"body": "getLightRadius( ${1:light theLight } )",
"description": "Client-side",
"scope": "source.lua"
},
"getLightColor": {
"prefix": "getLightColor",
"body": "getLightColor( ${1:light theLight } )",
"description": "Client-side",
"scope": "source.lua"
},
"getLightDirection": {
"prefix": "getLightDirection",
"body": "getLightDirection( ${1:light theLight } )",
"description": "Client-side",
"scope": "source.lua"
},
"getLocalization": {
"prefix": "getLocalization",
"body": "getLocalization( )",
Expand Down Expand Up @@ -6985,9 +7075,33 @@
"description": "Client-side",
"scope": "source.lua"
},
"injectBrowserMouseDown": {
"prefix": "injectBrowserMouseDown",
"body": "injectBrowserMouseDown( ${1:browser webBrowser}, ${2:string mouseButton} )",
"description": "Client-side",
"scope": "source.lua"
},
"injectBrowserMouseMove": {
"prefix": "injectBrowserMouseMove",
"body": "injectBrowserMouseMove( ${1:browser webBrowser}, ${2:int posX}, ${3:int posY} )",
"description": "Client-side",
"scope": "source.lua"
},
"injectBrowserMouseUp": {
"prefix": "injectBrowserMouseUp",
"body": "injectBrowserMouseUp( ${1:browser webBrowser}, ${2:string mouseButton} )",
"description": "Client-side",
"scope": "source.lua"
},
"injectBrowserMouseWheel": {
"prefix": "injectBrowserMouseWheel",
"body": "injectBrowserMouseWheel( ${1:browser webBrowser}, ${2:int verticalScroll}, ${3:int horizontalScroll} )",
"description": "Client-side",
"scope": "source.lua"
},
"interpolateBetween": {
"prefix": "interpolateBetween",
"body": "interpolateBetween( ${1:float x1}, ${2:float y1}, ${3:float z1}, ${4:float x2}, ${5:float y2}, ${6:float z2}, ${7:float fProgress}, ${8:string strEasingType}, [ ${9:float fEasingPeriod}, ${10:float fEasingAmplitude}, ${11:float fEasingOvershoot }] )",
"body": "interpolateBetween( ${1:float x1}, ${2:float y1}, ${3:float z1}, ${4:float x2}, ${5:float y2}, ${6:float z2}, ${7:float fProgress}, ${8:string strEasingType}, [ ${9:float fEasingPeriod}, ${10:float fEasingAmplitude}, ${11:float fEasingOvershoot }] )",
"description": "Client-side",
"scope": "source.lua"
},
Expand All @@ -6997,6 +7111,24 @@
"description": "Client-side",
"scope": "source.lua"
},
"isBrowserDomainBlocked": {
"prefix": "isBrowserDomainBlocked",
"body": "isBrowserDomainBlocked( ${1:string address} [, ${2:bool isURL = false}] )",
"description": "Client-side",
"scope": "source.lua"
},
"isBrowserFocused": {
"prefix": "isBrowserFocused",
"body": "isBrowserFocused( ${1:browser webBrowser} )",
"description": "Client-side",
"scope": "source.lua"
},
"isBrowserLoading": {
"prefix": "isBrowserLoading",
"body": "isBrowserLoading( ${1:browser webBrowser} )",
"description": "Client-side",
"scope": "source.lua"
},
"isChatBoxInputActive": {
"prefix": "isChatBoxInputActive",
"body": "isChatBoxInputActive( )",
Expand Down Expand Up @@ -7351,6 +7483,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"loadBrowserURL": {
"prefix": "loadBrowserURL",
"body": "loadBrowserURL( ${1:browser webBrowser}, ${2:string url [}, ${3:string postData = ""}, ${4:bool urlEncoded = true} ] )",
"description": "Client-side",
"scope": "source.lua"
},
"md5": {
"prefix": "md5",
"body": "md5( ${1:string str} )",
Expand All @@ -7359,7 +7497,7 @@
},
"moveObject": {
"prefix": "moveObject",
"body": "moveObject( ${1:object theObject}, ${2:int time}, ${3:float targetx}, ${4:float targety}, ${5:float targetz}, [ ${6:float moverx}, ${7:float movery}, ${8:float moverz}, ${9:string strEasingType}, ${10:float fEasingPeriod}, ${11:float fEasingAmplitude}, ${12:float fEasingOvershoot }] )",
"body": "moveObject( ${1:object theObject}, ${2:int time}, ${3:float targetx}, ${4:float targety}, ${5:float targetz [}, ${6:float moverx}, ${7:float movery}, ${8:float moverz}, ${9:string strEasingType}, ${10:float fEasingPeriod}, ${11:float fEasingAmplitude}, ${12:float fEasingOvershoot }] )",
"description": "Client-side",
"scope": "source.lua"
},
Expand Down Expand Up @@ -7395,13 +7533,13 @@
},
"playSound": {
"prefix": "playSound",
"body": "playSound( ${1:string soundPath}, [ ${2:bool looped = false }] )",
"body": "playSound( ${1:string soundPath}, [ ${2:bool looped = false }, ${2:bool throttled = true}] )",
"description": "Client-side",
"scope": "source.lua"
},
"playSound3D": {
"prefix": "playSound3D",
"body": "playSound3D( ${1:string soundPath}, ${2:float x}, ${3:float y}, ${4:float z}, [ ${5:bool looped = false }] )",
"body": "playSound3D( ${1:string soundPath}, ${2:float x}, ${3:float y}, ${4:float z}, [ ${5:bool looped = false }, ${2:bool throttled = false}] )",
"description": "Client-side",
"scope": "source.lua"
},
Expand Down Expand Up @@ -7471,6 +7609,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"requestBrowserDomains": {
"prefix": "requestBrowserDomains",
"body": "requestBrowserDomains( ${1:table pages} [, ${2:bool parseAsURL = false}, ${3:function callback} ] )",
"description": "Client-side",
"scope": "source.lua"
},
"resetAmbientSounds": {
"prefix": "resetAmbientSounds",
"body": "resetAmbientSounds( )",
Expand Down Expand Up @@ -7645,12 +7789,42 @@
"description": "Client-side",
"scope": "source.lua"
},
"setBrowserAjaxHandler": {
"prefix": "setBrowserAjaxHandler",
"body": "setBrowserAjaxHandler( ${1:browser webBrowser}, ${2:string url} [, ${3:function handler}] )",
"description": "Client-side",
"scope": "source.lua"
},
"setBrowserProperty": {
"prefix": "setBrowserProperty",
"body": "setBrowserProperty( ${1:browser theBrowser}, ${2:string key}, ${3:string value} )",
"description": "Client-side",
"scope": "source.lua"
},
"setBrowserRenderingPaused": {
"prefix": "setBrowserRenderingPaused",
"body": "setBrowserRenderingPaused( ${1:browser theBrowser}, ${2:bool paused} )",
"description": "Client-side",
"scope": "source.lua"
},
"setBrowserVolume": {
"prefix": "setBrowserVolume",
"body": "setBrowserVolume( ${1:browser theBrowser}, ${2:float volume} )",
"description": "Client-side",
"scope": "source.lua"
},
"setCameraClip": {
"prefix": "setCameraClip",
"body": "setCameraClip( [ ${1:bool objects = true}, ${2:bool vehicles = true }] )",
"description": "Client-side",
"scope": "source.lua"
},
"setCameraFieldOfView": {
"prefix": "setCameraFieldOfView",
"body": "setCameraFieldOfView( ${1:string cameraMode}, ${2:float fieldOfView} )",
"description": "Client-side",
"scope": "source.lua"
},
"setCameraGoggleEffect": {
"prefix": "setCameraGoggleEffect",
"body": "setCameraGoggleEffect( ${1:string goggleEffect} )",
Expand Down Expand Up @@ -7681,6 +7855,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"setCameraShakeLevel": {
"prefix": "setCameraShakeLevel",
"body": "setCameraShakeLevel( ${1:int shakeLevel} )",
"description": "Client-side",
"scope": "source.lua"
},
"setClipboard": {
"prefix": "setClipboard",
"body": "setClipboard( ${1:string theText} )",
Expand Down Expand Up @@ -7909,6 +8089,24 @@
"description": "Client-side",
"scope": "source.lua"
},
"setLightRadius": {
"prefix": "setLightRadius",
"body": "setLightRadius( ${1:light theLight}, ${2:float radius} )",
"description": "Client-side",
"scope": "source.lua"
},
"setLightColor": {
"prefix": "setLightColor",
"body": "setLightColor( ${1:light theLight}, ${2:float r}, ${3:float g}, ${4:float b} )",
"description": "Client-side",
"scope": "source.lua"
},
"setLightDirection": {
"prefix": "setLightDirection",
"body": "setLightDirection( ${1:light theLight}, ${2:float x}, ${3:float y}, ${4:float z} )",
"description": "Client-side",
"scope": "source.lua"
},
"setMarkerColor": {
"prefix": "setMarkerColor",
"body": "setMarkerColor( ${1:marker theMarker}, ${2:int r}, ${3:int g}, ${4:int b}, ${5:int a} )",
Expand Down Expand Up @@ -8617,6 +8815,12 @@
"description": "Client-side",
"scope": "source.lua"
},
"toggleBrowserDevTools": {
"prefix": "toggleBrowserDevTools",
"body": "toggleBrowserDevTools( ${1:browser webBrowser}, ${2:bool visible} )",
"description": "Client-side",
"scope": "source.lua"
},
"toggleControl": {
"prefix": "toggleControl",
"body": "toggleControl( ${1:player thePlayer}, ${2:string control}, ${3:bool enabled} )",
Expand Down

0 comments on commit f207f80

Please sign in to comment.