jacob1
a801f0a0b4
allow lua mousepress event to cancel drawing, fixes #229
2014-11-06 20:06:45 -05:00
jacob1
7582acfb5c
add sim.photons (like sim.pmap but for photons), sim.(part)neighbors also checks photons, fix sim.gravMap
2014-10-26 16:52:42 -04:00
jacob1
c16caed5dd
fix level 1 msvc compiling warnings + initialize debugFlags
2014-10-08 00:15:51 -04:00
jacob1
925ff1da3c
add lua5.2 support for no particular reason
2014-08-22 01:25:34 -04:00
jacob1
f8782338d7
make tpt.selected* and tpt.brushx/y writable (replaces simstate branch)
2014-08-19 02:01:31 -04:00
jacksonmj
c83945e281
Allow PHOT deco, in old saves only
2014-08-05 22:11:07 +01:00
jacob1
c44e734abe
fix crashes when the selected element is NULL (via lua), add gfx.getHexColor (inverse of gfx.getColors)
2014-06-09 17:42:44 -04:00
jacob1
89ffa60529
New graphics api function: getColors, returns r, b, g, and a from a hex color
...
Also, remove generated/ and build/generated when using scons -c
2014-06-09 16:50:49 -04:00
jacksonmj
7b9f43b8bf
Fix some missing return values
2014-05-23 00:00:54 +01:00
mniip
ecf1f0e391
backport lua code highlighting from my console
2014-05-06 01:16:55 +04:00
jacob1
5b67c8ce68
elem.property and elem.element can read Identifiers
2014-03-15 14:20:40 -04:00
jacob1
258aaedb0a
add sim.reloadSave, tpt.selectedreplace
2014-03-13 14:44:39 -04:00
jacob1
3f65b47a5e
small change to sim.partProperty
2014-03-10 17:20:50 -04:00
jacob1
21854df9f3
lots of random fixes to the legacy lua api
2014-03-04 20:44:25 -05:00
jacksonmj
a5ea6555f1
Fix more bugs in the Lua API
...
Crash with sim.partKill(large number).
sim.neighbours() looking for particles in completely the wrong place.
Impossible to tell from sim.partID whether a particle exists, since it returns 0 both if there is no particle there and if particle 0 is there.
2014-03-04 23:34:51 +00:00
mniip
4152bb560e
Do not use loadstring to load autorun (who even wrote this?). Also print a message in case of successful autorun load
2014-03-04 15:26:35 +04:00
jacksonmj
64e16025d8
Fix bug in Lua API sim.neighbours() causing some particles to be missed out
...
Was excluding all particles with the same x or y as the centre instead of just the centre particle.
2014-03-03 22:42:21 +00:00
jacksonmj
224b25fae5
Fix Lua API sim.partNeighbours with 4 arguments
2014-03-03 20:09:35 +00:00
jacob1
d59253cfc7
fix sim.deleteStamp and sim.loadStamp (couldn't load/delete stamps with names like 530e908700)
2014-02-26 20:29:15 -05:00
nucular
8561976121
Fix (hopefully) most of the R/W errors inside the new Lua API
2014-02-22 10:13:09 -05:00
jacob1
71f90b5d59
new function: sim.deleteStamp
...
mostly for use in tpt multiplayer
2014-02-20 16:02:32 -05:00
mniip
a105ed9df8
Use system clock instead of used CPU time. Fixes key repeat and some
...
other stuff. close #206
2014-02-13 00:26:34 +04:00
jacob1
5b886fc51e
boxmein: Added clipboard support to Lua
2014-01-29 17:57:18 -05:00
jacob1
f66679e551
a little reorganization (maybe more later)
2014-01-20 13:52:53 -05:00