John Bauer
bf6da7d8b4
Reorder some includes.
2006-11-29 14:57:21 +00:00
Glenn Maynard
c2581734b1
const
2006-11-13 18:28:29 +00:00
John Bauer
e15285ab55
Fix SongManager::Invalidate. Call it from places it is needed:
...
ScreenEdit::RevertFromDisk, ScreenEdit's Save routine, and
ScreenEditMenu's Delete Steps routine. This fixes the bug where
deleting a step chart sometimes causes interesting behavior
but usually just causes a CTD next time you run Oni mode. It also makes
sure data precalculated from the songs is correctly recalculated when
ScreenEdit changes a song.
2006-11-13 17:07:42 +00:00
Glenn Maynard
c6e62ae92d
revert. Need a better approach.
2006-11-12 03:26:25 +00:00
John Bauer
5d2bf93725
Make all uses of the Steps* in the TrailEntry class use an accessor method.
...
This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
2006-11-10 05:04:09 +00:00
Steve Checkoway
e87789da7c
Rename XToString2 to XToString.
2006-10-15 00:09:18 +00:00
Steve Checkoway
04bff6bc1d
Use XToString2.
2006-10-15 00:00:22 +00:00
Glenn Maynard
78a91ba878
revert. You brought back a type I've been trying to remove.
2006-10-07 22:33:24 +00:00
Steve Checkoway
73663c4f8a
CourseDifficulty.
2006-10-07 10:49:53 +00:00
Glenn Maynard
4bb479a445
standard enums for some preference types
2006-10-07 07:43:18 +00:00
Glenn Maynard
de6ca466d2
more enum standardization
2006-10-07 04:39:48 +00:00
Glenn Maynard
8a4ddd1515
Invalid
2006-10-07 04:13:43 +00:00
Glenn Maynard
b67e57864e
Invalid
2006-10-07 03:32:16 +00:00
Glenn Maynard
e91a806b37
remove LuaFunctions.h
2006-09-29 09:54:50 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
ea7c05cee5
simpler Lua boilerplate
2006-09-27 19:53:05 +00:00
Glenn Maynard
982228b7e6
bind StepsType
2006-09-27 06:09:52 +00:00
Glenn Maynard
9c9440c8a0
PlayMode_Invalid
2006-09-26 20:32:41 +00:00
Glenn Maynard
600fdfea63
simplify LuaXType
2006-09-26 07:13:54 +00:00
Glenn Maynard
95a384b970
LuaXType2 -> LuaXType
2006-09-26 06:47:53 +00:00
Glenn Maynard
aeebc89106
update typing
2006-09-26 04:08:12 +00:00
Glenn Maynard
f68b0e4440
remove old
2006-09-26 04:08:11 +00:00
Glenn Maynard
c011185fa9
new binding method
2006-09-26 01:54:36 +00:00
Glenn Maynard
969efc7f0f
fix GetTotalSeconds
2006-09-07 22:11:54 +00:00
Steve Checkoway
076205f683
Bind.
2006-09-01 03:05:47 +00:00
Steve Checkoway
214873da10
Header cleanup.
2006-08-19 23:35:31 +00:00
Steve Checkoway
ba1a57b15d
Bindings.
2006-08-19 20:49:16 +00:00
Glenn Maynard
62def4a5e6
bind GetEstimatedNumStages
2006-08-19 05:04:17 +00:00
Jason Felds
bf548b5e89
General cleanup.
2006-08-18 02:41:55 +00:00
Glenn Maynard
5526d54b8b
bind IsAutogen
2006-08-16 22:54:28 +00:00
Steve Checkoway
e7c5b14196
Remove timing code.
2006-07-30 11:36:18 +00:00
Steve Checkoway
5bffacf3a6
Optimize. With a debug build, this is taking less than a third as long as before. Idea (and some code) from:
...
https://sourceforge.net/tracker/?func=detail&atid=421366&aid=1511048&group_id=37892
2006-07-30 11:35:46 +00:00
Steve Checkoway
879de00412
Simplify.
2006-07-30 00:09:16 +00:00
Chris Danford
29d77f5c8c
search songs by a genre list
...
move MenuDir to SSMaster header
GoalType name cleanup
2006-07-11 06:51:46 +00:00
Chris Danford
380f97f903
fix course entry sorting
2006-07-03 00:05:13 +00:00
Chris Danford
97d28100ae
use SongCriteria and StepsCriteria to resolve songs for Trail
2006-07-02 06:04:53 +00:00
Chris Danford
1092237cb0
don't choose the same song for 2 TrailEntries in a row
2006-06-14 09:16:28 +00:00
Chris Danford
c7124728e0
move song finding to SongUtil
2006-06-13 03:51:18 +00:00
Steve Checkoway
2ea4cb1ead
Don't allow locked songs in edit courses. Allow limiting the number of songs in an edit course to a preference. Nonpositive numbers are infinitely many songs per course (well, up to the hard limit of MAX_ENTRIES_PER_COURSE=50).
2006-06-12 10:49:04 +00:00
Steve Checkoway
8de96799ad
Add better logging. It'd be nice if these values were checked as they were read in from Preferences.ini.
2006-05-20 06:16:09 +00:00
Charles Lohr
a84d30b92e
Fix crash from MusicWheel when in BuildWheelItemData(), and under case SORT_ENDLESS_COURSES. Automatically generated courses will cause there to be no group name, and the default (preferred) sort. When this function does not return a value, and it gets assigned to c (In MusicWheel), in some cases we will get a crash.
...
By default, I use white in the metrics, this doesn't look "great," but it should be up to the themer.
2006-05-17 06:49:55 +00:00
Sean Burke
498c8fcefb
I suppose that this is a better way to do it
2006-05-16 10:04:36 +00:00
Chris Danford
cb65313c83
fix bogus assert fires for autogen courses
2006-05-04 07:09:08 +00:00
Chris Danford
8814cb747d
add courses preferred sort
2006-05-01 21:49:59 +00:00
Chris Danford
bc6f682ebb
add lua bindings
2006-05-01 12:45:42 +00:00
Chris Danford
ab84dffa0f
disallow locked steps in random courses
2006-03-27 21:53:33 +00:00
Steve Checkoway
cc7a528269
The distinction between a random course entry and a nonfixed one is not clear. A newly created course entry would have IsRandomSong() return false yet when placed in a course, the course would return AllSongsFixed() as false. Redefine a random song to be pSong = NULL.
...
Remove the sentinel value since the songs are already shuffled. Picking the first one is enough.
2006-02-21 02:29:22 +00:00
Steve Checkoway
6bc529f51b
This only modifies mutable data so make it const to silence the compiler warning about calling it from a const function.
2006-02-21 01:54:50 +00:00
Steve Checkoway
439c0f2011
IsFixed and AllSongsAreFixed were identical. IsFixed -> AllSongsAreFixed.
2006-02-21 01:48:01 +00:00
Steve Checkoway
e6a456e1c3
Handle random entries.
2006-02-21 01:36:49 +00:00