Commit Graph

85 Commits

Author SHA1 Message Date
Chris Danford 0160e23705 style cleanup: use FOREACH_ENUM( X, x ) everywhere instead of FOREACH_X( x ) for consistency
The FOREACH_X defines are not very useful, and they were created back before FOREACH_ENUM was convenient.
2007-02-23 22:29:42 +00:00
Chris Danford 019ec5dab0 name cleanup:
GetDescription -> GetDisplayTitle
GetValue -> GetDisplayValue
Do -> DoAndMakeSystemMessage
2007-01-25 11:19:11 +00:00
Chris Danford 179f1b6480 add metronome
rename tick -> clap because "tick" implies a regular interval
2007-01-25 11:03:41 +00:00
Steve Checkoway 2b762a116b Fix compile. 2006-11-22 05:51:10 +00:00
Glenn Maynard f0dab15f30 move AutoPlay 2006-11-21 05:02:55 +00:00
Glenn Maynard e386583dc8 High-level preferences that pull in other dependencies should be
moved out of PrefsManager; add GamePreferences for when we don't
have a convenient place to put it.
2006-11-21 04:54:50 +00:00
John Bauer 37f9178f61 Add an "Autosync Tempo" feature. This uses a linear Least Squares
Regression to figure out a line through the user's step errors to minimize
that error.  It then uses the slope of that line to fix the tempo and the
intercept to fix the offset.  Stops are adjusted as if they were originally
calculated as a number of beats, ie the slope is also used to change
the stops.

Also fixed is a bug where the user doesn't get a chance to keep or
reject the sync changes when ESCing (ZZing) from a song.

R=glenn
2006-10-26 22:41:40 +00:00
Glenn Maynard 0de94fb55c remove Actor:: 2006-09-26 19:48:46 +00:00
Steve Checkoway 488d166ba4 Deprecated. Note that lua_objlen() doesn't actually return the number of elements in the table. It simply evaluates the new # operator which will return the first integer n such that t[n] is not nil and t[n+1] is nil. Note that this means that this is only useful for tables which have no "holes" and integer indexes (starting at 1).
If you really want the table size, you have to walk the whole table (using next() or pairs() in Lua or lua_next() in C).
2006-09-26 09:32:14 +00:00
Glenn Maynard 48bb38ee12 NUM_CoinMode 2006-09-26 07:49:25 +00:00
Glenn Maynard 4e89ac8131 reoad from the bottom screen, not the top 2006-08-31 20:49:39 +00:00
Chris Danford cb5ad60bf9 no song sync in courses 2006-08-18 04:47:11 +00:00
Steve Checkoway 35c48c3671 Header cleanup. 2006-08-17 18:52:46 +00:00
Glenn Maynard af574d7a4c pop screens first, so we don't ResetGame while the screen is still
on the stack
2006-08-15 22:27:27 +00:00
Steve Checkoway c0ca082353 Simplify. 2006-08-12 23:20:43 +00:00
Steve Checkoway 91b3735332 Missing button. 2006-08-12 23:16:15 +00:00
Glenn Maynard cf4616a6eb add DebugLineRestartCurrentScreen 2006-08-10 17:49:40 +00:00
Glenn Maynard ea879be3e9 delete all screens when reloading 2006-08-09 03:29:24 +00:00
Steve Checkoway 0cb22fb806 Apparently VC doesn't like using (group).GroupType as a type (and frankly, I couldn't get g++ to accept it outside of StepMania, either) so use the macros with PO and SO prefixes for PlayerOptions and SongOptions, respectively. Also, pointers to data members can't point to elements of an array (no idea why gcc was allowing it before) so use Assign_n and pass the index separately. (Very annoying, typeof() should really be in the standard.) 2006-08-05 08:02:49 +00:00
Steve Checkoway 1802e603b3 Update to use the new ModsGroup api. 2006-08-05 04:47:01 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Chris Danford e0ce810fec remove broken, unused AllowFastSlow 2006-06-28 18:44:28 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford c6bddd9165 make autoplay available everywhere but DQ if used 2006-04-25 02:35:55 +00:00
Chris Danford 3ebb7787d0 pref to enable Tab speedup 2006-04-24 22:52:33 +00:00
Chris Danford 0183226c72 allow disabling of autoplay in normal gameplay but enabling in edit gameplay 2006-04-04 21:55:06 +00:00
Chris Danford ab2184b45e better FillProfile for debugging 2006-03-21 03:57:56 +00:00
Chris Danford def70f62a1 fix clear machine stats 2006-03-18 11:59:41 +00:00
Chris Danford e8ce30eb1a don't spread text to the edge of the screen. Keep the spacing fixed so things don't look silly when there are only 8 items. 2006-03-10 22:45:57 +00:00
Chris Danford a9a87d2892 localizable header text 2006-03-09 22:59:29 +00:00
Glenn Maynard 218b7d194a add "Force Crash" for testing the crash handler 2006-02-11 03:47:42 +00:00
Chris Danford 58a8830b9d fix Volume Down doesn't show volume precent in system message 2006-01-26 06:17:12 +00:00
Glenn Maynard 477c0dfac9 commenting out DECLARE_ONE lines alone didn't always work, since
gameplay lines and debug lines would get mixed up; g_Mappings had
to be adjusted too
2006-01-24 06:34:53 +00:00
Glenn Maynard 588f6e413d holdForSlow, holdForFast 2006-01-24 06:18:09 +00:00
Glenn Maynard c0761375cf cleanup 2006-01-24 06:09:25 +00:00
Glenn Maynard 7e47dd8dce do sticky slow/halt without actually pressing keys 2006-01-24 04:44:15 +00:00
Glenn Maynard c466fba954 cleanup 2006-01-24 04:41:47 +00:00
Glenn Maynard b45b377fa4 revert SubscriptionManager. It makes the line order nondeterministic. 2006-01-24 04:18:05 +00:00
Glenn Maynard 3461ff8901 do `, tab support in ScreenDebugOverlay 2006-01-24 04:10:21 +00:00
Glenn Maynard a48406b097 use SubscriptionManager 2006-01-24 04:06:05 +00:00
Glenn Maynard 9e53044d00 remove Actor:: qualifier 2006-01-23 04:42:12 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 5f8fc893ce fix fill machine stats 2006-01-18 10:09:34 +00:00
Glenn Maynard a87993bcb1 finish ctor transition 2006-01-15 20:46:15 +00:00
Glenn Maynard 87ea090b9b Transition away from Screen(sName). 2006-01-15 18:37:57 +00:00
Steve Checkoway 83e18b9a82 Virtual functions but no virtual dtor. 2006-01-15 11:46:01 +00:00
Glenn Maynard bb88810b27 illegal conversion; more than one user-defined conversion has been implicitly
applied
2006-01-12 20:04:41 +00:00
Chris Danford fc18dbd342 make more strings localizable 2006-01-08 18:40:20 +00:00
Chris Danford 74749a19bb move localized string to separate file 2005-12-22 03:10:04 +00:00
Chris Danford d698a5f1ec CString -> RString in RageUtil
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00