Glenn Maynard
8ffab2ec9b
GetParent binding
2006-08-17 06:43:25 +00:00
Glenn Maynard
9872638a7d
<Context> nodes
2006-08-17 06:42:32 +00:00
Glenn Maynard
8c7c5aff37
show the name, not the size (always 51)
2006-08-16 00:57:16 +00:00
Glenn Maynard
cbc69ea550
remove unused parameter
2006-08-15 19:24:29 +00:00
Glenn Maynard
d2a4a2fa76
use m_pParent
2006-08-15 19:12:09 +00:00
Glenn Maynard
ec683e54d9
remove InitDefaults
2006-08-15 19:06:26 +00:00
Glenn Maynard
a872952b8b
store parent
2006-08-15 19:02:31 +00:00
Glenn Maynard
89ab444693
Add parent links to actors.
...
For each actor, create a context table, with an __index link to the
parent's. This can be used to propagate information down complex
actor trees.
Code needs to be changed to do AddChild() calls before loading,
rather than after, so context links are available during loads.
This will be done as necessary.
2006-08-09 23:22:54 +00:00
Glenn Maynard
c98fabf1f2
consistency
2006-08-01 20:39:36 +00:00
Glenn Maynard
45c114590e
don't ignore specified effect period if the effect is already running
2006-08-01 20:36:19 +00:00
Glenn Maynard
a3ffee63b6
remove GetCommandsLengthSeconds
2006-08-01 20:32:16 +00:00
Glenn Maynard
e550a0fcb5
cleanup, less random order
2006-07-29 06:18:09 +00:00
Glenn Maynard
9ed6603349
add BLEND_WEIGHTED_MULTIPLY and BLEND_INVERT_DEST blend modes
2006-07-27 01:34:57 +00:00
Steve Checkoway
a07e194cf1
Revert. Fixes Linux build.
2006-07-18 05:51:37 +00:00
Jason Felds
366c3440d4
Fix VC8 macro redef warning. (more to come)
2006-07-18 03:56:37 +00:00
Steve Checkoway
d2f3a14495
strtof -> StringToFloat.
2006-06-12 06:42:25 +00:00
Chris Danford
a5f0d301c9
don't unsubscribe from messages on bgchange
2006-05-30 09:08:00 +00:00
Glenn Maynard
31e3ac5ddd
bind GetCommand
2006-04-28 03:33:12 +00:00
Chris Danford
6d115f5b55
add EqualsNoCase for better clarity than "!string.CompareNoCase()"
2006-03-26 19:19:39 +00:00
Glenn Maynard
3943a06255
use GetCommand
2006-03-26 06:02:37 +00:00
Glenn Maynard
ab08e39204
return a pointer from Actor::GetCommand, so the command not existing
...
isn't fatal
2006-03-26 05:53:20 +00:00
Glenn Maynard
4b0128d810
bind GetZoomedWidth, GetZoomedHeight
2006-03-01 04:12:30 +00:00
Glenn Maynard
0ac58078b4
unused
2006-02-27 06:09:08 +00:00
Chris Danford
a05d1e8265
move message helper stuff out of Actor into a new base class so that it can be used w/o deriving from Actor
2006-02-06 01:26:52 +00:00
Glenn Maynard
0a5a9edc6e
fix weird stoptweening behavior
2006-01-30 05:23:58 +00:00
Glenn Maynard
96daf3c7bd
cleanup
2006-01-28 02:59:54 +00:00
Glenn Maynard
3da3825e20
remove TWEEN_SMOOTH. Use Bezier.
2006-01-23 06:53:11 +00:00
Glenn Maynard
a62788fb9f
Split out tween weighting functions. Add tweening from 1d and 2d
...
bezier curves.
The "bouncebegin" and "bounceend" tweens are now implemented in Lua,
using 2D beziers which approximate the old behavior very closely.
Added "ease" tween, which works like Flash's.
Custom tweens can be used, passing in a table of 4 values for a
1D bezier, or 8 values for 2D.
tween,.5,TweenBezier,{ 0, p1, p2, 1 }
tween,.5,TweenBezier,{ 0, 0, x1, y1, x2, y2, 1, 1 }
As with all tweens, the first parameter is the duration.
The 1D bezier { a, b, c, d } is equivalent to the 2D bezier
{ 0, a, 1/3, b, 2/3, c, 1, d }, but a 1D bezier is more efficient.
2006-01-23 05:48:40 +00:00
Glenn Maynard
6e03ec1998
use lerp()
2006-01-23 03:37:25 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
58c79217df
cleanup
2006-01-20 22:16:10 +00:00
Glenn Maynard
7f4b58a2ce
cleanup
2006-01-18 05:49:37 +00:00
Glenn Maynard
63c010f94e
cleanpu
2006-01-18 05:48:56 +00:00
Glenn Maynard
bd9c97583e
fix "warning: base class `class IMessageSubscriber' should
...
be explicitly initialized in the copy constructor"
2006-01-15 20:49:27 +00:00
Chris Danford
d507f3fd28
move LuaBinding into namespace
2005-12-27 22:58:30 +00:00
Chris Danford
51fc84e2d2
add shorter "BaseRotationX"
2005-12-08 08:23:57 +00:00
Glenn Maynard
a4729f0b80
make ScaleToCover, ScaleToFitInside act reasonably with different horizalign,
...
vertalign
2005-12-08 01:21:50 +00:00
Glenn Maynard
0a961c49c8
Revert cropping. "scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT"
...
achieves the same effect.
2005-11-30 23:29:16 +00:00
Glenn Maynard
76f05625d5
ZoomToWidth/ZoomToHeight obeys crop. This way,
...
CropToAspectRatio,16/9;
ZoomToWidth,SCREEN_WIDTH;
ZoomToHeight,SCREEN_HEIGHT
will zoom to the center 16:9 area of the image.
2005-11-30 23:11:31 +00:00
Glenn Maynard
c607f34d3a
add Actor::CropToAspectRatio
2005-11-30 23:02:22 +00:00
Glenn Maynard
938bfeb7b0
add ActorUtil::SetParamFromStack, ActorUtil::GetParam. Save params to
...
a table, not as global variables. Saving and loading from globals is still
around temporarily.
2005-10-29 01:28:29 +00:00
Glenn Maynard
fde59d8464
set the loading screen, so actors can use it as an input variable
2005-10-28 22:47:11 +00:00
Glenn Maynard
17efa3412d
Actor::Reset() -> private Actor::InitDefaults().
2005-10-16 02:22:33 +00:00
Glenn Maynard
64504718d1
move m_sCommandName from TS to TI. Cleaner, and fixes queued commands being wiped
...
out by LuaExpressionTransform.
2005-10-14 01:46:00 +00:00
Glenn Maynard
9d756b8ba4
Allow optional parameters, for rarely-used params.
2005-10-13 23:12:16 +00:00
Glenn Maynard
64d9c29568
Simplify: store attributes in a simple map<CString,CString>, not in an object.
...
Makes attributes lighter.
2005-10-11 10:24:07 +00:00
Glenn Maynard
f533842452
fix assert
2005-10-11 10:08:55 +00:00
Glenn Maynard
7210e10b89
cleanup
2005-10-11 10:08:54 +00:00
Glenn Maynard
c9cb09dd36
ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode
2005-10-11 02:51:05 +00:00
Glenn Maynard
0f17b0f9c2
Actor::IsType
2005-10-10 21:52:04 +00:00