Commit Graph

201 Commits

Author SHA1 Message Date
Glenn Maynard e0acdf0c80 simplify 2007-01-04 00:09:06 +00:00
Glenn Maynard cec4803949 5bb79cd "when using dizzy, hold heads get stuck in rotated position"
apply to tails too
2007-01-04 00:07:21 +00:00
Chris Danford 09e8c0bc34 Make addition a texture coord shift instead of a separate element. This means fewer texture swaps when drawing, fewer graphics to maintain, and lets non-tap elements have addition coloring 2006-12-15 22:27:00 +00:00
Chris Danford e58c980aef add per-NoteType texcoord offset so that Note and Addition can use the same ModelGeometry 2006-12-01 13:10:01 +00:00
Chris Danford bf20880ba9 name cleanup. Replace:
StartDrawingAtPixels
 FirstPixelToDraw
 YStartOffset
 DrawFarY
with:
 DrawDistanceAfterTargetsPixels
2006-11-13 06:12:38 +00:00
Chris Danford 06e30d1f45 support fading in of notes from 0 alpha at farthest draw point to 1 alpha closer 2006-11-13 02:27:23 +00:00
Glenn Maynard e77cf2375f don't clear the texture redundantly
fix missing SetZoom
2006-11-03 07:31:19 +00:00
Glenn Maynard b2f846ddf4 don't depend on texture env 2+ being clear 2006-11-03 03:49:32 +00:00
John Bauer 3ddc314cbd Currently, long hold arrows are smudged like wet fountain pen ink.
This change fixes them.  Apparently the DISPLAY does not keep track
of all of these state changes in between calls to Draw().
2006-11-02 21:00:20 +00:00
Glenn Maynard f4136c72e6 simplify 2006-11-02 06:47:48 +00:00
Chris Danford 1b4387a7d9 add HoldActiveIsAddLayer 2006-10-30 03:04:41 +00:00
Glenn Maynard 04b1490b51 faster, more reliable error checking 2006-10-20 09:43:56 +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 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 5541709a1f move ColToButtonName from Game to Style, to reduce GAMESTATE use
in Game
2006-09-30 00:46:21 +00:00
Glenn Maynard 2eca7b670c use FOREACH_ENUM2 2006-09-27 05:18:47 +00:00
Glenn Maynard 0b7b6b6f9f naming cleanups 2006-09-26 21:05:49 +00:00
Steve Checkoway 832212c526 Cleanup. 2006-08-14 13:15:47 +00:00
Steve Checkoway d9b63a0dae Simplify. 2006-08-14 13:10:52 +00:00
Steve Checkoway b39d68c8cf Initial TapNote::lift implementation. 2006-08-14 12:16:31 +00:00
Chris Danford 339e9de36a clamp to 8 different note colors so that NoteSkins can implement colors efficiently in power-of-2 texture sizes 2006-08-08 02:27:59 +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
Glenn Maynard d0bcf2052d RageTexture is a wrapper around RageDisplay's textures; RageDisplay
itself doesn't use it.  Don't pass in RageTexture to SetTexture;
use RageDisplay's native texture handles.
2006-07-23 03:19:49 +00:00
Glenn Maynard 5c8ff23cfb unused 2006-04-29 21:22:16 +00:00
Chris Danford 6a78f271d0 fix mines frames draw with wrong tex coord shifting 2006-03-06 00:16:08 +00:00
Glenn Maynard 3654470a05 Fix notes placed 1/64th above the beat are the wrong color in vivid. 2006-02-17 05:57:00 +00:00
Glenn Maynard 0081134bc6 simplify. (It's not obvious what this subtracting of, typically, 1/16 is actually doing ...) 2006-01-31 03:51:36 +00:00
Glenn Maynard a3615bf11a cleanup 2006-01-30 23:10:02 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Chris Danford 3f6e95b7d8 fix D3D texture coord generation 2005-11-05 03:08:09 +00:00
Chris Danford b3925c7f14 judgment name cleanup 2005-10-09 07:01:48 +00:00
Chris Danford a89764040c remove old NoteColor logic 2005-10-05 05:00:50 +00:00
Glenn Maynard 829b581a9b fix "conversion from 'NoteType' to 'float', possible loss of data" 2005-10-04 20:32:11 +00:00
Chris Danford e628f74491 do note coloring with tex coord shifting, not separate elements 2005-10-04 19:45:45 +00:00
Glenn Maynard 90b78e6cbf fix loading XML files as hold note parts; must still be a Sprite 2005-07-06 04:20:27 +00:00
Glenn Maynard b96a004921 We've been trying to more or less keep note skin compatibility, but the
format has gone somewhat out of hand, so let's give up a bit on that for
the good of mankind ...

All note elements that are allowed to be note colored *always* have a note
type in the filename; if XIsNoteColor is off, "4th" is used.  This way, we
don't have different sets of filename rules, fixing clashes between skins
and the fallback, and a number of things become simpler (many of which
I'm still discovering, so I won't try to enumerate them here just now).

Note skin updates coming ...
2005-07-05 21:29:30 +00:00
Glenn Maynard b459dc048c fold duplicate code 2005-07-05 08:45:51 +00:00
Glenn Maynard 1f0ce78d5a unused 2005-07-05 03:45:02 +00:00
Chris Danford 3db3500226 remove size on statc CString arrays so that XToString can catch size differences 2005-05-05 19:55:04 +00:00
Chris Danford 12caf40f7f cleanup 2005-04-24 05:44:42 +00:00
Chris Danford c2c3e00e31 don't assert on valid return values from strcmp (fix crash in Linux) 2005-04-23 11:06:28 +00:00
Chris Danford 8ec01b7cb3 add TapNote SubType instead of a bool for rolls 2005-04-20 01:53:41 +00:00
Chris Danford abac6af93b store a current NoteSkin in NoteSkinManager so that NoteSkin elements can use NOTESKIN:GetPath() 2005-04-18 01:19:56 +00:00
Chris Danford b914be8a8f move NOTE_COLOR_IMAGES into a struct so that it's not duplicated 2005-04-17 00:39:09 +00:00
Chris Danford 1e7d4001a8 fix long hold + boomerang artifacts: didn't draw if neither the head nor the tail were on-screen, tail bottom would be positioned above the head causing the hold to magically grow once the tail comes on screen 2005-04-07 06:41:02 +00:00
Chris Danford 77e33f21e0 fix param name: iBeat -> iRow 2005-04-07 01:41:16 +00:00
Glenn Maynard b4b4635e4b avoid using very large texture coordinates 2005-03-30 08:36:55 +00:00
Glenn Maynard dd02f1bc10 eliminate extra fmodf for each rendered tap 2005-03-12 06:09:43 +00:00