This commit is contained in:
Glenn Maynard
2005-02-13 20:10:27 +00:00
parent 0da2e0fa6e
commit 470b308fe0
+7 -4
View File
@@ -863,11 +863,14 @@ float Actor::GetTweenTimeLeft() const
return tot;
}
/* This is a hack to change all tween states while leaving existing tweens alone.
/*
* This is a hack to change all tween states while leaving existing tweens alone.
*
* Perhaps the regular Set methods should also take an optional argument, eg.
* "SET_TWEEN" (normal behavior) or "SET_GLOBAL" to set regardless of tweens.
* That might be ugly, too.
* Hmm. Most commands actually act on a TweenStateAndInfo, not the Actor itself.
* Conceptually, it wouldn't be hard to give TweenState a presence in Lua, so
* we can simply say eg. "for x in states(Actor) do x.SetDiffuseColor(c) end".
* However, we'd then have to give every TweenState a userdata in Lua while it's
* being manipulated, which would add overhead ...
*/
void Actor::SetGlobalDiffuseColor( RageColor c )
{