Commit Graph
66 Commits
Author SHA1 Message Date
AJ Kelly c9f8d6304f add SetTransformFromWidth 2007-09-23 18:04:16 +00:00
Glenn Maynard cd3f228338 covariant Copy() 2006-10-20 00:17:51 +00:00
Glenn Maynard e11914d4bb LoadFromNode(sDir, pNode) -> LoadFromNode(pNode) 2006-10-09 08:24:10 +00:00
Glenn Maynard e592af10de SetTransformFromReference 2006-09-22 03:23:13 +00:00
Glenn Maynard 2db64b116e remove param 2006-08-16 18:43:38 +00:00
Glenn Maynard 47a62d7db6 phase out param 2006-08-16 18:31:00 +00:00
Glenn Maynard 2877e7ef0f cleanup 2006-08-16 18:25:13 +00:00
Glenn Maynard 11372f28bf remove param 2006-08-16 18:23:56 +00:00
Glenn Maynard ba92d2cb49 phase out param 2006-08-16 18:20:42 +00:00
Glenn Maynard ce81254e53 add SetLoop 2006-08-16 18:19:16 +00:00
Glenn Maynard 3e5bcbe583 ActorScroller::GetSecondsToDestination 2006-02-24 01:57:10 +00:00
Chris Danford 58986cfcce probe to find out which parameters of the transform function are used 2006-01-30 00:50:00 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 353e0c5b6e break up arch stuff into smaller .cpp files to fix smpackage build and not pull in unnecessary stuff 2005-12-16 04:16:09 +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 c5766b32aa simplify Load3. (Most scrollers use one subdivision.) 2005-12-07 04:22:47 +00:00
Glenn Maynard 5cb8148d30 add SetNumSubdivisions
secondsperitem -> setsecondsperitem
2005-12-07 04:19:32 +00:00
Glenn Maynard 12ff6ff4da simplify ActorScroller::Load3 2005-12-07 03:53:49 +00:00
Glenn Maynard 24dd9f52a5 simplify ActorScroller::Load2 2005-12-07 03:50:11 +00:00
Glenn Maynard 7c65f28e44 add SetSecondsPerItem
default SetSecondsPerItem to 0.  1 isn't a useful default (almost
nothing ever scrolls that slowly).
2005-12-07 03:43:47 +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 569f3055db add setfastcatchup 2005-12-06 03:17:32 +00:00
Glenn Maynard f59e884ede simplify rarely-used Load2 2005-12-06 03:05:57 +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 9608af3c8d cleanup 2005-10-17 23:18:49 +00:00
Glenn Maynard fb8d67dd9f add ActorScroller::EnableMask, ActorScroller::DisableMask 2005-10-17 23:17:58 +00:00
Glenn Maynard 91815ef03e Simplify: Move LoadChildrenFromNode into ActorFrame::LoadFromNode.
This also makes loading consistent between ActorFrame, ActorScroller and DActorScroller.
Previously, we ran ActorFrame::LoadFromNode before adding children, which caused InitCommand
to be run before adding children.
2005-10-07 02:55:47 +00:00
Glenn Maynard e844ff7c32 By default, don't use item numbers. On scrollers with lots of items, especially
with Subdivisions > 1, m_exprTransformFunction uses too much memory, and
very few scrollers use this.  Usually, per-item effects can be done better by
using DynamicActorScroller and doing the effects on item load (but this can
do some things that can't).
2005-10-03 00:02:41 +00:00
Glenn Maynard 18f40a2b8f Separate "number of Actors" from "number of items": allow having more items than
actors.  Derived classes do this by overriding ShiftSubActors and setting m_iNumItems
to something other than m_SubActors.size().
2005-09-27 07:49:12 +00:00
Glenn Maynard 384e26cbec ActorScroller doesn't SetDestinationItem anymore, but we still want this here and not in ActorScroller. 2005-09-27 07:40:34 +00:00
Glenn Maynard e1cf2c5484 add lua bindings 2005-09-27 03:18:57 +00:00
Glenn Maynard a1d9d49d6c simplify: an ActorScroller is always an ActorScroller 2005-09-26 19:35:15 +00:00
Glenn Maynard 4722e1ca2e fix comment 2005-09-24 03:48:30 +00:00
Glenn Maynard 40251903ec legacy: bPosition is always true 2005-09-24 02:35:53 +00:00
Glenn Maynard 05514ab59e unused 2005-09-24 02:34:34 +00:00
Glenn Maynard 7dce50ffbc simplify, don't store extra state 2005-09-24 02:18:09 +00:00
Glenn Maynard 0581e0b3d0 const fix
hide implementation
2005-09-24 00:51:35 +00:00
Glenn Maynard fb49d6a41a optimize, simplify 2005-09-22 00:08:59 +00:00
Chris Danford 24440aa3bf move Trasform caching out of ActorScroller and into LuaExpressionTransform so that ScreenOptions can use it too.
add RowOn/OffCommand to ScreenOptions
2005-09-03 17:37:42 +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
Chris Danford dda9f61179 add metric SSMaster::LoopScroller 2005-07-26 19:55:00 +00:00
Glenn Maynard 55d6382c49 add virtual Copy() to Actor 2005-07-18 22:00:19 +00:00
Glenn Maynard c998564adf update registration for various types 2005-06-20 04:17:02 +00:00
Chris Danford 98784d3fb5 Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating 2005-06-11 10:32:58 +00:00
Chris Danford f6850473bb fix ScoreWheel scrolling 2005-05-05 00:22:36 +00:00
Chris Danford ab543597cd add SSMaster::WrapScroller and ScrollerFastCatchup 2005-05-03 23:12:29 +00:00
Chris Danford 8eaf93a23d position Scroller items with a Lua function
add ActorFrame::m_bDrawByZPosition
2005-05-03 09:29:54 +00:00
Chris Danford 64dbc29fb0 no popping of scores on wheel 2005-04-29 06:16:51 +00:00
Chris Danford cb168f791a add optional QuantizePixels 2005-04-19 19:17:03 +00:00
Chris Danford b26768eafe fix ActorScroller draws a longer distance than it used to. Clean this up later. 2005-04-12 12:39:39 +00:00