The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Feedback
/
Turn gravity/heat on/off with lua
«
1
»
Turn gravity/heat on/off with lua
me4502
20th Jun 2011
Member
0
Permalink
I think the lua console should be able to change settings in the options menu... It wouldn't be that hard to code in... If you want me to I will...
Thanks
edit:::
i have coded all this in and much more
link
https://github.com/me4502/The-Powder-Toy/commit/941eca3db78e75693c0f353cc324f73117b96380
And
https://github.com/me4502/The-Powder-Toy/commit/96ce81f89159f6f919d466d8f5b71f8af09001bd
{"hud", &luatpt_hud}, tpt.hud(1)
{"newtonian_gravity", &luatpt_gravity}, tpt.newtonian_gravity(1)
{"ambient_heat", &luatpt_airheat}, tpt.ambient_heat(1)
{"active_menu", &luatpt_active_menu}, tpt.active_menu(11)
{"decorations_enable", &luatpt_decorations_enable}, tpt.decorations_enable(1)
{"display_mode", &luatpt_cmode_set}, tpt.display_mode(4)
{"get_mousex", &luatpt_get_mousex}, Example = tpt.get_mousex
{"get_mousey", &luatpt_get_mousey},, Example = tpt.get_mousey
Edited by
me4502
, 2011-07-12 15:02:02
vanquish349
20th Jun 2011
Member
0
Permalink
yes this is a good idea. it will be very good and efiicent.
ps.i know this is a necro so dont bother this is a good idea and deserves to be seen
Vou
20th Jun 2011
Banned
0
Permalink
This post is hidden because the user is banned
me4502
20th Jun 2011
Member
0
Permalink
@vanquish349
(View Post)
Thanks :)
@Vou
(View Post)
Thanks :)
Edit::
Added the three extra ones I made after I forgot about this thread
Edited by
me4502
, 2011-07-12 14:57:39
me4502
20th Jun 2011
Member
0
Permalink
These are now in the official, for next version, so can I request a lock
«
1
»