Commit Graph

13732 Commits

Author SHA1 Message Date
Chris Danford 26dc26ff62 fix misspelling 2005-02-18 11:55:34 +00:00
Glenn Maynard 8884936a17 const fix 2005-02-18 03:07:22 +00:00
Glenn Maynard ffcdaeb515 fix OnCommand not being sent 2005-02-18 00:13:53 +00:00
Chris Danford f771ca9730 add Lua methods 2005-02-17 21:35:45 +00:00
Chris Danford 09f19b9d0c change BArg to look for a Lua boolean type 2005-02-17 21:34:46 +00:00
Chris Danford 0457317a6f fix Combo30Misses overrides FailType shouldn't override FailOff 2005-02-17 21:30:10 +00:00
Chris Danford da5f4a57bb add GoalType, Lua functions 2005-02-17 19:36:10 +00:00
Chris Danford 25c88d3aa0 show cumulative calorie number 2005-02-17 19:35:06 +00:00
Chris Danford f7c031ec3c add Lua methods 2005-02-17 17:14:33 +00:00
Chris Danford 5b9ed5731f add assert 2005-02-17 17:14:00 +00:00
Chris Danford 669c0047ee add missing param 2005-02-17 17:12:06 +00:00
Glenn Maynard 2270e62eb4 fix expressions (mysterious forces contrived to make this appear to work) 2005-02-17 08:41:13 +00:00
Chris Danford 8da09ebd6e let each file register its own constants with Lua 2005-02-17 07:32:21 +00:00
Chris Danford 9c29426f5f cleanup 2005-02-17 07:12:20 +00:00
Chris Danford 02a7b4fef1 fix crash if PrepareScreen called twice 2005-02-17 07:09:55 +00:00
Glenn Maynard e0853e489d fix g++ compile 2005-02-17 06:54:17 +00:00
Glenn Maynard 16969b1570 \ 2005-02-17 06:30:02 +00:00
Glenn Maynard 1601912c5a FirstUpdateCommand 2005-02-17 06:16:09 +00:00
Glenn Maynard 8a04a3eeeb Add ScreenWithMenuElements::FirstUpdateCommand, a Lua expression
that gets called on first update.  Note the difference between
using ThemeMetric<LuaExpression> and ThemeMetric<ActorCommands>:
with ActorCommands, you get the special, backwards-compatible
parsing; with LuaExpression, only a regular expression is parsed.

You can still only (cleanly) call one function, since "return"
is prepended: if you say "f() g()", it'll try to run "return f() g()".
I tried having a separate type for "expression" and "script", but
it seems confusing to have some metrics parsed as scripts and
some as expressions, allowing multiple functions in only specific
metrics.  If you want to do that much, it's cleaner to create
a function and call it, anyway.  If you just want to add diagnostics
quickly, you can say "Foo=(function() x() y() z() end)()".  (I might
revisit this later.)
2005-02-17 06:13:23 +00:00
Glenn Maynard 01ae30ddd9 Add ThemeManager::GetMetric(LuaExpression) 2005-02-17 06:09:08 +00:00
Chris Danford 0ce416cb26 add ScreenSplash - a replacement for ScreenStage 2005-02-17 05:57:21 +00:00
Chris Danford 30587e9248 add header comments 2005-02-17 05:56:29 +00:00
Chris Danford 682bd1364c cleanup 2005-02-17 05:56:02 +00:00
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
Glenn Maynard e16b72f5ed Actor::RunCommands, etc. can take any LuaReference, not just
ActorCommands
2005-02-17 05:12:23 +00:00
Glenn Maynard 725a50985f add constructor 2005-02-17 04:59:54 +00:00
Glenn Maynard 72435f148c explicit types 2005-02-17 04:55:41 +00:00
Glenn Maynard d6b13fb134 pronoun 2005-02-17 00:44:26 +00:00
Glenn Maynard 8a62baa1d1 cleanup 2005-02-17 00:41:30 +00:00
Glenn Maynard 45159de835 cleanup 2005-02-17 00:00:04 +00:00
Chris Danford 533e83ed00 Don't set two different names for an element. Instead, pass the metrics group name as a parameter to Load() 2005-02-16 23:03:01 +00:00
Chris Danford 21e59e065e peek at the error message in the debugger 2005-02-16 23:00:09 +00:00
Glenn Maynard 7a7233140b fix makefile 2005-02-16 22:09:45 +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 dd7349d480 add more goal data 2005-02-16 20:24:57 +00:00
Chris Danford ad3c10f251 move GetEvalStageStats into StatsManager
Add GetAccumStageStats
2005-02-16 19:40:09 +00:00
Chris Danford 6e8d275da1 fix missing project file 2005-02-16 17:48:57 +00:00
Chris Danford 08ba7f4251 expose to Lua 2005-02-16 17:35:58 +00:00
Chris Danford 4e12486bf4 fix compile 2005-02-16 17:35:21 +00:00
Chris Danford eb63c30d15 make hack more surgical 2005-02-16 17:33:28 +00:00
Chris Danford fc24b28503 update VC6 proj 2005-02-16 17:30:58 +00:00
Glenn Maynard ce1e6203ee license 2005-02-16 08:37:08 +00:00
Glenn Maynard f710506c6c add TableMetricLookup 2005-02-16 07:50:46 +00:00
Glenn Maynard 97498a4a3e allow specifying the default 2005-02-16 06:50:37 +00:00
Glenn Maynard d5cfb74709 split GameState::ApplyGameCommand from GameState::ApplyCmdline;
expose to Lua
2005-02-16 06:24:33 +00:00
Glenn Maynard f4cd02eca8 utils 2005-02-16 06:12:48 +00:00
Glenn Maynard 44b3d97b38 not local 2005-02-16 05:57:40 +00:00