Glenn Maynard
1db4aa2600
SetSelections -> SaveSelections, GetSelections -> LoadSelections
2005-02-16 04:47:01 +00:00
Glenn Maynard
073e891589
SetSelections -> SaveSelections, GetSelections -> LoadSelections to avoid
...
confusion with OptionRow
2005-02-16 04:45:47 +00:00
Glenn Maynard
e67d2eee02
zero selections
2005-02-16 04:12:07 +00:00
Glenn Maynard
d470fe11fe
fix assertion failure: SetSelections and GetSelections (currently) take no
...
"self" parameter--you can store the table index in an upvalue if you need
it. (I havn't worked with this enough, yet, to tell which method is better ...)
2005-02-16 03:45:28 +00:00
Glenn Maynard
51d23bb03c
fix comments
2005-02-16 03:40:44 +00:00
Chris Danford
5492de16e4
fix VC6 compile
2005-02-16 03:29:11 +00:00
Chris Danford
bb712884bb
move global StageStats into a singleton
2005-02-16 03:25:45 +00:00
Glenn Maynard
6cb8d3fe64
GetMachineProfile
2005-02-16 02:48:50 +00:00
Glenn Maynard
0a0da9809e
allow saving a lua table for each profile
2005-02-16 02:46:43 +00:00
Glenn Maynard
69e57a659e
GetMachineProfile
2005-02-16 02:45:23 +00:00
Glenn Maynard
b8605eebf0
fix warning (atof returns a double, not a float)
2005-02-16 02:42:57 +00:00
Glenn Maynard
69383384bf
add LuaData::Serialize, LuaData::LoadFromString; fix stack overflow
2005-02-16 02:42:05 +00:00
Chris Danford
db86be45ba
add Lua binding
2005-02-16 02:11:31 +00:00
Glenn Maynard
4376c828e5
fix LuaData::BeforeReset
2005-02-16 01:46:29 +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
f0a2c6faff
move PlayerStageStats into a separate file
2005-02-16 00:37:50 +00:00
Chris Danford
4d31f3b4c1
evaluate TargetNumber as a Lua expression
2005-02-16 00:16:14 +00:00
Glenn Maynard
40fde98efa
add license--just as important for Lua scripts as C++ source
2005-02-16 00:15:36 +00:00
Chris Danford
a9c2d3ae29
fix re-init of Lua to give singletons a chance to register after they've all been constructed
2005-02-16 00:14:43 +00:00
Glenn Maynard
0d8a3723ef
add serialization script
2005-02-16 00:14:17 +00:00
Chris Danford
1a75a8cba5
add Lua methods
2005-02-15 23:13:18 +00:00
Chris Danford
146dbea98d
add GoalCalories
2005-02-15 22:08:42 +00:00
Chris Danford
48911f1572
fix VC7 warnings
2005-02-15 21:58:35 +00:00
Chris Danford
d76d94e64e
allow set TargetNumber in XML
2005-02-15 21:53:17 +00:00
Chris Danford
3ccb1f7e01
have ComboGraph obey screen fallback logic
2005-02-15 21:47:30 +00:00
Chris Danford
6d14988b8a
only override type if it wasn't specified
2005-02-15 20:51:03 +00:00
Chris Danford
147151e0b1
don't use hard-coded screen name
2005-02-15 19:44:34 +00:00
Chris Danford
23fe6c5dca
calories: don't double-count earlier steps
2005-02-15 18:30:27 +00:00
Chris Danford
bb099ee7e0
count calories while stepping, not at the end
2005-02-15 09:24:48 +00:00
Chris Danford
2b974e654d
play OffCommand for underlays
2005-02-15 07:58:06 +00:00
Chris Danford
07f011ef7e
make BitmapText accept Font property
2005-02-15 07:57:38 +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
Chris Danford
6d7f4cf150
add ScoreDisplayCalories
2005-02-15 07:09:07 +00:00
Chris Danford
eb35dfa15f
cleanup
2005-02-15 07:07:23 +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
22eee805b9
show the resulting invalid color value when a color metric using a Lua
...
function returns garbage, not the text of the lua call
2005-02-15 01:53:30 +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
Chris Danford
d9e71d7798
fix bogus, by-hand edit
2005-02-15 00:59:56 +00:00
Chris Danford
9702bca914
track calories in StageStats
2005-02-15 00:54:24 +00:00
Chris Danford
cf15266d69
fix "force SHOW_ONE" logic
2005-02-15 00:53:40 +00:00
Chris Danford
0ab2447027
move "rolling numbers" functionality out of ScoreDisplayNormal
2005-02-15 00:49:22 +00:00
Chris Danford
e51d338922
fix PlayerColors
2005-02-14 23:55:56 +00:00
Chris Danford
d63ab93803
Add m_pCourse to DescribesCurrent
2005-02-14 18:35:50 +00:00
Chris Danford
3ae98fd47a
fix ShowOne rows don't obey "capitalize"
...
There's got to be a cleaner way of doing this.
2005-02-14 18:28:14 +00:00
Chris Danford
93d31aa38a
revert to fix selected color
2005-02-14 18:21:58 +00:00
Chris Danford
874ee9fd1b
clean up enum strings
2005-02-14 17:52:45 +00:00
Chris Danford
98cee78b78
assert on invalid enum strings early
2005-02-14 17:51:57 +00:00
Chris Danford
f747571c29
fix enum strings
2005-02-14 17:50:53 +00:00