add ActorFrame:RunCommandsRecursively
This commit is contained in:
@@ -83,6 +83,11 @@ function ActorFrame:propagatecommand(...)
|
|||||||
self:propagate(0);
|
self:propagate(0);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ActorFrame:RunCommandsRecursively(func, ...)
|
||||||
|
func(self, ...);
|
||||||
|
self:RunCommandsOnChildren( func, ... );
|
||||||
|
end
|
||||||
|
|
||||||
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
|
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
|
||||||
function Actor:scale_or_crop_background()
|
function Actor:scale_or_crop_background()
|
||||||
if self:GetWidth() == 640 and self:GetHeight() == 480 then
|
if self:GetWidth() == 640 and self:GetHeight() == 480 then
|
||||||
|
|||||||
Reference in New Issue
Block a user