Commit Graph

172 Commits

Author SHA1 Message Date
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard a87993bcb1 finish ctor transition 2006-01-15 20:46:15 +00:00
Glenn Maynard 972558468f fix warning 2006-01-15 20:30:02 +00:00
Glenn Maynard 1c5b3c9002 Transition away from Screen(sName). 2006-01-15 19:18:57 +00:00
Glenn Maynard 735a198c06 load in Init() 2006-01-15 19:13:38 +00:00
Chris Danford 44225ad379 XToThemedString -> XToLocalizedString 2006-01-07 04:11:29 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Glenn Maynard 42ac54c4a5 pull out SetTransformFromExpression/SetTransformFromHeight, so we don't
have two init functions.

(Now, we only need two special metrics to init an ActorScroller; the rest
can be done by OnCommand.)
2005-12-07 05:43:49 +00:00
Glenn Maynard 24dd9f52a5 simplify ActorScroller::Load2 2005-12-07 03:50:11 +00:00
Glenn Maynard f59e884ede simplify rarely-used Load2 2005-12-06 03:05:57 +00:00
Chris Danford 8b8fa8aad3 move CommonMetrics into a namespace so that it's clear where they're coming from when used. 2005-10-27 05:16:19 +00:00
Glenn Maynard 3e66d0e21f warning: base class `class ActorFrame' should be explicitly initialized in the copy constructor 2005-10-18 21:07:55 +00:00
Glenn Maynard ab14002972 PlayStartSound on start/back 2005-10-18 03:41:12 +00:00
Glenn Maynard 4f959ce9b9 EnableMask 2005-10-18 00:11:16 +00:00
Glenn Maynard 63cf6d7155 comment for very confusing metric 2005-10-17 23:05:44 +00:00
Glenn Maynard ab1fc43d85 backwards metric 2005-10-17 22:57:39 +00:00
Chris Danford 8f13d08337 SongScoreRowsToShow -> SongScoreRowsToDraw
fix popping at bottom of list because too few copies made
2005-10-15 00:38:49 +00:00
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 9525bc094d prefer to init cached metrics from Init, not ctor 2005-10-07 03:28:47 +00:00
Glenn Maynard c4150955bd split ScreenRanking specializations into ScreenRankingScroller (for
PAGE_TYPE_ALL_STEPS, PAGE_TYPE_*_COURSES) and ScreenRankingLines
(PAGE_TYPE_CATEGORY, PAGE_TYPE_TRAIL).

Use DynamicActorScroller for ScreenRankingScroller; reduces overhead
significantly.
2005-09-27 19:10:09 +00:00
Glenn Maynard 6ea2f37a36 Change MenuUp(pn,type) overrides to MenuUp(IEP), so info like DeviceI.ts is always accessible. 2005-09-23 00:44:52 +00:00
Glenn Maynard 465c2e71ff pull out common code, prefer to set stuff up in Init, unfold conditionals; support
locked courses while we're at it
2005-09-22 01:49:07 +00:00
Glenn Maynard 602a62325c use GenericTweenOn(). (Just make sure ActorUtil::LoadAllCommands is
called and the actor is added to the tree, and OnCommand will be played.)
2005-09-22 01:28:56 +00:00
Glenn Maynard b7d8a64199 unneeded; these are children of m_ListScoreRowItems 2005-09-22 01:22:16 +00:00
Glenn Maynard 026f13f765 Load commands in the template, not later when we call ON_COMMAND
on the copies.  This is a fairly major optimization: we only load the commands
once, rather than dozens of times, and we save memory, since the copies will
just take references to the generated Lua functions instead of making dozens
of functions.
2005-09-22 00:21:24 +00:00
Glenn Maynard fb49d6a41a optimize, simplify 2005-09-22 00:08:59 +00:00
Glenn Maynard 9960d6dd9f implement ScreenRanking::BeginScreen 2005-09-21 21:52:31 +00:00
Glenn Maynard 5e0680ed05 remove banner frame (do that in the overlay)
use AutoActor
merge code and metrics
2005-09-21 21:42:07 +00:00
Glenn Maynard 0293b5c205 Run SwitchPageCommand instead of OnCommand between pages (simpler and
more flexible).  Cleanup.
2005-09-21 21:14:09 +00:00
Glenn Maynard 67a4390f07 simplify 2005-09-21 20:54:28 +00:00
Glenn Maynard ff6b55fb17 Merge metrics and common code. 2005-09-21 20:43:07 +00:00
Glenn Maynard f6c3263f24 phase out bShow*. Still a lot of code, but the code path is more obvious. 2005-09-21 20:16:53 +00:00
Glenn Maynard 1b6574d241 phase out bShow*. Don't load and then hide; when possible, just don't load it
to begin with.  (This code assumed that we'd change PageTypes in the middle,
but that hasn't been allowed and hasn't been used, and it complicates things
too much.)
2005-09-21 19:48:56 +00:00
Glenn Maynard d47b926f05 Don't broadly Reset() actors; it's too heavy-handed. Just make sure that actor
commands set state properly.

Remove some SetHidden() calls that assumed Reset() would un-hide them.
2005-09-21 19:45:40 +00:00
Glenn Maynard 86449bba80 PageType is a whole-screen property, not per-page. Eliminates m_sprPageType
hack (avoid loading stuff mid-screen).
2005-09-21 19:19:35 +00:00
Glenn Maynard 3ea889296c replace mutually-exclusive metrics with Type, like eval 2005-09-21 19:13:13 +00:00
Glenn Maynard 386cdfe707 use SetZTestMode to enable masking; only use SetUseZBuffer for regular zbuffering (for models) 2005-09-21 18:21:14 +00:00
Chris Danford bb10c7c21f pass around InputEventPlus in Screen::Input instead of multiple input structures 2005-09-05 02:26:50 +00:00
Glenn Maynard 70a109c54b fPercentDP, fSurviveSeconds 2005-08-12 02:46:58 +00:00
Glenn Maynard d3bd7a7723 hide iScore 2005-08-12 02:37:04 +00:00
Glenn Maynard 2307fa23d9 hidden HighScore::sName 2005-08-12 01:52:01 +00:00
Glenn Maynard 853c46c511 don't reset in ScreenRanking 2005-07-29 06:17:48 +00:00
Chris Danford 1fffd48c57 SetEffectNone -> StopEffect 2005-07-24 03:11:03 +00:00
Glenn Maynard 6ac51af9c2 header 2005-07-20 09:48:19 +00:00
Glenn Maynard bb8af41cb1 missing headers 2005-07-01 05:07:22 +00:00
Chris Danford 67477a6192 don't show locked Steps in ranking 2005-06-27 05:24:14 +00:00
Chris Danford cd43ae66f1 don't show locked Steps in ranking 2005-06-27 04:48:03 +00:00
Chris Danford 848cb582d9 sort by name first when showing only most recent 2005-06-15 02:02:06 +00:00
Chris Danford 5ed0c6b0f2 show Course/Song titles in group color 2005-06-03 01:57:57 +00:00
Chris Danford 83a4ac6237 don't Reset between pages. This undoes the effects of InitCommand 2005-06-02 22:26:57 +00:00