Permalink
Browse files

ReferencePoints (completion, highlight) completed

Timer functions (completion, highlight, snippets) completed
Transition functions (completion, highlight, snippets) completed
Most physics functions (completions, highlights, snippets)
Most physics bodies (completion, highlight, snippets)
All storyboard functions (completion, highlight, snippets)display.newRetinaText
display.setStatusBar(display.---)
  • Loading branch information...
1 parent 9ee69ce commit df1ca68caa0c68c0976f3cfe2c46e3f79635e4dd Joao Sallaberry committed Mar 14, 2012
Showing with 720 additions and 25 deletions.
  1. +54 −11 Preferences/Completions.tmPreferences
  2. +16 −0 Snippets/body:applyAngularImpulse.tmSnippet
  3. +16 −0 Snippets/body:applyForce.tmSnippet
  4. +16 −0 Snippets/body:applyLinearImpulse.tmSnippet
  5. +16 −0 Snippets/body:applyTorque.tmSnippet
  6. +16 −0 Snippets/body:setLinearVelocity.tmSnippet
  7. +14 −0 Snippets/display_newRetinaText.tmSnippet
  8. +14 −0 Snippets/display_setStatusBar.tmSnippet
  9. +1 −1 Snippets/for k,v in pairs().tmSnippet
  10. +14 −0 Snippets/module.tmSnippet
  11. +16 −0 Snippets/physics_newJoint.tmSnippet
  12. +16 −0 Snippets/physics_removeBody.tmSnippet
  13. +2 −0 Snippets/physics_setDrawMode.tmSnippet
  14. +17 −0 Snippets/physics_setGravity.tmSnippet
  15. +16 −0 Snippets/physics_setScale.tmSnippet
  16. +14 −0 Snippets/storyboard_getScene.tmSnippet
  17. +14 −0 Snippets/storyboard_gotoScene.tmSnippet
  18. +14 −0 Snippets/storyboard_newScene.tmSnippet
  19. +14 −0 Snippets/storyboard_purgeScene.tmSnippet
  20. +14 −0 Snippets/storyboard_removeScene.tmSnippet
  21. +1 −1 Snippets/timer_cancel.tmSnippet
  22. +16 −0 Snippets/timer_pause.tmSnippet
  23. +1 −1 Snippets/{timer_performWithDelay 2.tmSnippet → timer_performWithDelay.tmSnippet}
  24. +16 −0 Snippets/timer_resume.tmSnippet
  25. +16 −0 Snippets/transition_cancel.tmSnippet
  26. +16 −0 Snippets/transition_dissolve.tmSnippet
  27. +2 −0 Snippets/transition_from.tmSnippet
  28. +8 −2 Syntaxes/Lua.tmLanguage
  29. +0 −1 Templates/config_lua.tmTemplate/template_in.txt
  30. +21 −0 Templates/module 2.tmTemplate/info.plist
  31. +3 −0 Templates/module 2.tmTemplate/template_in.txt
  32. +21 −0 Templates/module.tmTemplate/info.plist
  33. +3 −0 Templates/module.tmTemplate/template_in.txt
  34. +19 −0 Templates/storyboard Scene.tmTemplate/info.plist
  35. +95 −0 Templates/storyboard Scene.tmTemplate/template_in.txt
  36. +93 −2 Templates/untitled.tmTemplate/template_in.txt
  37. +75 −6 info.plist
@@ -4,18 +4,16 @@
<dict>
<key>name</key>
<string>Completions</string>
- <key>scope</key>
- <string>source.lua</string>
<key>settings</key>
<dict>
<key>completions</key>
<array>
<string>abs</string>
+ <string>addBody</string>
<string>accuracy</string>
<string>acos</string>
<string>action</string>
<string>add</string>
- <string>addBody</string>
<string>addEventListener</string>
<string>align</string>
<string>alpha</string>
@@ -41,7 +39,9 @@
<string>cancelWebPopup()</string>
<string>captureScreen</string>
<string>ceil</string>
+ <string>CenterLeftReferencePoint</string>
<string>CenterReferencePoint</string>
+ <string>CenterRightReferencePoint</string>
<string>char</string>
<string>clock</string>
<string>close</string>
@@ -178,6 +178,7 @@
<string>newLine</string>
<string>newRecording</string>
<string>newRect</string>
+ <string>newRetinaText</string>
<string>newRoundedRect</string>
<string>newSprite</string>
<string>newSpriteSet</string>
@@ -201,9 +202,10 @@
<string>pairs</string>
<string>parent</string>
<string>pathForFile</string>
- <string>pause</string>
+ <string>pause()</string>
<string>pauseSound()</string>
<string>pcall</string>
+ <string>performWithDelay</string>
<string>phase</string>
<string>pi</string>
<string>play</string>
@@ -229,6 +231,7 @@
<string>rep</string>
<string>require</string>
<string>resetMassData</string>
+ <string>resume</string>
<string>reverse</string>
<string>rotate</string>
<string>rotation</string>
@@ -285,7 +288,7 @@
<string>startRecording()</string>
<string>startTuner()</string>
<string>statusBarHeight</string>
- <string>stop</string>
+ <string>stop()</string>
<string>stopAtFrame</string>
<string>stopRecording()</string>
<string>stopSound()</string>
@@ -340,11 +343,7 @@
<string>crypto.sha256</string>
<string>crypto.sha384</string>
<string>crypto.sha512</string>
- <string>display.BottomCenterReferencePoint</string>
- <string>display.BottomLeftReferencePoint</string>
- <string>display.BottomRightReferencePoint</string>
<string>display.captureScreen</string>
- <string>display.CenterReferencePoint</string>
<string>display.contentHeight</string>
<string>display.contentWidth</string>
<string>display.getCurrentStage()</string>
@@ -354,17 +353,28 @@
<string>display.newImageRect</string>
<string>display.newLine</string>
<string>display.newRect</string>
+ <string>display.newRetinaText</string>
<string>display.newRoundedRect</string>
<string>display.newText</string>
<string>display.save()</string>
<string>display.setDefault</string>
<string>display.setStatusBar</string>
<string>display.statusBarHeight</string>
+ <string>display.viewableContentHeight</string>
+ <string>display.viewableContentWidth</string>
+ <string>display.BottomCenterReferencePoint</string>
+ <string>display.BottomLeftReferencePoint</string>
+ <string>display.BottomRightReferencePoint</string>
+ <string>display.CenterLeftReferencePoint</string>
+ <string>display.CenterReferencePoint</string>
+ <string>display.CenterRightReferencePoint</string>
<string>display.TopCenterReferencePoint</string>
<string>display.TopLeftReferencePoint</string>
<string>display.TopRightReferencePoint</string>
- <string>display.viewableContentHeight</string>
- <string>display.viewableContentWidth</string>
+ <string>HiddenStatusBar</string>
+ <string>DefaultStatusBar</string>
+ <string>TranslucentStatusBar</string>
+ <string>DarkStatusBar</string>
<string>easing.inExpo</string>
<string>easing.inOutExpo</string>
<string>easing.inOutQuad</string>
@@ -494,11 +504,40 @@
<string>package.seeall</string>
<string>physics.addBody</string>
<string>physics.newJoint</string>
+ <string>physics.setGravity</string>
+ <string>physics.getGravity()</string>
+ <string>physics.pause()</string>
+ <string>physics.removeBody</string>
+ <string>physics.setDrawMode</string>
+ <string>physics.setScale</string>
+ <string>physics.start()</string>
+ <string>physics.stop()</string>
+ <string>setGravity</string>
+ <string>getGravity()</string>
+ <string>removeBody</string>
+ <string>setDrawMode</string>
+ <string>setScale</string>
<string>sprite.add</string>
<string>sprite.newSprite</string>
<string>sprite.newSpriteSet</string>
<string>sprite.newSpriteSheet</string>
<string>sprite.newSpriteSheetFromData</string>
+ <string>storyboard.getPrevious()</string>
+ <string>storyboard.getScene</string>
+ <string>storyboard.gotoScene</string>
+ <string>storyboard.newScene</string>
+ <string>storyboard.purgeAll()</string>
+ <string>storyboard.purgeScene</string>
+ <string>storyboard.removeAll()</string>
+ <string>storyboard.removeScene</string>
+ <string>getPrevious()</string>
+ <string>getScene</string>
+ <string>gotoScene</string>
+ <string>newScene</string>
+ <string>purgeAll()</string>
+ <string>purgeScene</string>
+ <string>removeAll()</string>
+ <string>removeScene</string>
<string>string.byte</string>
<string>string.char</string>
<string>string.find</string>
@@ -525,6 +564,10 @@
<string>system.vibrate</string>
<string>table.concat</string>
<string>table.insert</string>
+ <string>timer.performWithDelay</string>
+ <string>timer.resume</string>
+ <string>timer.cancel</string>
+ <string>timer.pause</string>
<string>transition.cancel</string>
<string>transition.dissolve</string>
<string>transition.from</string>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>:applyAngularImpulse( ${1:appliedForce} )</string>
+ <key>name</key>
+ <string>body:applyAngularImpulse</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>:applyAngularImpulse</string>
+ <key>uuid</key>
+ <string>A112671F-6266-4104-B4D8-D1490F0AB6EE</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>:applyForce( ${1:xForce}, ${2:yForce}, ${3:bodyX}, ${4:bodyY} )</string>
+ <key>name</key>
+ <string>body:applyForce</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>:applyForce</string>
+ <key>uuid</key>
+ <string>6898EF58-6142-4DE2-9736-B9CE5FC9B854</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>:applyLinearImpulse( ${1:xForce}, ${2:yForce}, ${3:bodyX}, ${4:bodyY} )</string>
+ <key>name</key>
+ <string>body:applyLinearImpulse</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>:applyLinearImpulse</string>
+ <key>uuid</key>
+ <string>84E84825-721E-463F-9EC0-D6C33309EA3D</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>:applyTorque( ${1:appliedForce} )</string>
+ <key>name</key>
+ <string>body:applyTorque</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>:applyTorque</string>
+ <key>uuid</key>
+ <string>58720E43-32E1-4044-AEA0-7E4E0A4C4A4C</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>:setLinearVelocity( ${1:xVelocity}, ${2:yVelocity} )</string>
+ <key>name</key>
+ <string>body:setLinearVelocity</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>:setLinearVelocity</string>
+ <key>uuid</key>
+ <string>E91401F9-A92D-44B1-8773-4338BF56759A</string>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>display.newRetinaText(${1:[parentGroup], }"${2:string}", ${3:x}, ${4:y}, ${5:font}, ${6:size})</string>
+ <key>name</key>
+ <string>display.newRetinaText</string>
+ <key>tabTrigger</key>
+ <string>display.newRetinaText</string>
+ <key>uuid</key>
+ <string>D6E5254C-5603-4241-B92A-6D2575E13592</string>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>display.setStatusBar( display.${1:HiddenStatusBar, DefaultStatusBar, TranslucentStatusBar or DarkStatusBar} )</string>
+ <key>name</key>
+ <string>display.setStatusBar</string>
+ <key>tabTrigger</key>
+ <string>display.setStatusBar</string>
+ <key>uuid</key>
+ <string>1C5AF671-E4E0-4D36-A4FB-CB89225436C7</string>
+</dict>
+</plist>
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for ${1:k},${2:v} in pairs(${3:table_name}) do
- ${0:print(k,v)}
+ ${0:print(${1:k},${2:v})}
end</string>
<key>name</key>
<string>for k,v in pairs()</string>
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>module (..., package.seeall)</string>
+ <key>name</key>
+ <string>module</string>
+ <key>tabTrigger</key>
+ <string>module</string>
+ <key>uuid</key>
+ <string>CCA8D0DA-3A8A-48EB-A562-998BD4DA60F8</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>physics.newJoint( ${1:pivot, distance, piston, friction, weld, wheel, pulley or touch}, ${2:object1}, ${3:object2}, ${4:anchorX}, ${5:anchorY} )</string>
+ <key>name</key>
+ <string>physics.newJoint</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>physics.newJoint</string>
+ <key>uuid</key>
+ <string>7F7432FF-AB45-4945-BBA3-816271AB99D2</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>physics.removeBody( ${1:object} )</string>
+ <key>name</key>
+ <string>physics.removeBody</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>physics.removeBody</string>
+ <key>uuid</key>
+ <string>DF3574E6-CED0-4B1A-BAC2-A3E66EDCDD8E</string>
+</dict>
+</plist>
@@ -6,6 +6,8 @@
<string>physics.setDrawMode("${1:debug, hybrid, or normal}") </string>
<key>name</key>
<string>physics.setDrawMode</string>
+ <key>scope</key>
+ <string>source.lua</string>
<key>tabTrigger</key>
<string>physics.setDrawMode</string>
<key>uuid</key>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>physics.setGravity( ${1:gx}, ${2:gy} )
+</string>
+ <key>name</key>
+ <string>physics.setGravity</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>physics.setGravity</string>
+ <key>uuid</key>
+ <string>B96DC4A4-E235-4939-AC90-A38A5169813E</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>physics.setScale( ${1:pixels-per-meter_ratio} )</string>
+ <key>name</key>
+ <string>physics.setScale</string>
+ <key>scope</key>
+ <string>source.lua</string>
+ <key>tabTrigger</key>
+ <string>physics.setScale</string>
+ <key>uuid</key>
+ <string>3154F832-4ABC-44FE-9B88-B581C14D4673</string>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>storyboard.getScene( "${1:sceneName}" )</string>
+ <key>name</key>
+ <string>storyboard.getScene</string>
+ <key>tabTrigger</key>
+ <string>storyboard.getScene</string>
+ <key>uuid</key>
+ <string>7FED0155-E16C-45C0-A7B2-0DDA0DB45AFF</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit df1ca68

Please sign in to comment.