Glenn Maynard
99702eb069
bindings
2005-12-07 05:48:04 +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
534d9e40ec
bind PositionItems
2005-12-07 05:11:40 +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
7b646dc6b1
split SetNumSubdivisions
2005-12-07 04:16:11 +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
4b499e0f72
unused
2005-12-06 03:09:33 +00:00
Glenn Maynard
f59e884ede
simplify rarely-used Load2
2005-12-06 03:05:57 +00:00
Glenn Maynard
ac2b782192
merge code
2005-12-06 02:53:07 +00:00
Glenn Maynard
6d974bc5e2
don't reinit to defaults
...
nudge Load2 and Load3 together
2005-12-06 02:48:54 +00:00
Glenn Maynard
a71723089f
simplify
2005-12-06 02:46:44 +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
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
4ae883a5c6
cleanup
2005-09-27 07:34:45 +00:00
Glenn Maynard
cc737b0835
fix message
2005-09-27 03:32:14 +00:00
Glenn Maynard
71ad5179b4
Don't scroll by default; do it in OnCommand.
2005-09-27 03:20:07 +00:00
Glenn Maynard
e1cf2c5484
add lua bindings
2005-09-27 03:18:57 +00:00
Glenn Maynard
2436ef26db
simplify
2005-09-26 23:01:24 +00:00
Glenn Maynard
e3d5437031
fix up names
2005-09-26 21:04:02 +00:00
Glenn Maynard
5ca840d259
simplify algebraically; nudge both cases to look the same
2005-09-26 21:03:09 +00:00
Glenn Maynard
9110303bff
equivalent and easier to understand: fCurrentItem is simply centered
2005-09-26 20:43:45 +00:00
Glenn Maynard
e24e9d8c99
cleanup
2005-09-26 19:53:11 +00:00
Glenn Maynard
1178d1df75
cleanup
2005-09-26 19:52:04 +00:00
Glenn Maynard
a1d9d49d6c
simplify: an ActorScroller is always an ActorScroller
2005-09-26 19:35:15 +00:00
Glenn Maynard
b389ded342
Remove UseScroller; it's a holdover from when ActorScroller was part of
...
ActorFrame. Now, if the class is ActorScroller, we always want a scroller.
2005-09-24 23:25:25 +00:00
Glenn Maynard
718cf1787a
simplify
2005-09-24 04:04:01 +00:00
Glenn Maynard
dbbe3c8af1
Fix mask. Traditionally, quads have been a little unusual: they have a size
...
of 1x1, and are sized by zooming. That's unintuitive, commonly causes
problems when used in conjunction with other stretch effects, and all we have
to do is SetHeight/SetWidth to set the actual size, which will make it behave
exactly like any other sprite. This one didn't work because m_exprTransformFunction
overrides the zoom, usually resetting it to 1x1.
2005-09-24 04:02:27 +00:00
Glenn Maynard
f9258c60b9
fix div/0 in LuaExpressionTransform::PositionItem
2005-09-24 03:29:02 +00:00
Glenn Maynard
40251903ec
legacy: bPosition is always true
2005-09-24 02:35:53 +00:00
Glenn Maynard
c27ba8ca2f
Don't SetZ masks; it breaks things in 3d. It's up to the renderer to activate
...
z-bias in BLEND_NO_EFFECT.
2005-09-24 02:31:55 +00:00
Glenn Maynard
7dce50ffbc
simplify, don't store extra state
2005-09-24 02:18:09 +00:00
Glenn Maynard
615c470354
cleanup
2005-09-24 00:54:31 +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
65d71a4f23
expermienting with DEFINE_METHOD macro for Lua methods
2005-09-10 02:47:04 +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
9d7f835609
no need to template Luna specializations
2005-06-20 05:02:03 +00:00
Glenn Maynard
c998564adf
update registration for various types
2005-06-20 04:17:02 +00:00
Glenn Maynard
c0a65b3503
lua locking
2005-06-16 22:10:24 +00:00