Commit Graph

23586 Commits

Author SHA1 Message Date
Chris Danford b6d6d0cb02 add CurrentScoreMultiplier
add Lua bindings
2006-11-14 11:23:13 +00:00
Chris Danford 2f7ac6aa3c Add m_ to StageStats and PlayerStageStats members. There are several methods of these classes with local variable names that are similar to the member names. m_ helps distinguish between those two types. 2006-11-14 11:13:21 +00:00
Glenn Maynard c86c218522 MessageToString -> MessageIDToString 2006-11-14 04:26:38 +00:00
Glenn Maynard 174f0c16fa update bindings 2006-11-14 04:22:27 +00:00
Glenn Maynard 61538cb062 broadcast LifeChanged 2006-11-14 04:18:07 +00:00
Glenn Maynard 2c1ad45e84 helper 2006-11-14 04:16:35 +00:00
Glenn Maynard bed349a50a push NULL -> nil 2006-11-14 04:15:32 +00:00
Glenn Maynard f61cc91c03 bind 2006-11-14 04:14:54 +00:00
Glenn Maynard e66a2ebe38 LuaHelpers::Push(ref) 2006-11-14 00:11:23 +00:00
Glenn Maynard 11e8d4b4c4 unused 2006-11-13 23:55:27 +00:00
Glenn Maynard 7e9ec10f3a work on allowing parameters to messages: pass a Message
struct, not just a string
2006-11-13 23:51:24 +00:00
Glenn Maynard 08b79641d9 fix "view log" 2006-11-13 23:48:56 +00:00
Glenn Maynard 4b7e5c6a74 missing base call 2006-11-13 23:12:04 +00:00
Glenn Maynard a5f5fa0b78 HandleMessage( Message ) 2006-11-13 23:11:25 +00:00
Glenn Maynard c219f56a3b work on allowing parameters to messages: pass a Message
struct, not just a string
2006-11-13 23:07:02 +00:00
Glenn Maynard ec061bebc3 Message -> MessageID 2006-11-13 22:36:39 +00:00
Glenn Maynard 35fb88e5e5 Drop generic concurrent rendering. It makes too many things very
complicated, and I don't trust it at a high level: it makes too
many unchecked things concurrent, so I think it will make things
brittle.
2006-11-13 21:04:17 +00:00
Glenn Maynard e7d4ff3495 one less GetYPos call per arrow 2006-11-13 18:38:29 +00:00
Glenn Maynard 81b1ed162b fYPos -> fYPosWithoutReverse 2006-11-13 18:36:28 +00:00
Glenn Maynard 71e558e9f7 fYPos -> fYPosWithoutReverse 2006-11-13 18:32:42 +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
John Bauer cf34d741ec Make Course.h more readable by organizing all the member variables
at the end of the Course class definition.
2006-11-13 17:04:47 +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
Chris Danford d11cc96c80 fade board 2006-11-13 00:07:06 +00:00
John Bauer cca2d60509 Fix RevertFromDisk using a method that preserves as many of the original
Steps* pointers as possible.  It is pointless to get rid of RevertFromDisk
entirely because all of the unpleasant side effects it can have are possible
using other tools in the editor.
2006-11-12 16:49:00 +00:00
Steve Checkoway 1f79f25240 Fix crash by stopping the audio _on_ the real time thread. This ensures that the current buffer gets played but that it never gets called again. I'm not convinced that the property listeners won't get called but I'm not sure how to handle those sanely just yet, at least in a lockless manner.
This code doesn't handle external format changes very well yet--but then, neither does the other sound driver.
2006-11-12 09:04:14 +00:00
John Bauer 4b21ed256c Alternate fix for some of the bugs that exist when choose a different
stepchart in edit mode.
2006-11-12 06:30:14 +00:00
Glenn Maynard 29961e9101 If we autogen from a steps that was saved to disk, then the
autogenned steps are logically saved to disk, too: there's
no need to save them.
2006-11-12 04:45:01 +00:00
Glenn Maynard 0955501855 merge code; make DeAutogen private 2006-11-12 04:38:44 +00:00
Glenn Maynard 05bfda3f4b don't delete autogen steps; they're created and deleted by Song 2006-11-12 04:19:51 +00:00
Glenn Maynard e32d59ad30 remove unused 2006-11-12 03:58:48 +00:00
Glenn Maynard 3470b7b41f fix changing steps in the editor doesn't update last saved, causing
steps to be reverted incorrectly
2006-11-12 03:52:48 +00:00
Glenn Maynard 3961ea4c2d partial fix: don't load into an already-loaded song 2006-11-12 03:38:57 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer 34ebb84f63 Remove some old, unused, unusable code. 2006-11-11 21:31:52 +00:00
John Bauer c3e39e12a3 Fix several annoying edit mode bugs, mostly by fixing the Song copy
operator and the various uses of it.

- revert file from disk: keeps old BPM.  The BPMS on disk are added to
  the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
  change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
  change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
  it is deleted.  however, if you create a stepchart, don't save it, and exit
  edit mode while looking at a different chart, the chart isn't deleted.

Some existing bugs are not fixed, though:
- delete the last stepchart for a step type.  CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
  real doubles stepcharts.  Exit without doing anything.  CTD.  This is
  probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail.  Trail is now
  broken.  Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
John Bauer 00b40c7468 Change TrailEntry so it uses a StepsID instead of a Steps*.
Now Edit Mode can change the Steps pointers without causing crashes
because of the Trails.  (Exception: deleted song or steps.)
2006-11-10 05:47:10 +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
Glenn Maynard 2c14373639 cleanup bools 2006-11-10 03:09:51 +00:00
Glenn Maynard 49cb6fe970 remove MaxRegenComboAfterMiss 2006-11-09 09:51:21 +00:00
Glenn Maynard c5f0f565ce simplify; don't accumulate m_iComboToRegainLife 2006-11-09 09:49:50 +00:00
Glenn Maynard 28c0816cd4 simplify 2006-11-09 09:48:51 +00:00
Glenn Maynard efdcb63f1b simplify, more consistent 2006-11-09 09:47:44 +00:00
Glenn Maynard 97894cfb47 remove unused OnTaunt 2006-11-09 09:38:38 +00:00
Glenn Maynard 15b998b089 update 2006-11-09 09:32:23 +00:00
Glenn Maynard 5a900546fa update 2006-11-09 09:26:37 +00:00
Glenn Maynard bc9ad19157 simplify m_fPassmark. Use with FailAtEnd. 2006-11-09 09:21:52 +00:00
Glenn Maynard 08bf61191d Add FailAtEnd, which means "check failure only at the very
end of the song" (intended for use with "PassMark", which
needs a better name).  This isn't called "FailEndOfSong" to
avoid confusion, and was the prompting for renaming
FailEndOfSong.)
2006-11-09 09:09:40 +00:00