Advertisement
Jousway

ScreenTitleMenu background default.lua

May 10th, 2011
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. --local bg = tostring(math.random(1,7);
  2. --setenv("Background",bg);
  3.  
  4. local t = Def.ActorFrame {
  5.     LoadActor(tostring(math.random(1,7)))..{
  6.     --need to fix this
  7.     --LoadActor(bg)..{
  8.         InitCommand=cmd(Center;scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
  9.     };
  10.     LoadActor("bgtop") .. {
  11.         InitCommand=cmd(Center;addy,-90;zoom,0.6);
  12.     };
  13.     LoadActor("bgbottom") .. {
  14.         InitCommand=cmd(Center;addy,60;zoom,0.6);
  15.         OnCommand=cmd(zoomy,0;sleep,0.2;linear,0.1;zoomy,0.6);
  16.         OffCommand=cmd(zoomy,0.6;linear,0.1;zoomy,0);
  17.     };
  18.     LoadFont("_dejavu sans Bold") .. {
  19.     Text=("MAIN MENU");
  20.     InitCommand=cmd(shadowlength,1.5;shadowcolor,color("0.5,0.5,0.5,1");settexturefiltering,false);
  21.     OnCommand=cmd(zoom,0.6;rotationz,-90;x,SCREEN_CENTER_X-170;y,SCREEN_CENTER_Y);
  22.     };
  23. };
  24. return t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement