Commit Graph

425 Commits

Author SHA1 Message Date
Glenn Maynard 208c5b0061 Make wheel items regular children (no special update/drawing);
remove "staggered tween" hack and set the offset in the
context so this can be done in commands; fix sections;
do OnCommand/OffCommand normally and rename TweenOn/OffScreen
to TweenOn/OffScreenForSort; other fixes/cleanups (metric
updates to come in a bit)
2006-08-10 06:27:47 +00:00
Glenn Maynard 35618be535 Fix up MusicWheel. This code was a mess: huge blocks of copy-and-pasted
code, duplicated arrays in base classes that were never used ...

(It's still ugly, but at least WheelBase is actually a real base class now.)
2006-08-10 04:27:46 +00:00
Glenn Maynard eebaa57c5b cleanup 2006-08-09 22:40:35 +00:00
Glenn Maynard c55c3b1615 remove WheelItemOnDelayCenter, WheelItemOffDelayCenter 2006-08-09 22:39:03 +00:00
Steve Checkoway 387b1397c1 Move extra stage setting player options to SSMusic. 2006-08-06 23:34:33 +00:00
Steve Checkoway ba0d51cc7a Simplify. 2006-08-06 02:37:42 +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
Josh Allen e9bc3ab514 clean up 2006-08-01 21:55:32 +00:00
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +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
Steve Checkoway aa2c86ce35 Cleanup. 2006-06-24 00:06:57 +00:00
Steve Checkoway 5b2b0b4611 Show memory card icon for course edits. 2006-06-14 04:12:20 +00:00
Sean Burke b99c1ebdcd Fix typo here as well 2006-05-16 10:06:04 +00:00
Chris Danford 8814cb747d add courses preferred sort 2006-05-01 21:49:59 +00:00
Glenn Maynard fe00ec613c move out of PrefsManager 2006-04-06 09:39:29 +00:00
Chris Danford e3bd1698d3 fix wheel item colors still look locked if Roulette then back out from SPlayerOptions 2006-04-04 21:39:03 +00:00
Chris Danford 64ea81fac1 Best -> Popular
populate SORT_PREFERRED from a txt file
2006-03-20 01:04:46 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford fc18dbd342 make more strings localizable 2006-01-08 18:40:20 +00:00
Glenn Maynard b68e9dd772 simplify into one loop 2005-12-09 20:05:04 +00:00
Glenn Maynard be0fe94d36 fix current sort not selected when going to sort menu 2005-12-09 00:42:45 +00:00
Glenn Maynard 7edb143399 cleanup, const 2005-10-30 20:09:32 +00:00
Glenn Maynard 89f80eb2e5 more easily themable sort text
(Not sure whether to use the choice name or the GameCommand m_sName.
The GameCommand name is used to identify asset names.  However, we
already have a Choice name here, and it's weird having two names: the
GC name just seems like a confusing extra layer of indirection.  Hmm ...)
2005-10-30 18:31:18 +00:00
Glenn Maynard 65a16ed427 overwritten immediately 2005-10-30 18:14:52 +00:00
Glenn Maynard eccfe81012 fix current StepsType ignored 2005-10-01 01:03:08 +00:00
Glenn Maynard be73671d02 cleanup 2005-09-19 09:55:05 +00:00
Glenn Maynard 075b132f89 nudge RebuildWheelItems and RebuildMusicWheelItems together 2005-09-19 09:48:41 +00:00
Glenn Maynard d2616b08d9 nudge RebuildWheelItems and RebuildMusicWheelItems together 2005-09-19 09:37:47 +00:00
Glenn Maynard 4f1e6add01 remove function overload that doesn't change anything
cleanup
2005-09-19 09:33:05 +00:00
Glenn Maynard 6a0c91e07e STATE_SELECTING_GENERIC -> STATE_SELECTING 2005-09-19 09:27:43 +00:00
Glenn Maynard ccc567b85c There were two "selecting" states, and several functions from WheelBase duplicated
in MusicWheel that just had one replaced with the other.  Merge them.  Multiple
selection "modes" are implemented by having different sorts containing different
selections, not with a high-level mode.
2005-09-19 09:26:42 +00:00
Glenn Maynard 60aa06f88b optimize load of same object 2005-09-09 03:55:42 +00:00
Glenn Maynard f8548a4ac6 cleanup 2005-09-03 04:34:04 +00:00
Glenn Maynard c56123b228 cleanup 2005-09-03 04:16:48 +00:00
Glenn Maynard 5eb0e9a128 cleanup 2005-09-03 03:52:22 +00:00
Glenn Maynard 56817d9490 broadcast m_SortOrder 2005-08-24 20:42:14 +00:00
Chris Danford 6ab20c5ad9 more work on a new course editor 2005-06-28 08:11:30 +00:00
Chris Danford f0335f486c GROUP_ALL_MUSIC -> GROUP_ALL
use GROUP_ALL as sentinel value in PreferredCourse
2005-06-24 06:06:16 +00:00
Chris Danford 2a6dcba6e8 cleanup:
"GroupName" -> "SongGroup" to make room for CourseGroup
replace checks for "cvs" with a call to StripCvs()
m_Rows -> m_pRows
broadcast on preferred group changes
2005-06-23 08:05:09 +00:00
Chris Danford 49b3cbaf34 pressing L+R for the sort code should end up back at the originally selected item
fix jumpy wheel when letting go of L+R near-simultaneously
fix MenuTimer doesn't choose a Random song if sitting on a section or sort
fix MenuTimer fire has no effect if wheel is tweening
2005-06-12 23:43:39 +00:00
Chris Danford 933e1320da add DefaultSong, move DefaultSort into GameState, show machine scores for edits 2005-06-12 03:44:13 +00:00
Ben Anderson 111028f9b4 Give different variables different names. I don't know how that compiled in the first place... 2005-06-08 01:45:21 +00:00
Charles Lohr 670b8d71b5 Allow groupless courses. We really shouldn't crash when comming upon one, Instead just make the color that of the course. 2005-06-04 23:25:56 +00:00
Chris Danford 91d375d31a store course group names
show courses on wheel with a group color
2005-06-03 01:57:10 +00:00
Chris Danford e504fb4e98 broadcast on changed course/trail 2005-05-18 07:14:19 +00:00
Chris Danford e389ba6191 convert the rest to use Preference 2005-05-16 09:36:32 +00:00
Chris Danford 11b9427b9c add pref PreferredSortUsesGroups 2005-05-09 17:33:22 +00:00
Glenn Maynard 7c2ab0d0a2 add RANDOM_PICKS_LOCKED_SONGS 2005-05-09 01:26:30 +00:00