Commit Graph

17 Commits

Author SHA1 Message Date
Chris Danford 4d31f3b4c1 evaluate TargetNumber as a Lua expression 2005-02-16 00:16:14 +00:00
Glenn Maynard 8584cbc0d7 when compiling a script from a file, don't dump the entire contents of the
script to the log/dialog
2005-02-15 07:17:49 +00:00
Glenn Maynard 0a0ad8714c allow LuaManager::RunExpression to return a function
show the filename when a full script has an error
use LuaManager::RunExpression in LuaExpression
2005-02-15 02:15:26 +00:00
Glenn Maynard 004d774889 simplify 2005-02-15 02:07:59 +00:00
Glenn Maynard 2103eb0531 bring RunExpression and RunScript closer together 2005-02-15 02:02:08 +00:00
Glenn Maynard 831e7c1825 remove LuaManager::PushNopFunction(). Just compile an empty function;
it'll be tiny, anyway.
2005-02-15 01:49:03 +00:00
Glenn Maynard fe6cd41543 update
add LuaManager::CreateTableFromArray, LuaManager::ReadArrayFromTable
2005-02-13 04:09:28 +00:00
Chris Danford e38164e74f yell louder on error when parsing scripts 2005-02-12 22:53:51 +00:00
Glenn Maynard a4de4c8c0d better function registration: store a reference, instead of making up a name 2005-02-05 23:03:20 +00:00
Chris Danford e2da825c30 re-register all ActorCommands after resetting Lua 2005-02-05 10:15:15 +00:00
Glenn Maynard 2eb9e8837b don't bother parsing for empty commands 2005-02-02 03:36:46 +00:00
Glenn Maynard 088b7bb356 Allow passing a lua_State to PushStack; make them static.
Add SetGlobal(bool), UnsetGlobal, PushStackNil.
Pass lua_State* to LUA_RETURN.
2005-01-30 02:01:27 +00:00
Glenn Maynard 703833d7d4 Simplify. RageException::Throw no longer actually throws; this makes
debugging much easier, since we don't lose the stack after a Lua error.
2005-01-28 19:42:44 +00:00
Chris Danford 8555a6da45 use Lua to execute commands
(needs cleanup)
2005-01-26 11:21:43 +00:00
Chris Danford ed6aa8b02e The Lua state needs to be reset on a theme change to reload scripts 2005-01-24 03:05:37 +00:00
Chris Danford cd9c48d645 LuaHelpers -> LuaManager 2005-01-24 02:26:55 +00:00
Chris Danford b055671a63 LuaHelpers.cpp -> LuaManager 2005-01-24 02:12:07 +00:00