Commit Graph

460 Commits

Author SHA1 Message Date
Glenn Maynard ab5ef1ef2a allow courses to set their preferred style 2007-04-10 23:59:14 +00:00
Glenn Maynard a9d8d0f405 We have two ways of only showing songs in roulette: unlocks and
"#SELECTABLE".

I'm not sure if this feature is worth keeping, but there definitely doesn't
need to be two ways to do it.  Remove #SELECTABLE:ROULETTE.
2007-04-10 23:08:07 +00:00
Glenn Maynard 493021c784 doesn't work and isn't used 2007-04-10 18:44:06 +00:00
Glenn Maynard 32342ef5df default params 2007-04-10 18:16:53 +00:00
Steve Checkoway ef22ba5d57 SONGMAN API change. 2007-04-07 05:11:47 +00:00
Chris Danford 25a82867cc fix long songs showing in last stage and causing crash b/c no steps are playable 2007-04-04 02:19:09 +00:00
Glenn Maynard 594e839bd1 theme sort list 2007-04-03 02:50:25 +00:00
Steve Checkoway 8afb8b821f Cleanup. 2007-04-01 09:32:51 +00:00
Steve Checkoway 47b17ca841 Fix Roulette and Random. Both of these were picking a song immediately but making the wheel spinning noises.
Random looks like it was written with two behaviors in mind. The first is that it acts like Roulette except that where you are in the wheel has no correlation with the song picked and it stops spinning immediately. The second (which seems to have been added later), is to pick a song directly, a la Portal but without giving away any information about it. I went with the former since it was easier (less to clean up).

Roulette feels horribly wrong to me but at least the basic mechanics are there again. I think the Select() logic is wonky.
2007-04-01 09:26:53 +00:00
Chris Danford 43ef38383d separate CurrentStageIndex into separate number per game and per player. This allowed for staggered join periods. 2007-03-25 09:37:14 +00:00
Glenn Maynard b325ed9321 fix long song crash 2007-03-17 07:46:07 +00:00
Chris Danford 32586f28e1 add IsStepsPlayable, make IsStepsTypePlayable take the number of stages left into account 2007-03-12 01:47:03 +00:00
Chris Danford c0efd6c810 add Preferred to sort toggle list 2007-03-07 22:07:21 +00:00
Chris Danford 8cbbc48523 when a 2nd player joins, remove double steps from the list. They're no longer playable with 2 players joined. 2007-03-06 08:06:26 +00:00
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 9061e2c1c1 move stage logic out of SongManager
allow selecting between multiple StepsTypes on ScreenSelectMusic (ala Pump's combined single/double list)
2007-02-23 21:13:45 +00:00
Chris Danford f77647b5ad enum name cleanup: DIFFICULTY_* -> Difficulty_* 2007-02-22 07:18:05 +00:00
Steve Checkoway 0e7eed7637 Style. 2007-02-18 11:15:31 +00:00
Steve Checkoway cef0c5ea30 Header cleanup. 2007-02-18 10:19:31 +00:00
Steve Checkoway bcbb72cfe0 MakeItem returns a MusicWheelItem*. 2007-02-17 13:03:27 +00:00
John Bauer e28f5f5ce8 Cosmetic changes:
merge an if and a switch that test the same thing
embellish a LOG line

R=steve
2006-10-22 13:36:59 +00:00
Glenn Maynard 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 4bb479a445 standard enums for some preference types 2006-10-07 07:43:18 +00:00
Glenn Maynard 0493bc75a9 standard enums for some preference types 2006-10-07 05:52:45 +00:00
Glenn Maynard de6ca466d2 more enum standardization 2006-10-07 04:39:48 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Glenn Maynard 8a4ddd1515 Invalid 2006-10-07 04:13:43 +00:00
Glenn Maynard a31f76e9ad allocate GameCommand as needed 2006-10-01 20:13:27 +00:00
Glenn Maynard e8a3c636f6 SortOrder_INVALID, NUM_SortOrder 2006-09-26 07:42:55 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Glenn Maynard 406dc6b245 auto RefreshGrades 2006-08-16 22:34:59 +00:00
Chris Danford c36f33c088 fix compile 2006-08-15 21:17:36 +00:00
Chris Danford a894eca8ec show all courses, not just preferred 2006-08-15 20:14:25 +00:00
Chris Danford 08616ca55d fix VC6 compile 2006-08-14 04:31:53 +00:00
Glenn Maynard 3d85b7a02b update, fix, simplify ... 2006-08-10 17:42:28 +00:00
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