Commit Graph

159 Commits

Author SHA1 Message Date
jacob1
b594d68258 WIND tool creates WIND just by holding down the line tool again 2013-06-06 11:52:33 -04:00
jacob1
2119343b6a fix sim.NUM_PARTS, other small changes 2013-06-05 23:17:34 -04:00
jacob1
c7ce3fa4b2 make constants in the lua api's a lot easier to write 2013-06-05 22:56:00 -04:00
jacob1
8d7ab7f5e2 allow creating WIND lines from lua 2013-06-01 21:57:03 -04:00
jacob1
b16524292e fix bug where you had to start using a tool before setting it's strength 2013-05-31 19:53:32 -04:00
jacob1
80380bbaa3 even more lua simulation api functions 2013-05-30 22:28:42 -04:00
jacob1
d6d20defde Merge branch 'master' of git@github.com:FacialTurd/The-Powder-Toy.git 2013-05-29 20:36:34 -04:00
jacob1
cbc80de652 some new sim and ren lua api functions 2013-05-29 20:35:46 -04:00
jacob1
41e369e68e mniip: add back missing easter egg 2013-05-22 18:21:17 -04:00
jacob1
77bf649fb4 new lua sim api functions to get/set deco color, load a save, and adjust coordinates to the screen / zoom window 2013-05-16 23:12:33 -04:00
jacob1
7b6ded50dc rename GRAV back to PGRV, fix formatting in generator, remove useless file 2013-05-16 20:04:39 -04:00
jacob1
fd97e923f3 remove check in deco tools (that shouldn't be there) 2013-05-16 19:36:41 -04:00
jacob1
027649e858 lua simulation api functions for drawing with tools / deco 2013-05-16 19:33:30 -04:00
jacob1
242f4bcdf6 more minor fixes 2013-05-16 01:04:49 -04:00
jacob1
ebe145b39f soap lines show in nothing mode, some small changes to arguments for sim api drawing functions 2013-05-16 00:55:44 -04:00
jacob1
81876a93a3 redo some brush drawing stuff to remove useless checks, and to allow for replace mode in the future 2013-05-16 00:20:07 -04:00
jacob1
5ad819efbd remove checks on location / element in the simulation drawing functions. fix drawing circles with an rx of 0. Probably fix compiling error 2013-05-15 21:10:22 -04:00
jacob1
dfc33aaeea finish return values for the legacy api, add sim.saveStamp and sim.loadStamp 2013-05-15 13:51:45 -04:00
jacob1
94d21a1679 when called with no arguments, some tpt. functions will act as get functions (unfinished)
Also, redo some menu stuff to use int's instead of Menu *s, and fix bug with toggleable buttons being toggled without triggering their actions
2013-05-14 23:50:26 -04:00
jacob1
ab3675d6ee minor lua api fixes 2013-05-14 18:11:04 -04:00
jacob1
2e409f966c gfx.draw/fillcircle 2013-05-14 16:39:20 -04:00
jacob1
431f5a0083 lua simulation api functions for creating particles, walls, boxes, and walls 2013-05-14 14:40:18 -04:00
mniip
4d9b9b17d7 D: 2013-05-11 15:08:32 +04:00
Simon Robertshaw
c2cdec9e62 Togglable lua scripting 2013-05-11 11:52:35 +01:00
cracker64
d1c8978a34 just one to_boolean works... any number is true. 2013-05-09 16:03:14 -04:00
cracker64
4c5667fbc6 Fix tpt.message_box correctly to only accept true/false third arg. 2013-05-09 15:51:01 -04:00
jacob1
67e1213905 fix tpt.message_box, fix compiling error 2013-05-09 18:52:13 -04:00
jacob1
c0b4592839 fix PSCN BRAY (tmp = 2) not stopping normal BRAY from going through
also some other random things
2013-05-08 10:29:10 -04:00
jacob1
73fe68a3eb Merge pull request #133 from mniip/lua
Fix the luaopen_socket_core loader
2013-05-04 16:12:24 -07:00
mniip
69bf9e1058 Fix the luaopen_socket_core loader; derp me 2013-05-05 03:09:08 +04:00
Simon Robertshaw
66e21ce049 Merge pull request #131 from mniip/lua
builtin luasocket
2013-05-04 14:26:49 -07:00
jacob1
630216c253 change ">" to "..." (from mniip) 2013-05-04 00:20:33 -04:00
jacob1
773d500d8a mniip: fix crash on non-string error in step and other functions 2013-05-03 20:13:56 -04:00
mniip
88cbb81ec4 fix crash on non-string error in step and other functions 2013-05-04 04:11:52 +04:00
jacob1
06111ce456 Merge pull request #130 from mmbob/master
Save window position when closed
2013-05-03 15:14:24 -07:00
mniip
4cd12e8561 allow multiline code input, command will be executed when enough code given 2013-05-03 09:56:13 +04:00
mniip
0233d8db46 print returned values; implicit return in console; console source 2013-05-03 01:54:21 +04:00
mniip
d8023d21cd better luacon_geterror 2013-05-03 01:09:13 +04:00
mniip
29496cb6d3 fix tpt.log so that when called multiple times, it doesn't overwrite the text 2013-05-02 23:49:53 +04:00
mniip
e7b29ab9b5 statically linked, or better to say, builtin luasocket 2013-05-02 22:41:01 +04:00
mmbob
9d4cbd3112 Merge remote-tracking branch 'upstream/master' 2013-04-29 21:50:12 -04:00
jacksonmj
b83043e2a6 Remove obsolete code from TPTScriptInterface 2013-04-27 15:55:30 +01:00
mniip
bfe00dc1f3 Ooooooohh 2013-04-27 02:57:41 +04:00
mniip
77e837c775 Fixed graphics function crash when unable to catch errors 2013-04-27 02:20:06 +04:00
mniip
a1cdef4c90 a major rewrite of event registration, it's fully compatible, yet has new advantages 2013-04-27 01:25:18 +04:00
mniip
9f7d45f8fd print does implicit tostring, also generates a list ouside of console too 2013-04-26 17:15:33 +04:00
mmbob
e166640cbb Fix reading hexadecimal in TPTScriptInterface
Instead of subtracting 'A', subtract 'a'
2013-04-22 13:05:10 -04:00
jacksonmj
ada7c7bb11 Prevent "!set type none blah" 2013-04-18 21:07:21 +01:00
jacob1
602cbf0701 fix setting negative numbers in the old console (using atoi) 2013-04-09 23:13:13 -04:00
Simon Robertshaw
8d312ecdfa Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2013-04-07 12:46:09 +01:00