Commit Graph

58 Commits

Author SHA1 Message Date
Glenn Maynard dfc67cd84d ScreenWithMenuElements::StartTransitioning -> StartTransitioningScreen, to make searching
for it easier (vs. Transition::StartTransitioning).  (Trying to simplify tweening; this
may go back later.)
2005-10-13 22:17:13 +00:00
Glenn Maynard dae80d0805 add GenericTweenOn() 2005-09-22 01:27:00 +00:00
Glenn Maynard 701aff5ee8 avoid GetPathS during BeginScreen 2005-09-22 01:17:35 +00:00
Glenn Maynard 61726858bb one stage graphic 2005-09-08 20:33:28 +00:00
Glenn Maynard 36f30957a6 simplify 2005-09-08 05:52:37 +00:00
Chris Danford f25852aa90 don't construct MenuTimer and MemoryCardStatusIcon if they're not used
cache TIMER_SECONDS
2005-09-07 22:25:10 +00:00
Glenn Maynard 253669547f simplify 2005-09-07 20:47:33 +00:00
Chris Danford 5baed38364 add checking for "\\n" to allow newlines in TipDisplay. Think of a better solution someday... 2005-08-29 22:21:17 +00:00
Chris Danford 7191258c0a clean up enum Message names so that they match the corresponding strings 2005-08-14 07:29:48 +00:00
Glenn Maynard 99504e2522 do this stuff in BeginScreen, so we set up music, etc. again if we reuse a screen 2005-07-29 05:08:57 +00:00
Glenn Maynard d34a45252c fix accessing unloaded m_MenuTimer 2005-07-18 20:42:13 +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
Glenn Maynard 5dd564cfcc sort after sending On commands 2005-07-15 02:10:46 +00:00
Glenn Maynard a4841c349b ScreenWithMenuElements::BeginScreen: start tweening, and also reset
any previous transitions.
2005-07-15 01:18:42 +00:00
Glenn Maynard 0158fa774b virtual TweenOffScreen
add TweenOnScreen.  This only sends OnCommands, not XY, since it should be
the inverse of TweenOffScreen (and eventually, maybe screens can simply
play On/Off recursively).
2005-07-14 22:36:50 +00:00
Glenn Maynard 6badb0dd8c transitioning m_bEditing -> m_EditMode, IsEditing() 2005-07-14 05:12:56 +00:00
Glenn Maynard 4a416d34d0 Screen, ScreenWithMenuElements bindings 2005-07-12 05:44:54 +00:00
Chris Danford d1d61b2070 fix UpdateStage overrides OnCommands that hide m_sprStage 2005-06-29 09:21:30 +00:00
Glenn Maynard c856d1c68a sort in SWME, so screens that don't add any screen elements don't have to 2005-06-29 05:06:50 +00:00
Chris Danford 3b3408d11e Add WaitForChildrenBeforeTweeningOut 2005-06-11 10:31:39 +00:00
Glenn Maynard 9a3c6a0289 more m_sID 2005-05-31 07:53:13 +00:00
Chris Danford 2870644190 move sprStage into ScreenWithMenu elemnts 2005-05-06 12:29:38 +00:00
Glenn Maynard 027406f8df play command on change 2005-04-25 03:44:21 +00:00
Chris Danford 228ca9f166 reload SSM help text on sort changed
clean up SortOrder names
2005-04-15 07:18:40 +00:00
Chris Danford 5f2f3ab9c8 fix duplicate ScreenGameplay overlays, broken DancingState transitions 2005-04-02 02:45:17 +00:00
Chris Danford 1833d67aa9 TIMER_SECONDS: int -> float 2005-03-26 03:30:08 +00:00
Chris Danford 466dbafa93 fix use of unititialized metric 2005-03-25 08:58:30 +00:00
Glenn Maynard 59b59214e9 fix attract music logic 2005-03-22 22:53:39 +00:00
Chris Danford 8df1290603 for easier debugging 2005-03-21 05:16:52 +00:00
Chris Danford 348cf4d15c look at PLAY_MUSIC when calculating whether or not to stop the music 2005-03-21 01:14:30 +00:00
Chris Danford 9cfa779956 remove code to play cancel sound and put the cancel sound in the transition 2005-03-20 08:23:08 +00:00
Chris Danford 48e6cb1a69 rename back -> cancel because "back" conflicts with "background" 2005-03-20 06:14:41 +00:00
Chris Danford e992442fe0 have ScreenWithMenuElements play and stop music (instead of ScreenOptions and ScreenSelect)
Add StopMusicOnBack metric
2005-03-13 04:25:43 +00:00
Chris Danford 5a3b97c5f2 derive ScreenAttract from ScreenWithMenuElements to get underlay and overlay 2005-02-27 09:59:38 +00:00
Glenn Maynard b31be5e213 fix up overlay draw order 2005-02-25 01:51:40 +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 8a04a3eeeb Add ScreenWithMenuElements::FirstUpdateCommand, a Lua expression
that gets called on first update.  Note the difference between
using ThemeMetric<LuaExpression> and ThemeMetric<ActorCommands>:
with ActorCommands, you get the special, backwards-compatible
parsing; with LuaExpression, only a regular expression is parsed.

You can still only (cleanly) call one function, since "return"
is prepended: if you say "f() g()", it'll try to run "return f() g()".
I tried having a separate type for "expression" and "script", but
it seems confusing to have some metrics parsed as scripts and
some as expressions, allowing multiple functions in only specific
metrics.  If you want to do that much, it's cleaner to create
a function and call it, anyway.  If you just want to add diagnostics
quickly, you can say "Foo=(function() x() y() z() end)()".  (I might
revisit this later.)
2005-02-17 06:13:23 +00:00
Chris Danford 2b974e654d play OffCommand for underlays 2005-02-15 07:58:06 +00:00
Glenn Maynard a6ccaff834 Add a separate underlay layer. This should be used for adding actors
instead of modifying background, since changing the background per-
screen breaks the "persist background" logic in ScreenManager.
2005-02-12 20:31:15 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Chris Danford a24bd3014c cleanup: "(PlayerNumber)" -> "" 2005-01-31 03:18:46 +00:00
Chris Danford 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Glenn Maynard 3740f6d7b8 run OffCommand for overlay 2005-01-08 00:06:51 +00:00
Chris Danford 1a5d766b01 add overlay 2005-01-05 04:32:12 +00:00
Glenn Maynard 2f8deb615f fix ScreenCaution not continuing when menu timer is disabled 2004-12-21 01:29:41 +00:00
Chris Danford b6d711b3c1 Remove backgrounds on screens. Have one shared background that persists across screens. 2004-12-09 08:16:18 +00:00
Chris Danford 6181e142dc add metric to put timer in stealth mode 2004-12-04 21:13:29 +00:00
Chris Danford 005a7f5efa convert more prefs to use Preference 2004-12-04 10:35:50 +00:00
Chris Danford 7f336c2ce6 self-registering screen classes 2004-11-26 17:28:47 +00:00
Chris Danford d7953ded5c fix "style icon shows P1 even if P2 is the only player" 2004-08-11 03:58:25 +00:00