Commit Graph
16524 Commits
Author SHA1 Message Date
Glenn Maynard 5bf4e9323f don't set up actors that we're not using; we create lots of OptionRows 2005-07-18 21:25:07 +00:00
Glenn Maynard cece1f837c don't set up actors that we're not using; we create lots of OptionRows 2005-07-18 21:03:43 +00:00
Glenn Maynard d34a45252c fix accessing unloaded m_MenuTimer 2005-07-18 20:42:13 +00:00
Glenn Maynard f7af079f63 noisy 2005-07-18 19:49:46 +00:00
Glenn Maynard 5856678140 forgotton commit 2005-07-18 19:30:36 +00:00
Glenn Maynard 9ef48d4a48 reuse preloaded sounds 2005-07-18 19:09:31 +00:00
Glenn Maynard 2493236cea add reference counting for preloaded sounds
This doesn't give full refcounting: loading a sound that isn't preloaded
will still go through a full load (eg. initting Vorbis, etc).  This handles the
most expensive case, where the whole sound is loaded.  This case is
easy because we can make free copies, and track the number of copies
remaining to handle cleanup.
2005-07-18 19:08:28 +00:00
Glenn Maynard c3ff27796a add GetReferenceCount 2005-07-18 19:06:32 +00:00
Chris Danford 2a3bc57f43 fix crash after trying to load a non-existant local profile 2005-07-18 17:34:47 +00:00
Chris Danford c3fd71dd76 fix assert double-loading the static song background 2005-07-18 17:34:00 +00:00
Glenn Maynard c76799ffa0 do slow loads in ScreenOptions::Init, not ScreenOptions::InitMenu 2005-07-18 03:42:10 +00:00
Glenn Maynard e2086bcb5b import options in ScreenOptions::BeginScreen, not ScreenOptions::InitMenu, so
we'll re-import if the screen is re-pushed
2005-07-18 03:41:15 +00:00
Glenn Maynard a087e02054 cleanup 2005-07-18 03:16:18 +00:00
Glenn Maynard 6d89d0325c cleanup 2005-07-18 02:47:16 +00:00
Glenn Maynard cc00fbb7ef simplify 2005-07-18 02:45:40 +00:00
Glenn Maynard a37a18aada unneeded 2005-07-18 02:42:26 +00:00
Glenn Maynard 15558d4cac cleanup: don't need a special case for this anymore 2005-07-18 02:39:51 +00:00
Glenn Maynard 93f9d0e3e5 cleanup 2005-07-18 02:36:03 +00:00
Glenn Maynard 5161a06e08 simplify 2005-07-18 02:31:51 +00:00
Glenn Maynard 5ee52b0db5 The screen that pushes a screen sets the pop message, not the pushed screen.
This pushing screens without them needing to be aware of it.  (This will also allow
a pushed screen to replace itself with another pushed screen without having to
propagate the finalization message across; that'll make more sense if the rest of
this pans out ...)
2005-07-18 02:28:16 +00:00
Glenn Maynard d2e4190a4e explicit load for MenuTimer, so we don't load anything if we don't want it 2005-07-18 02:08:15 +00:00
Chris Danford 691c7f0c68 don't cast to const on Get 2005-07-18 01:52:32 +00:00
Chris Danford f93cb4e320 add BakeAllBackgroundChanges 2005-07-18 01:52:01 +00:00
Chris Danford b50482c185 put focus on last selected profile 2005-07-18 01:50:31 +00:00
Glenn Maynard 18910dd754 cleanup 2005-07-16 10:17:10 +00:00
Glenn Maynard 0fcda13da1 temp fix for double-free 2005-07-16 10:16:23 +00:00
Steve Checkoway f16c913ff3 Add/remove files. 2005-07-16 09:33:32 +00:00
Steve Checkoway 575ac70ef4 Fix compile. (I think this is correct based on what another screen does.) 2005-07-16 09:33:20 +00:00
Chris Danford e89fc67e4d fix compile 2005-07-16 07:25:58 +00:00
Chris Danford 146c505c5a change sprBullet to an AutoActor 2005-07-16 07:01:48 +00:00
Chris Danford ce4156625d add missing file 2005-07-16 05:29:43 +00:00
Chris Danford 0bc9261eb3 return ID of the created profile 2005-07-16 05:28:34 +00:00
Chris Danford f7ebcc7c34 add new profile select screen 2005-07-16 05:26:07 +00:00
Chris Danford da001879d4 OptionRowHandlers -> m_OptionRowHandlers 2005-07-16 05:24:41 +00:00
Glenn Maynard d8bf6df4aa move metrics into OptionRowType, too 2005-07-16 03:23:53 +00:00
Glenn Maynard ee791b9c9c fix copying when unloaded 2005-07-16 03:10:59 +00:00
Chris Danford 8b52f32c8d Bpm -> BPM 2005-07-16 02:59:58 +00:00
Chris Danford 5d9ba8304e cleanup 2005-07-16 02:59:35 +00:00
Chris Danford 7ef1a9f574 fix missing command warnings 2005-07-16 02:54:55 +00:00
Glenn Maynard 99d4f12881 copy ctor 2005-07-16 02:52:16 +00:00
Glenn Maynard b925b2d7ca instead of loading actors inside OptionRow, load a single copy of each
one we need, and then make copies as needed.  This avoids lots of
extra loading (which can be slow, even with refcounted data; lots of path
lookups, etc).  (Trying to get this to the point where we can construct new
OptionRows for a menu without making a whole new menu.)  This approach
means we don't lose the potential to have different sTypes of OptionRow
in a single menu.  (The annoying bit is that any actor we copy has to handle
copying, which is tricky for ActorFrame and doesn't work yet for AutoActor.
Working on it ...)
2005-07-16 02:51:17 +00:00
Glenn Maynard a75ef49210 preparatory (s/m_sType/sType/, no other changes) 2005-07-16 02:44:48 +00:00
Glenn Maynard 19d43d20d1 init m_vbSelected, like LoadNormal 2005-07-16 01:26:56 +00:00
Glenn Maynard e0bf0e285c do call InitText and AfterImportOptions on exit row 2005-07-16 01:24:54 +00:00
Glenn Maynard 42e531768c make LoadExit a bit less of a special case 2005-07-16 01:23:36 +00:00
Glenn Maynard e3d19324db explicitly hide underline if ROW_EXIT 2005-07-16 01:21:42 +00:00
Glenn Maynard 7b0bf75ebb explicitly hide title and bullets if ROW_EXIT 2005-07-16 01:20:05 +00:00
Glenn Maynard e8656a2420 hide 2005-07-15 23:31:58 +00:00
Glenn Maynard a18ec93ccf wrap ROW_SONG 2005-07-15 23:30:31 +00:00
Glenn Maynard 082ceeecaa EditMenu::GetRowSize 2005-07-15 23:27:51 +00:00