Commit Graph

499 Commits

Author SHA1 Message Date
Chris Danford 258a25c6e0 fix compile 2008-07-04 09:25:51 +00:00
Chris Danford cefafb8bc4 allow specifying section names in PreferredSongs 2008-07-02 00:10:47 +00:00
Glenn Maynard fe65136b7c fix crash 2008-06-11 22:30:09 +00:00
Glenn Maynard 48dbf58a67 same support change or courses 2008-05-23 23:07:11 +00:00
Glenn Maynard 9fb1994b47 support change: read PreferredSongs.txt all at once (easier to read multiple files); always clear empty groups; simplify 2008-05-23 22:48:14 +00:00
Mike Hawkins b3e11dcb94 Random attacks modifier 2008-05-16 04:00:13 +00:00
Glenn Maynard d03587dd30 Add HideIncompleteCourses; in some environments, it doesn't make sense to show incomplete courses. 2008-05-13 01:26:02 +00:00
AJ Kelly 7e214aabf1 add GetSongGroupColor 2008-03-28 20:24:01 +00:00
Glenn Maynard 3e36a05c5f fix song.h!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2008-03-09 01:51:34 +00:00
Chris Danford 9c5a4658f2 use SongID in DisabledSongs logic 2008-02-22 01:19:47 +00:00
Glenn Maynard a2c65170a5 handle course selectable flag like songs 2007-08-27 09:34:31 +00:00
Glenn Maynard 4acaeab1b9 fix preferred sort 2007-08-27 09:32:45 +00:00
Glenn Maynard 400da3065f better EnabledSongs interface 2007-08-16 23:24:36 +00:00
Glenn Maynard 9aead72d03 CourseID 2007-08-15 21:01:23 +00:00
Glenn Maynard 7729701678 use SongID 2007-08-15 20:56:44 +00:00
Glenn Maynard 6f68b3fbaa save disabled songs 2007-08-15 20:27:11 +00:00
Glenn Maynard 3e3c1deea4 We have a lot of duplicate, redundant checks between UNLOCKMAN->SongIsLocked
and Song::GetDisplayed/Song::NormallyDisplayed, which leads to inconsistency.

Make UnlockManager::SongIsLocked() handle both.  Returns a bitfield; most
cases only need to test true or false.

(Also adds m_bEnabled; not used yet.)
2007-08-13 21:20:51 +00:00
Glenn Maynard 9284021d2a style 2007-08-13 19:21:21 +00:00
Glenn Maynard 6653a64354 style 2007-08-13 19:20:40 +00:00
Glenn Maynard a1d33f8588 use Song::GetDisplayed 2007-08-13 19:18:55 +00:00
Glenn Maynard 019ca31c0b CachedObjectPointer<Song> for StepsID 2007-08-12 22:13:25 +00:00
Glenn Maynard f2671274da don't unload edit steps while they're in use 2007-05-31 18:24:22 +00:00
Glenn Maynard 6ee33d2a33 ProfileStepEdits, ProfileCourseEdits prefs 2007-05-27 17:59:41 +00:00
Glenn Maynard 7226e5a962 #BANNER tag for course files 2007-05-25 22:26:43 +00:00
Glenn Maynard 4fab332f39 fix dumb (on a roll today) 2007-05-08 01:49:21 +00:00
Glenn Maynard 579e15dad9 revert dumb 2007-05-08 01:47:44 +00:00
Glenn Maynard c4367903ee fix songs 2007-05-08 01:46:16 +00:00
Glenn Maynard aeb8fed361 honor GetDisplayed in UpdatePreferredSort 2007-05-07 19:51:50 +00:00
Glenn Maynard 081018eedf fix bool != enum 2007-05-07 19:49:35 +00:00
Steve Checkoway f9dbb386d7 Do not use SONGMAN inside SongManager member functions. This one actually was using it inside const functions. 2007-05-05 11:12:34 +00:00
Glenn Maynard 14456ec45d simplify 2007-04-24 02:13:23 +00:00
Glenn Maynard 3c9f9c1d9e remove unused popular lists 2007-04-10 22:41:45 +00:00
Glenn Maynard 23664ade33 remove GetSongRank, GetCourseRank 2007-04-10 22:33:58 +00:00
Glenn Maynard 6e45cfb041 2, not 4 2007-04-10 18:24:34 +00:00
Glenn Maynard 20a7545a4c remove params; do this in lua 2007-04-10 18:24:06 +00:00
Glenn Maynard 2c3371687c remove 2007-04-07 22:33:55 +00:00
Glenn Maynard 83ea1a6807 bind GetSongColor 2007-04-07 22:19:12 +00:00
Steve Checkoway 0e219a16aa Add GetSongColor binding. 2007-04-07 13:00:14 +00:00
Steve Checkoway 00d44c63bc GetRandomSong() was returning songs in the same order every time using the internal RNG. Use g_RandomNumberGenerator instead. 2007-04-07 10:04:08 +00:00
Steve Checkoway 9d75ef8bf2 While I'm at it, const. 2007-04-07 06:13:00 +00:00
Steve Checkoway 72ed44a52e Don't use istring, just use a comparison object that ignores case. 2007-04-07 06:04:40 +00:00
Steve Checkoway 0cb56b6ec2 GetAllSongs() -> GetSongs(). 2007-04-07 05:36:40 +00:00
Steve Checkoway a9187f5ce4 Store the group names in the map case insensitively. 2007-04-07 05:27:29 +00:00
Steve Checkoway 54035d6334 API change. SONGMAN->GetSongs( groupName ) returns a const reference to the songs in the group. If you want a copy of the songs, just copy the return value:
vector<Song *> vSongs = SONGMAN->GetSongs( groupName );
If you don't want to change the songs, get a const reference instead to keep it from copying.
2007-04-07 05:10:29 +00:00
Steve Checkoway de3f6e0618 Working at cleaning up the n different ways to get songs. 1 is probably sufficient. 2007-04-07 02:34:17 +00:00
Steve Checkoway 1ffcdab974 Apply speed up loading patch from https://sourceforge.net/tracker/?func=detail&atid=421366&aid=1691830&group_id=37892 2007-04-03 23:04:25 +00:00
Steve Checkoway 33e69bc576 Free the courses before the songs as per prior comments. 2007-04-01 11:24:40 +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