Commit Graph
1932 Commits
Author SHA1 Message Date
Glenn Maynard c8af49d888 Add templated min and max, which only evaluate their arguments once. (Switching to the STL will require this eventually, anyway.)
Keep #defined MIN and MAX, for the few cases where we really do need compile-itme constants.

Add min/max(float,int) and (int,float) specializations, since that's often used.
2002-08-20 22:56:13 +00:00
Glenn Maynard 43cb55dcde Use DeviceInput::NumButtons. 2002-08-20 22:51:47 +00:00
Glenn Maynard fa746ea3f3 Add Pump USB pad support. Code requiring the DDK is blocked off by HAVE_DDK.
Add DeviceInput::NumButtons, to abstract button counts (so adding devices or buttons doesn't require changes to InputFilter).

Use clamp() for m_AbsPosition_x and m_AbsPosition_y.
2002-08-20 22:51:12 +00:00
Glenn Maynard c233e3c6d2 Support for "artist - title - difficulty" titles in KSF. 2002-08-20 22:03:09 +00:00
Glenn Maynard cb25c1f4ce Update changelog. 2002-08-20 22:01:06 +00:00
Glenn Maynard 9de93c7883 Update changelog. 2002-08-20 21:20:55 +00:00
Glenn Maynard 08bfaf532f Fix announcer repeating when you get a 100*n combo and break it at the 100*n+1st step. 2002-08-20 21:19:49 +00:00
Chris Danford 7766338beb more bug fixes 2002-08-20 21:00:56 +00:00
Glenn Maynard d84f00a70d Update changelog. 2002-08-20 20:50:18 +00:00
Glenn Maynard 77dc160001 Add SongManager::ChooseRandomSong (from TitleMenu). Use it
when starting a demonstration.

Instead of queuing a bunch of SM_PlayAttract's, queue one and
have it requeue itself.

This means 1: if the demonstration fails to start, we don't stop
playing the attract.  (Well, if we don't have any songs, maybe
we don't want ot attract attention, but ...) and more importantly,
2: setting the SECONDS_BETWEEN_ATTRACT value to some obscenely
high value won't cause millions of messages to be queued.

Flatten the option selection loop a bit (this should probably be
moved somewhere, too.)
2002-08-20 20:38:40 +00:00
Glenn Maynard 748c21c0f8 When start/back is pressed at the evaluation screen, settle the grade immediately so it can be seen during fade out. 2002-08-20 08:34:46 +00:00
Glenn Maynard 4e52525262 Add GradeDisplay::SettleImmediately(). 2002-08-20 08:30:30 +00:00
Glenn Maynard 10b0287c9d Don't allow cancelling ScreenCaution while i''s already in the process of being cancelled.
(Other screens have this problem, too ...)
2002-08-20 08:29:55 +00:00
Glenn Maynard 13acb4ac15 Make IsAnInt not O(n^2) 2002-08-20 08:01:59 +00:00
Glenn Maynard 50370506d9 Allow backing out of the caution screen. 2002-08-20 07:58:19 +00:00
Glenn Maynard 8814a37d19 Vain, hopeless attempt to simplify GetBeatAndBPSFromElapsedTime. :) 2002-08-20 07:20:59 +00:00
Glenn Maynard 8b7b267dbe Minor loop simplification. 2002-08-20 07:08:54 +00:00
Glenn Maynard 2e78a4d08f Add Song::SongHasNoteType, moved from ScreenSelectGroup. 2002-08-20 06:47:30 +00:00
Glenn Maynard 2d39de68e9 Fix typo. 2002-08-20 06:26:34 +00:00
Glenn Maynard a6815a7744 Merge default and non-default ctor.
Simplify a little.
2002-08-20 02:12:19 +00:00
Glenn Maynard 4e2993f370 Don't free m_szFileString twice.
Must use delete[] x when x was allocated as an array.

No need to check for NULL; "delete NULL" is always OK. (http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.7)

Don't depend on the compiler having old-style for scoping rules.

Remove extra iCurValueIndex/iCurParamIndex.
2002-08-20 01:27:42 +00:00
Glenn Maynard 7236c5bb91 Add include-once barrier; make members prot instead of public. 2002-08-19 23:57:55 +00:00
Chris Danford 0e5f97143e optimizations 2002-08-19 20:02:30 +00:00
Glenn Maynard fc68b90acc Fix compilation in VC6. (vc6 for scoping bug) 2002-08-19 18:59:58 +00:00
Chris Danford c82d2925ef games will now try to use announcers, noteskin, and theme of the same name as the game initially. 2002-08-19 00:21:54 +00:00
Chris Danford 5c21d4b1ca bug fixes 2002-08-18 23:20:18 +00:00
Chris Danford 8b55061827 added more info besides FPS to the stats display 2002-08-18 17:48:50 +00:00
Andrew Livy 4ec25ba29c ez2dancer final stage screen added 2002-08-18 16:21:07 +00:00
Chris Danford 0447dc2aad Bug fixes and deferred rendering architecture 2002-08-18 16:19:26 +00:00
Andrew Livy 9b45ff8afe Gametype ScreenStages now look like they do on their respective machines. Ez2dancer metric is still in the works though. 2002-08-18 00:15:03 +00:00
Chris Danford 4558db37bb added menu to editor 2002-08-17 06:44:04 +00:00
Chris Danford 84df8103d4 Fixed a couple Pump bugs 2002-08-15 16:45:49 +00:00
Chris Danford ceac5f9cda added theme metrics 2002-08-14 00:03:42 +00:00
Chris Danford 9bd1c84a75 removing duplicate files 2002-08-14 00:01:27 +00:00
Chris Danford 7c1bfb3a0d big checkin - new noteskin format and XY positioning. I probably broke a lot of things. 2002-08-13 23:26:46 +00:00
Bruno Figueiredo 9346564080 oops... missing dlls 2002-08-12 16:02:45 +00:00
Bruno Figueiredo ffcff05f27 chris had problems sending this file... here it is now.... 2002-08-04 08:03:41 +00:00
Chris Danford d789b6b981 fixed a couple stupid crashes 2002-08-03 22:05:04 +00:00
Chris Danford 4c3c43abcc Broke noteskin colors into " Tap.colors" and " Hold.colors" 2002-08-03 18:40:09 +00:00
Chris Danford f1861ba157 Added demonstration 2002-08-02 09:31:06 +00:00
Chris Danford 77152779d5 Added Oni Game Over graphic and animation 2002-08-01 21:55:40 +00:00
Andrew Livy 4343e5aebf CONFLICT RESOLUTION (view entire LOG message to see):
GAMEMANAGER. we did different fixes. I merged the best of both ;)
EZ2DANCER columns now aligned correctly
EZ2DANCER stage screen stylization now underway
NOTE: This Release WILL NOT COMPILE. Some Members of RAGELOG and RAGESOUND have disappeared, and I don't know where to.
2002-08-01 21:11:32 +00:00
Chris Danford 2d4eb7baff Fixed preferred difficulty on select music screen and fixed transforms for TurnTypes 2002-08-01 20:30:40 +00:00
Chris Danford 4c12a0921b Fixes to Extra Stage 2002-08-01 13:42:56 +00:00
Chris Danford 0e0a328191 Fixed Song/Stage counter in Oni/Endless 2002-08-01 05:11:11 +00:00
Chris Danford 4e1bd74ee6 added a transition between course songs 2002-08-01 03:15:27 +00:00
Chris Danford 32e07da63a created a folder for DWI-style CDTitle support 2002-07-31 22:50:44 +00:00
Chris Danford 4f732aaa5b Random background movie support 2002-07-31 22:37:58 +00:00
Chris Danford 4ec08edf2d Mini-rewrite of input mapping, theme support, and added KSF reader. 2002-07-31 19:40:40 +00:00
Bruno Figueiredo 488798fef6 fixed: * Using autoplayer at all results in an 'E' grade. 2002-07-31 04:59:49 +00:00