Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 5a63fb3cd3 add GetMeter 2005-02-26 20:44:16 +00:00
Glenn Maynard d6a972cbbb setstate 2005-02-26 19:54:13 +00:00
Glenn Maynard aea0cba8f9 fix course song number 2005-02-26 19:31:34 +00:00
Glenn Maynard 65013f2335 un-deprecate DifficultyIcon 2005-02-26 19:13:17 +00:00
Glenn Maynard 10ad53d845 use the same overlay for gameplay and demonstration 2005-02-26 10:23:05 +00:00
Glenn Maynard 0adc193cc0 cleanup 2005-02-26 10:15:17 +00:00
Glenn Maynard 709d9e60d7 remove m_meterSongPosition - this can be done with XML now
fix crash
2005-02-26 10:14:27 +00:00
Glenn Maynard 0ae355094f MeterDisplay::LoadFromNode 2005-02-26 10:08:12 +00:00
Glenn Maynard b3a8e8fd4f split out ActorUtil::ResolvePath 2005-02-26 10:07:02 +00:00
Glenn Maynard b003670ff3 AutoActor::LoadFromNode 2005-02-26 09:55:34 +00:00
Glenn Maynard a16004a303 fix draw order 2005-02-26 09:21:33 +00:00
Glenn Maynard de339d9b00 AutoActor overlay 2005-02-26 09:16:34 +00:00
Glenn Maynard 1bdb2563b1 self-updating SongMeterDisplay class 2005-02-26 08:46:52 +00:00
Glenn Maynard 9d7a5017b1 simplify 2005-02-26 07:56:04 +00:00
Glenn Maynard 99a9693f32 cleanup 2005-02-26 07:43:22 +00:00
Glenn Maynard aa86bb1fbc split out ScreenSystemLayer::GetCreditsMessage 2005-02-26 07:20:38 +00:00
Glenn Maynard 713f87fa46 cleanup 2005-02-26 07:15:27 +00:00
Glenn Maynard 2758d599f5 const 2005-02-26 07:15:09 +00:00
Glenn Maynard 20959eed4a AllowOperatorMenuButton 2005-02-26 07:02:50 +00:00
Glenn Maynard c436021a16 generalize m_bIsOnSystemMenu 2005-02-26 07:01:20 +00:00
Glenn Maynard e235faa14e ComboOnCommand 2005-02-26 06:32:41 +00:00
Glenn Maynard 6b64612e0a Combo OnCommand 2005-02-26 06:31:56 +00:00
Glenn Maynard 0b9063844e allow specifying the player type 2005-02-26 06:22:40 +00:00
Glenn Maynard 8ca885d8bd clean up INITIAL_BACKGROUND_BRIGHTNESS 2005-02-26 06:09:14 +00:00
Glenn Maynard 4c2ffa90ef Player cleanup 2005-02-26 05:59:12 +00:00
Glenn Maynard a1dcbca654 Combo cleanup 2005-02-26 05:45:51 +00:00
Glenn Maynard 5eae214f20 m_Combo.SetName 2005-02-26 05:34:18 +00:00
Glenn Maynard 151556b2ef cleanup 2005-02-26 05:32:56 +00:00
Glenn Maynard ceb3583c3c update 2005-02-26 04:28:10 +00:00
Glenn Maynard 8cca5803f1 register Quad as a type 2005-02-26 04:26:56 +00:00
Glenn Maynard 61cd03406a convenience ZoomTo 2005-02-26 04:25:41 +00:00
Glenn Maynard b8d5a8892a better error reporting 2005-02-26 03:35:10 +00:00
Glenn Maynard e1d7d006cc allow xml loading for backgrounds 2005-02-25 06:56:03 +00:00
Glenn Maynard b0ff5081ab full actor support in Foreground 2005-02-25 06:45:07 +00:00
Glenn Maynard a7e4836149 Skip attribute parsing, to fix errors due to comment contents. 2005-02-25 06:13:21 +00:00
Glenn Maynard 7c38cabcdc compile fix 2005-02-25 04:42:24 +00:00
Glenn Maynard 2d97c8e0ca fixes 2005-02-25 04:37:27 +00:00
Glenn Maynard 921c1446c4 cleanup 2005-02-25 04:18:28 +00:00
Glenn Maynard 40faf9e983 compile fix 2005-02-25 03:29:01 +00:00
Glenn Maynard e4e8589a28 compile fix 2005-02-25 03:15:39 +00:00
Glenn Maynard 06e6411044 fix compile 2005-02-25 02:53:20 +00:00
Glenn Maynard b31be5e213 fix up overlay draw order 2005-02-25 01:51:40 +00:00
Glenn Maynard 5a1cf44bc8 remove 2005-02-25 01:47:02 +00:00
Glenn Maynard 9faf6be1bd hack to work around rounding error 2005-02-25 01:46:10 +00:00
Glenn Maynard ffd47bbf29 metrics 2005-02-25 01:45:09 +00:00
Glenn Maynard 803117f326 Move unlocks to theme metrics. If you're actually using unlocks for
anything interesting, you're probably pairing it up with a theme, and themes
can interact with unlocks, so this makes everything a lot simpler.
2005-02-25 01:28:45 +00:00
Glenn Maynard d6bafe0398 fix CurSong 2005-02-25 01:07:49 +00:00
Glenn Maynard 0e59f3d135 Revert this, and do it differently: prefer the preferred song/course in
MusicWheel::SelectSongOrCourse instead of the active one.  The advantage
of this is that if, for example, a PreferredCourse is set, the player is playing
regular play (not course mode), and then switches to course mode via the
mode menu, the course will be selected correctly.  (Previously, it'd end up
on the default course in that case instead.)
2005-02-25 00:29:09 +00:00
Glenn Maynard 5376cf473b cleanup 2005-02-24 22:45:59 +00:00
Glenn Maynard 1b16ab4ee6 add UnlockManager::PreferUnlockCode 2005-02-24 22:34:54 +00:00
Glenn Maynard 7f0ba99f77 Explicitly set the preferred song in SSM's ctor, instead of handling it in
the music wheel.  This way, we can re-set the preferred song at any time
and have it take effect when we get back to the wheel; previously, if
we'd already played a song, m_pCurSong would override it.
2005-02-24 22:31:11 +00:00
Glenn Maynard 1114fe5f80 temp hack 2005-02-24 21:46:07 +00:00
Glenn Maynard da30ea7def assert 2005-02-24 21:44:08 +00:00
Glenn Maynard 8e35534656 fix Update(0) not clearing m_bFirstUpdate (this would also happen previously:
every frame would be m_bFirstUpdate while hibernating)
2005-02-24 21:42:02 +00:00
Glenn Maynard 74e02e55ef make sure that large updates don't throw hibernation timing out of sync;
this also affects small updates, preventing small sub-frame timing errors;
if there's 10ms of hibernation left, and a 17ms update arrives, we should
update for only 7ms, not 17ms
2005-02-24 20:37:39 +00:00
Glenn Maynard a6c189529a obey m_fHibernateSecondsLeft, so a 3-second TipShowTime that
starts by delaying off-screen for 2.5 seconds can instead hibernate,2.5,
to avoid showing the first tip for only .5 seconds
2005-02-24 20:32:10 +00:00
Glenn Maynard aa279e07e2 lua 2005-02-24 20:04:46 +00:00
Glenn Maynard 3b993dfa08 Replace PopStack with FromStack as a basic overloaded function.
Move Push and FromStack into a namespace, so other files can add to it;
that way, we can say Push(1) or Push(Actor*), instead of Push(1) and
pActor->PushSelf(), allowing easier templating.
Add presently unused/untested LuaHelpers::ReadArrayFromTable.
2005-02-24 20:03:07 +00:00
Glenn Maynard 155a7bacbc rename NumArcadeStages pref to SongsPerPlay, to match the options menu
(that name is more consistent); duplicate a bit less info
2005-02-24 06:41:50 +00:00
Glenn Maynard 37b4f67c9f simplify 2005-02-24 06:30:56 +00:00
Glenn Maynard 6fbc047fcf Caution -> ShowCaution 2005-02-24 06:28:49 +00:00
Glenn Maynard 37fdbdede3 move MovePref; rename Caution -> ShowCaution and simplify 2005-02-24 06:28:15 +00:00
Glenn Maynard d7800a2822 UseDedicatedMenuButtons -> OnlyDedicatedMenuButtons (fixes
input options)
2005-02-24 06:20:04 +00:00
Glenn Maynard a9c73de5b6 fix ZIP thread-safety? 2005-02-24 06:07:49 +00:00
Glenn Maynard 185966bd35 settext takes a string 2005-02-24 01:31:21 +00:00
Glenn Maynard 2da21b16d4 rename m_iNumSingleSongsPlayed -> m_iNumTotalSongsPlayed
replace GetTotalNumSongsPlayed
2005-02-23 22:59:56 +00:00
Glenn Maynard c6de356dca Keep track of number of songs played. The other stats all count per-
player: if one person plays on Hard and one on Easy, then each will
be incremented.  That's useful, but it's also helpful to track the simple
number of songs played, irrespective of how many people were playing
at the time.
2005-02-23 22:52:03 +00:00
Glenn Maynard 9ff32c8d25 fix init 2005-02-23 22:45:01 +00:00
Glenn Maynard 456c2074e7 do "skip screen" tests in Init(), since Init() is still called even if we
SetNewScreen() in the screen ctor
2005-02-23 22:36:00 +00:00
Glenn Maynard bf85d3d3ac fix update 2005-02-23 21:13:09 +00:00
Glenn Maynard 31fc8bc1e7 asserts 2005-02-23 20:59:07 +00:00
Glenn Maynard 148bee1c51 re-update 2005-02-23 20:58:07 +00:00
Glenn Maynard 4eeb0fd884 cleanup 2005-02-23 19:29:49 +00:00
Glenn Maynard 22b6a821d5 tabs 2005-02-23 19:22:52 +00:00
Glenn Maynard b46daecd2f Commit stats to profiles before loading ScreenEvaluation. 2005-02-23 19:18:11 +00:00
Glenn Maynard 53f7fbd890 fix VC7 compile 2005-02-23 19:11:40 +00:00
Glenn Maynard fc1c863f8a omit semicolon, so REGISTER_ACTOR_CLASS(x) can't be parsed as
a prototype
2005-02-23 19:09:13 +00:00
Glenn Maynard 09a94d3c97 fix ScreenEditMenu 2005-02-23 18:56:50 +00:00
Glenn Maynard b51b0cfb4c Use Init() for all screens, so we can set state before the base class
members are loaded--they'll see resets, score finalization, etc.  It
also results in smaller code, due to a g++ bug that causes constructors
to be emitted several times.
2005-02-23 06:29:05 +00:00
Glenn Maynard 1213a2c9b0 assert earlier 2005-02-23 06:18:38 +00:00
Glenn Maynard b35d1c806e fix LuaReference::operator=
add LuaReference::IsNil
2005-02-23 06:17:29 +00:00
Glenn Maynard 94f87f9b58 simplify 2005-02-23 04:46:05 +00:00
Glenn Maynard 4e4b6df7aa move code to StatsManager::CommitStatsToProfiles 2005-02-23 04:32:45 +00:00
Glenn Maynard e912b47839 move code around, comment 2005-02-23 03:40:47 +00:00
Glenn Maynard dfce58ed98 fix commands being parsed multiple times; eg. OnCommand=@'"x," .. foo()' can only run foo() once 2005-02-23 00:22:23 +00:00
Glenn Maynard fd6a03977d allow default.xml for backgrounds 2005-02-22 22:13:24 +00:00
Glenn Maynard 350faf7e01 cleanup 2005-02-22 21:44:54 +00:00
Glenn Maynard b93a347be7 fix crash 2005-02-22 20:18:22 +00:00
Glenn Maynard 61064820b9 SetFromStack 2005-02-22 04:22:24 +00:00
Glenn Maynard f762300f49 PopStack() calls 2005-02-22 04:20:58 +00:00
Glenn Maynard 61d94e97d8 convert prefs to Preference 2005-02-22 04:00:14 +00:00
Glenn Maynard 6c9cc1b273 disable MemoryCardManager::FlushAndReset 2005-02-22 03:58:22 +00:00
Glenn Maynard 7677c9d88f GetPreference, SetPreference. (not yet decided if I want to bring Preference itself into Lua) 2005-02-22 03:36:51 +00:00
Glenn Maynard fda3a8208b cleanup, pass pn to lua function 2005-02-22 03:34:56 +00:00
Glenn Maynard 2350cc9b77 don't assert if LuaManager::RunScript is called with stuff on the stack 2005-02-22 03:27:06 +00:00
Glenn Maynard f406e52db3 add LuaReference::Unset; LuaExpression sets nothing by default (so LuaExpressoin is "free" if not actually used) 2005-02-22 03:25:38 +00:00
Glenn Maynard 8a5faeb248 fix copied references being set when the source reference was not 2005-02-22 03:22:56 +00:00
Glenn Maynard efeabffb8e allow calling Lua from GameCommand 2005-02-22 01:50:44 +00:00
Glenn Maynard baf8ef940e RunScript cleanup, default to 0 return values 2005-02-22 01:21:38 +00:00
Glenn Maynard 1a58675664 cleanup, OnlyDedicatedMenuButtons -> UseDedicatedMenuButtons 2005-02-22 01:20:52 +00:00