Commit Graph

362 Commits

Author SHA1 Message Date
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Steve Checkoway 4239a8cf7c Cleanup. 2006-09-02 06:05:17 +00:00
Glenn Maynard b33e00d00f ScreenManager::GetScreen 2006-08-31 20:46:58 +00:00
Glenn Maynard 6e67bff7b8 fix stale statics
comments
2006-08-21 18:45:34 +00:00
Glenn Maynard 7e05abc111 always delete old screens on PopAllScreens 2006-08-09 03:28:25 +00:00
Chris Danford 9398c8a2b6 VC6 compile fix 2006-07-02 05:21:59 +00:00
Glenn Maynard 8b2e7065fa cleanup 2006-07-01 03:15:28 +00:00
Glenn Maynard 9d8dd666a1 add ScreenIsPrepped 2006-06-28 03:52:40 +00:00
Glenn Maynard a19667e1fc same logic for screen and background: if it's already there, OK 2006-06-27 05:10:25 +00:00
Glenn Maynard 2db50724a3 fix concurrent loading assert 2006-06-27 05:00:48 +00:00
Glenn Maynard d27b40598e fix backgrounds put back in prepared list when they should be deleted 2006-06-24 05:07:04 +00:00
Glenn Maynard e6d128cb7b move BG OnCommand back; comment 2006-06-24 01:27:01 +00:00
Glenn Maynard e61568e4cd only put the screen/background into g_pSharedBGA/g_ScreenStack in ActivatePreparedScreen; run start functions in LoadDelayedScreen 2006-06-24 01:21:21 +00:00
Glenn Maynard 3dbd1bec71 return a bool: true if all parts loaded 2006-06-24 00:59:23 +00:00
Glenn Maynard b1fdee1bad move assert to the right place 2006-06-24 00:50:08 +00:00
Chris Danford fc3312f9be broadcast on screen changed 2006-03-26 08:10:53 +00:00
Glenn Maynard 3699674088 add EndScreen(), symmetric with BeginScreen 2006-03-16 05:38:47 +00:00
Chris Danford 58a6402201 play cancel sound when using CancelTransitionsOut, not start sound 2006-03-08 23:58:37 +00:00
Chris Danford c3ee0bc206 style cleanup 2006-02-24 19:37:28 +00:00
Steve Checkoway 29f97b8dfa This is a metrics error. 2006-02-18 23:51:21 +00:00
Chris Danford c8e4672853 force recreate of BGA on aspect ratio change 2006-02-06 07:44:12 +00:00
Chris Danford 3f6199b84a make ScreenGameplay use a background, but blank it 2006-02-05 05:50:38 +00:00
Glenn Maynard 7df95cd0d4 ScreenType is being overloaded in incompatible ways:
- the editor sets "system_menu" to trick StepMania.cpp into not
   allowing the operator menu button, to prevent losing data;
 - the editor also sets "gameplay" in "playback" mode to influence
   ScreenSyncOverlay and ScreenDebugOverlay; this breaks the above,
   allowing scroll lock in play mode.

A similar problem happens when we push screens: scroll lock works
in the MiniMenus in the editor.

It's semantically unintuitive to call the editor a "system_menu", anyway.

Split out AllowOperatorMenuButton, and use it directly.  Check all
screens, and don't allow it if any screen on the stack disallows it.
2006-02-01 06:54:15 +00:00
Glenn Maynard d9c81c92cf don't SavePrefsToDisk. Screens that change preferences that
should be saved save on their own.
2006-02-01 06:33:22 +00:00
Glenn Maynard 0017b79116 move DelayedScreenLoad 2006-01-31 05:33:58 +00:00
Glenn Maynard 7dbb26ca3f remove unused PushScreen
hide MakeNewScreen
2006-01-30 09:15:40 +00:00
Glenn Maynard e8c45e19c6 simplify 2006-01-25 06:25:11 +00:00
Glenn Maynard f85136f2a8 fix up and simplify prepared screen logic 2006-01-25 06:24:22 +00:00
Glenn Maynard 0f113604b4 cleanup 2006-01-25 06:23:06 +00:00
Glenn Maynard 8afaed1ce0 cleanup 2006-01-25 06:19:29 +00:00
Glenn Maynard 09f84e916a compile fix 2006-01-25 05:54:32 +00:00
Glenn Maynard 21bc8586cd split out ScreenManager::ActivatePreparedScreenAndBackground (no real logic change) 2006-01-25 05:49:49 +00:00
Glenn Maynard 89b64ca257 do PushLoadedScreen earlier 2006-01-25 05:47:22 +00:00
Glenn Maynard a4c8b8d91d cleanup (remove old transition note) 2006-01-25 05:38:14 +00:00
Glenn Maynard 70f9566313 bind ConcurrentlyPrepareScreen 2006-01-25 05:10:40 +00:00
Glenn Maynard 86aebecbdb namespace 2006-01-24 03:53:17 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 1e8ccdeda4 spacing cleanup 2006-01-22 00:13:27 +00:00
Glenn Maynard 4593124978 seems clearer this way 2006-01-17 01:49:18 +00:00
Glenn Maynard 3a63f5b7ef as well as during load, set LoadingScreen during BeginScreen.
Scripts can already use GetTopScreen to get this.  However, that function
also returns data that may not be what's wanted.  For example, commands
can be run on screens that aren't on top (eg. via broadcasts).  So, using
GetTopScreen as a fallback for LoadingScreen may cause latent bugs;
screens should behave properly even when they're not on top, even if
they're using queued broadcasts to kick off animations, etc.
2006-01-14 05:32:54 +00:00
Glenn Maynard a462b2a640 fix screens not being unloaded correctly when not DelayedScreenLoad 2006-01-11 00:59:38 +00:00
Glenn Maynard e16a396868 split out GrabPreparedActors 2006-01-11 00:54:45 +00:00
Glenn Maynard a9020229ee fix screen preloading when DelayedScreenLoad 2006-01-10 00:15:53 +00:00
Glenn Maynard f10898b806 Oops. We started setting the theme's expected coordinate space
in Screen, by calling SetFOV to make ActorFrame do LoadMenuPerspective.
That broke screen backgrounds, which are rendered outside of any
screen, so they always used 640x480 (the default).
2006-01-01 03:47:02 +00:00
Steve Checkoway ada5f4f00f Use ASSERT like a function. 2005-12-30 13:19:40 +00:00
Glenn Maynard 61c5ab9cb1 unued 2005-12-30 04:22:04 +00:00
Chris Danford 5d7885c764 move game prefs into PrefsManager 2005-10-27 04:54:45 +00:00
Glenn Maynard f413d3e412 If a screen has no BG, we create a blank Actor without looking at g_vPreparedBackgrounds.
Don't put them on there when we're done; they'll never be reused.
2005-10-25 12:42:32 +00:00
Chris Danford ced0a0c6e9 fix transition sounds playing when attract sounds are off 2005-10-13 22:07:40 +00:00
Glenn Maynard e7caafa45c Fix screens occasionally being loaded twice. 2005-10-13 05:18:45 +00:00