Commit Graph
100 Commits
Author SHA1 Message Date
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
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
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
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
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
Chris Danford db86be45ba add Lua binding 2005-02-16 02:11:31 +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
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
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
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
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
Chris Danford 43c221c1fa fix warning 2005-02-14 01:37:08 +00:00
Chris Danford e288aaff7c cleanup 2005-02-14 01:34:49 +00:00
Chris Danford 8073ebaac5 add unsigned clamp and wrap 2005-02-14 01:30:05 +00:00
Chris Danford c020f54c3c move code from header to cpp 2005-02-14 01:29:25 +00:00
Chris Danford 0da2e0fa6e remove unused workout options 2005-02-13 18:18:55 +00:00
Chris Danford dae8bf0332 enum name cleanup
fix "CapitalizeAll" not applied if "ShowOneInRow"
2005-02-13 18:15:10 +00:00
Chris Danford 202170ab53 add "ShowOneInRow" 2005-02-13 18:14:11 +00:00
Chris Danford a4fc150692 Options row labels metrics cleanup 2005-02-13 07:16:30 +00:00
Chris Danford b4327b8daf specify Y for each row 2005-02-13 07:10:35 +00:00
Chris Danford fdad5746e7 change ThemeMetric static-sized arrays to dynamically sized 2005-02-13 06:44:50 +00:00
Chris Danford 12fde5d55c move PlayerName texts out of code and into BGAnimations 2005-02-13 01:16:17 +00:00
Chris Danford 4264182ea1 use Lua function PlayerColor instead of color constants 2005-02-12 23:04:46 +00:00
Chris Danford 8decda4f63 allow AtExpressions in Commands 2005-02-12 22:54:15 +00:00
Chris Danford e38164e74f yell louder on error when parsing scripts 2005-02-12 22:53:51 +00:00
Chris Danford 1bd60eb3fb construct LUA after THEME 2005-02-12 22:53:03 +00:00
Chris Danford 3d72b8cc37 expose ThemeManager in Lua
add PLAYER_* constants to Lua
Change GetMetric* to allow AtExpressions
2005-02-12 22:52:24 +00:00
Chris Danford e31d0ce615 experiment: expose global singletons and their methods in Lua so we don't end up with tons of Lua function polluting the global namespace 2005-02-12 21:07:13 +00:00
Chris Danford 40c9e8fbe7 cache common metrics 2005-02-12 21:03:39 +00:00
Chris Danford d5022cb1b6 code style cleanup 2005-02-12 20:29:38 +00:00
Chris Danford 8476685ade fix metric name 2005-02-12 08:38:43 +00:00
Chris Danford 93b8ba48b6 Move OptionRow to a separate file
Don't init all BitmapText objects for long rows.  Calculate the row width, then init the text.
2005-02-11 07:50:26 +00:00
Chris Danford 16952cf29c replace ScreenBranches with Lua 2005-02-09 10:02:09 +00:00
Chris Danford 46f32c7828 add missing 2005-02-09 10:01:05 +00:00
Chris Danford dedab65789 allow Lua expressions in command metrics 2005-02-09 09:44:16 +00:00
Chris Danford 48846d48a4 cache metrics 2005-02-09 08:10:50 +00:00
Chris Danford 6c79849720 hard-coded -> metric 2005-02-09 07:50:30 +00:00
Chris Danford 73813115d3 shorten comment 2005-02-09 05:42:18 +00:00
Chris Danford 7db5d72fb6 add experimental GenreDisplay 2005-02-09 05:33:29 +00:00
Chris Danford 8c53c62f2b add Actor type registration 2005-02-09 05:31:14 +00:00
Chris Danford 1de61aa8ae split AutoActor into a separate file 2005-02-09 05:27:51 +00:00
Chris Danford 613b99d26f add experimental MessageManager 2005-02-09 05:20:49 +00:00
Chris Danford 72488ab88c add debug assert 2005-02-09 05:14:47 +00:00
Chris Danford ce82f9c5c6 don't read the metric before ThemeManager is loaded 2005-02-06 19:42:46 +00:00
Chris Danford a5e1ea15a4 cache 2005-02-06 19:15:38 +00:00
Chris Danford eadeb52f8e GetPathTo -> GetPath 2005-02-06 19:14:45 +00:00
Chris Danford d93d2d1681 cache OPTION_ORDER 2005-02-06 05:15:57 +00:00
Chris Danford e4117354ae add static-sized array versions of ThemeMetric 2005-02-06 04:57:57 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Chris Danford 7e68ac03b4 change elements to have format "<name> <piece>" 2005-02-06 03:28:22 +00:00
Chris Danford 544dd78497 change elements to have format "<name> <piece>" 2005-02-06 03:06:42 +00:00
Chris Danford 72fea98241 rename element 2005-02-06 03:01:12 +00:00
Chris Danford 8dfdb3f9d2 background shouldn't be optional 2005-02-05 23:09:26 +00:00
Chris Danford 33661c13d6 zero the next update after creating or deleting a screen so we don't skip 2005-02-05 22:11:15 +00:00
Chris Danford 5844f7d297 fix build 2005-02-05 20:37:23 +00:00
Chris Danford 9d760bbdea move common subscription code into templated class 2005-02-05 11:21:13 +00:00
Chris Danford e2da825c30 re-register all ActorCommands after resetting Lua 2005-02-05 10:15:15 +00:00
Chris Danford 12a5a25648 simplify
don't reload shared BGA on metrics/texture reload
2005-02-05 07:35:02 +00:00
Chris Danford ae7076daf7 simplify fix for ATI 2005-02-05 06:43:35 +00:00
Chris Danford cc8d974192 give names to all course difficulties 2005-02-05 06:36:32 +00:00
Chris Danford 1b43db7b59 fix vertex shader on ATI 2005-02-05 06:34:25 +00:00
Chris Danford 6e7d4264fe add missing metrics 2005-02-02 08:48:14 +00:00
Chris Danford 0a4bba94fd cache ScreenOptions metrics 2005-02-02 08:32:20 +00:00