Advertisement
Jousway

Screen Evaluation Background

Mar 22nd, 2011
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. local t = Def.ActorFrame {};
  2.  
  3. t[#t+1] = Def.ActorFrame {
  4.   InitCommand=cmd(Center);
  5.     Def.Sprite {
  6.         OnCommand=function(self)
  7.             if GAMESTATE:GetCurrentSong() then
  8.                 self:LoadBackground( GAMESTATE:GetCurrentSong():GetBackgroundPath() );
  9.                 self:scaletoclipped( SCREEN_WIDTH+1,SCREEN_HEIGHT );
  10.                 (cmd(fadebottom,0.25;fadetop,0.25;croptop,48/480;cropbottom,48/480))(self);
  11.             else
  12.                 self:visible(false);
  13.             end
  14.         end;
  15.     };
  16.     Def.Quad {
  17.         InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
  18.         OnCommand=cmd(diffuse,color("#FFCB05");diffusebottomedge,color("#F0BA00");diffusealpha,0.45);
  19.     };
  20. --[[
  21.     LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_grid")).. {
  22.         InitCommand=cmd(customtexturerect,0,0,(SCREEN_WIDTH+1)/4,SCREEN_HEIGHT/4;SetTextureFiltering,true);
  23.         OnCommand=cmd(zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT;diffuse,Color("Black");diffuseshift;effecttiming,(1/8)*4,0,(7/8)*4,0;effectclock,'beatnooffset';
  24.         effectcolor2,Color("Black");effectcolor1,Colors.Alpha(Color("Black"),0.45);fadebottom,0.25;fadetop,0.25;croptop,48/480;cropbottom,48/480;diffusealpha,0.345);
  25.     }; --]]
  26.     LoadActor(THEME:GetPathB("ScreenWithMenuElements","background/_bg top")) .. {
  27.         InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
  28.    
  29.     };
  30.     Def.Sprite {
  31.     Texture="Staians awesome image";
  32.     };
  33.  
  34. };
  35.  
  36. return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement