From 7a6b2d6c47c17a6bd6885260fed5ee61ce26f257 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 8 Feb 2007 22:17:14 +0000 Subject: [PATCH] add ActorFrame:RunCommandsRecursively --- stepmania/Themes/default/Scripts/Actor.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/Themes/default/Scripts/Actor.lua b/stepmania/Themes/default/Scripts/Actor.lua index 73b5c1e011..f72dd2307e 100644 --- a/stepmania/Themes/default/Scripts/Actor.lua +++ b/stepmania/Themes/default/Scripts/Actor.lua @@ -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