add ActorFrame:RunCommandsRecursively

This commit is contained in:
Glenn Maynard
2007-02-08 22:17:14 +00:00
parent 2116064921
commit 7a6b2d6c47
@@ -83,6 +83,11 @@ function ActorFrame:propagatecommand(...)
self:propagate(0);
end
function ActorFrame:RunCommandsRecursively(func, ...)
func(self, ...);
self:RunCommandsOnChildren( func, ... );
end
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
function Actor:scale_or_crop_background()
if self:GetWidth() == 640 and self:GetHeight() == 480 then