Commit Graph

188 Commits

Author SHA1 Message Date
Glenn Maynard a87993bcb1 finish ctor transition 2006-01-15 20:46:15 +00:00
Glenn Maynard 5a3f362f5d load in Init() 2006-01-15 19:29:33 +00:00
Glenn Maynard f6ea595c12 load in Init() 2006-01-15 19:22:17 +00:00
Glenn Maynard 0ff2505831 PlayerNumber(0) -> PLAYER_1 2006-01-15 08:15:27 +00:00
Glenn Maynard ac11ab35ea unused header 2005-12-19 00:31:41 +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 32129814b7 Any scroller that has an OnCommand for its parts may want to PositionItems
first, not just ScreenSelectMaster's.  Also, the position set by this depends
on SetNumSubdivisions, which (will be) set by OnCommand, and not set this
early.  So, use PositionItems manually if wanted.
2005-12-07 05:16:11 +00:00
Glenn Maynard aeb830f434 fix OnCommand run twice (m_Scroller propagates it) 2005-12-07 05:08:49 +00:00
Glenn Maynard 4dfdeaacf2 cleanup 2005-12-07 05:01:13 +00:00
Glenn Maynard c5766b32aa simplify Load3. (Most scrollers use one subdivision.) 2005-12-07 04:22:47 +00:00
Glenn Maynard 12ff6ff4da simplify ActorScroller::Load3 2005-12-07 03:53:49 +00:00
Glenn Maynard 5acbca107c cleanup 2005-12-06 03:46:24 +00:00
Glenn Maynard abeead164e Using ActorScroller adds too many metrics. Prefer to set parameters
that aren't needed for initialization and aren't always used via
commands, not load-time parameters.
2005-12-06 03:29:16 +00:00
Glenn Maynard 3b36f59a6c The only place Load3 is ever called with bUseMask true is from
LoadFromNode.  The code path doesn't give any way of setting the
size, so it doesn't work.  Remove it, and use EnableMask.
2005-10-17 23:21:16 +00:00
Glenn Maynard ce6eb4f2d9 run base last; it runs SortByDrawOrder 2005-10-14 03:18:30 +00:00
Glenn Maynard 2618647307 phase out TweenOursOnScreen 2005-10-14 03:11:50 +00:00
Glenn Maynard ec78fe0019 remove TweenOff 2005-10-14 02:30:47 +00:00
Glenn Maynard 25ee89ef33 Remove SM_AllDoneChoosing. ScreenSelects just send SM_BeginFadingOut when
done.  This is much simpler, and fixes concurrent loads starting late.
2005-10-14 02:13:13 +00:00
Glenn Maynard 9f0c59f6da The distinction between "screen elements" and "MenuElements" is meaningless
now; screen elements are often put in overlay/underlay layers, and those
are SWME parts.  This used to be used to separate header/footer transitions,
but there are better ways to do that.  Remove OverrideSleepAfterTweenOffSeconds
and SleepAfterTweenOffSeconds, and run all tweens at once, instead of one
arbitrary set after another.  (opens the path to other simplifications).
2005-10-14 02:04:13 +00:00
Glenn Maynard fce721238e cleanup: StopTimer in ScreenSelect 2005-10-13 22:59:53 +00:00
Glenn Maynard 4018c7be8b typo 2005-10-13 04:20:56 +00:00
Chris Danford 1333bfd2d8 remove references to specific games for things that are only specific to the controller type 2005-10-07 05:00:52 +00:00
Glenn Maynard f88e38a788 "warning C4018: '>=' : signed/unsigned mismatch" 2005-10-04 07:21:49 +00:00
Chris Danford 7f71e22ef4 remove MAX_CHOICES 2005-10-04 02:48:33 +00:00
Chris Danford 4f3022ea79 Make it possible to specify a null OptionOrder if you want a key to not have any function.
Remove use of MAX_CHOICES
2005-10-04 02:34:10 +00:00
Chris Danford d7e96016db fix jumpy scrolling if one player holds 2 directions 2005-10-04 02:09:06 +00:00
Chris Danford 65cfea1be9 Only accept repeating input from one player at a time. Fixes "wild scrolling" when 2 players are holding opposite directions. 2005-10-04 01:40:58 +00:00
Glenn Maynard 75484e193f cleanup: add children before calling Load 2005-09-27 05:40: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 a288441843 use BeginScreen 2005-09-21 17:23:11 +00:00
Chris Danford ae0e385c10 position scroller items so that the items' will start from their resting position when they execute their OnCommand. 2005-09-03 04:50:49 +00:00
Chris Danford f55e8a54e6 Don't evaluate the ActorScroller transform function every time though Draw.
Cache TweenState values at a provided interval, then interpolate between the TweenStates.
TODO: Precalculate these TweenStates in Init?
2005-09-02 21:42:34 +00:00
Glenn Maynard e840759d97 LoadAllCommands 2005-08-25 23:07:42 +00:00
Chris Danford 6eaf17dd25 put ThisGameCommand in the global space, not in GameState's environment 2005-08-15 07:48:16 +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
Chris Danford dda9f61179 add metric SSMaster::LoopScroller 2005-07-26 19:55:00 +00:00
Chris Danford 240666b390 const cleanup 2005-07-25 04:47:51 +00:00
Glenn Maynard c23d0ae90e fix warning 2005-07-19 00:51:54 +00:00
Chris Danford 92762eb7ac fix Scroll's OffCommand played twice 2005-07-15 01:51:05 +00:00
Glenn Maynard 037618529c A lot of screens have TweenOffScreen functions; SWME has that, and it's not
virtual, so the names are clashing and confusing.  This should probably just
be virtual.  As an incremental step to that, rename all derived TweenOnScreen
and TweenOffScreen screen functions to TweenOursOnScreen and
TweenOursOffScreen.
2005-07-14 22:23:39 +00:00
Chris Danford e805f09b3c SharedPreviewAndCursor -> SharedSelection 2005-07-14 21:51:22 +00:00
Chris Danford f31e4af6d9 remove Preview element, use Scroll instead 2005-07-14 20:15:37 +00:00
Chris Danford 30598db3bf remove SSM parts 2005-07-14 08:47:12 +00:00
Glenn Maynard 94d8842ca0 don't hold Lua while loading a file; it'll block rendering 2005-07-13 22:23:24 +00:00
Chris Danford 65ff592f69 add ProcessMenuStart for derived screens to trap Start 2005-07-13 19:22:23 +00:00
Chris Danford fcc6c4408a working on SSelectProfile 2005-07-07 22:08:05 +00:00
Chris Danford 738b938f5a cleanup
play Gain/LoseFocus before OnCommand
2005-06-29 09:22:24 +00:00
Glenn Maynard 4e017b752b fix using PLAYER_INVALID as an index when using SSMaster when no
players are joined
2005-06-23 01:21:13 +00:00
Chris Danford 27edb1f2bb play GainFocus and LoseFocus for scroll items 2005-05-08 03:59:40 +00:00
Chris Danford f6850473bb fix ScoreWheel scrolling 2005-05-05 00:22:36 +00:00