Glenn Maynard
|
6f88bf18c0
|
Cleanup: change RunExpression to a RunScript helper. Never tack on
"return "; the caller can do that if it wants. Instead, just act as a helper to
display a generic dialog on error.
|
2005-02-17 05:46:31 +00:00 |
|
Glenn Maynard
|
d66163ab74
|
fix error dialog displayed twice: error handling for RunScript is up to the caller
|
2005-02-17 05:32:50 +00:00 |
|
Chris Danford
|
da51076d91
|
revert last
|
2005-02-16 21:41:07 +00:00 |
|
Chris Danford
|
7e4a302ba4
|
fix precision loss (might be important someday)
|
2005-02-16 21:21:36 +00:00 |
|
Chris Danford
|
c13accadc0
|
evaluate PlayerNumber as a lua expression
|
2005-02-16 21:20:33 +00:00 |
|
Chris Danford
|
eb63c30d15
|
make hack more surgical
|
2005-02-16 17:33:28 +00:00 |
|
Glenn Maynard
|
b8605eebf0
|
fix warning (atof returns a double, not a float)
|
2005-02-16 02:42:57 +00:00 |
|
Glenn Maynard
|
6175a16f24
|
Add LuaData, a reference type that restores itself over Lua resets. This
works only with static data types that can be restored: tables, strings,
numbers, and not functions, userdata, etc.
|
2005-02-16 00:38:40 +00:00 |
|
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 |
|