Added BackgroundFitMode preference and setting screen for controlling how backgrounds are fitted to the screen.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
local Color1 = color(Var "Color1");
|
||||
local Color2 = color(Var "Color2");
|
||||
local stretchBG = PREFSMAN:GetPreference("StretchBackgrounds")
|
||||
|
||||
local t = Def.ActorFrame {};
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
local Color1 = color(Var "Color1");
|
||||
local Color2 = color(Var "Color2");
|
||||
local stretchBG = PREFSMAN:GetPreference("StretchBackgrounds")
|
||||
|
||||
local t = Def.ActorFrame {
|
||||
Def.Sprite {
|
||||
OnCommand=function(self)
|
||||
self:LoadFromCurrentSongBackground()
|
||||
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
||||
if stretchBG then self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
||||
else self:scale_or_crop_background();
|
||||
end
|
||||
self:scale_or_crop_background();
|
||||
self:diffuse(Color1)
|
||||
self:effectclock("music")
|
||||
end;
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
local Color1 = color(Var "Color1");
|
||||
local stretchBG = PREFSMAN:GetPreference("StretchBackgrounds")
|
||||
|
||||
local t = Def.ActorFrame {
|
||||
LoadActor(Var "File1") .. {
|
||||
OnCommand=function(self)
|
||||
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
|
||||
if stretchBG then self:SetSize(SCREEN_WIDTH,SCREEN_HEIGHT)
|
||||
else self:scale_or_crop_background();
|
||||
end
|
||||
self:scale_or_crop_background();
|
||||
self:diffuse(Color1)
|
||||
self:effectclock("music")
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user