Created
February 1, 2015 02:05
-
-
Save kyzentun/e715d55c911cb3257358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Format BackgroundEffects | |
-- Scripts edited by: Daniel Duhme | |
-- also known as: Danielu Yoshikoto | |
-- If used, give credits and not claim your own | |
-- Format 3+, for croping 4x3 media to fill a 16x9 screen + have it not loop. | |
-- www.buu-page.de | |
local cColor1 = color(Var "Color1"); | |
local t = Def.ActorFrame { | |
LoadActor(Var "File1") .. { | |
-- OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,cColor1;loop,false); | |
OnCommand= function(self) | |
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y) | |
self:diffuse(cColor1) | |
self:loop(false) | |
-- self:scaletocover(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) | |
bg_fit_functions.BackgroundFitMode_FitInsideAvoidPillar(self, SCREEN_WIDTH, SCREEN_HEIGHT) | |
end, | |
GainFocusCommand=cmd(play); | |
LoseFocusCommand=cmd(pause); | |
}; | |
}; | |
return t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment