Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local curGameName = GAMESTATE:GetCurrentGame():GetName();
- --local curScreenName = GAMECOMMAND:GetScreen():GetName();
- --local bg = getenv("Background");
- local t = Def.ActorFrame {
- LoadActor(tostring(math.random(1,7)))..{
- --[[need to fix this --Get Background from ScreenTitleMenu background
- LoadActor(bg)..{--]]
- InitCommand=cmd(Center;scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
- };
- LoadActor("bgtop") .. {
- InitCommand=cmd(Center;addy,-90;zoom,0.6);
- };
- --[[need to fix this
- LoadActor("bgtop") .. {
- InitCommand=function(self);
- if curScreenName == "ScreenSelectMusic" or "ScreenOptions" or "ScreenEvaluation" then
- self:cmd(diffusealpha,0;Center;addy,-90;zoom,0.6);
- else
- self:cmd(diffusealpha,1;Center;addy,-90;zoom,0.6);
- end;
- end;
- };--]]
- LoadActor("bgbottom") .. {
- InitCommand=cmd(Center;addy,60;zoom,0.6);
- OnCommand=cmd(zoomy,0;linear,0.1;zoomy,0.6);
- OffCommand=cmd(zoomy,0.6;linear,0.1;zoomy,0;linear,0.1;zoomy,0.6;);
- };
- --show Current Gametype
- LoadFont("_dejavu sans Bold") .. {
- InitCommand=cmd(zoom,0.5;);
- OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_TOP+10);
- BeginCommand=function(self)
- self:settextf( Screen.String("CurrentGametype"), curGameName );
- end;
- };
- --show Life Difficulty
- Def.ActorFrame {
- LoadFont("_dejavu sans Bold") .. {
- Text=": Life Difficulty";
- InitCommand=cmd(horizalign,right;zoom,0.5);
- OnCommand=cmd(shadowlength,1);
- };
- LoadFont("_dejavu sans Bold") .. {
- Text=GetLifeDifficulty();
- AltText="";
- InitCommand=cmd(x,-89;horizalign,right;zoom,0.5);
- OnCommand=cmd(shadowlength,1);
- };
- OnCommand=cmd(x,SCREEN_RIGHT-10;y,SCREEN_TOP+10);
- };
- --show Timing Difficulty
- Def.ActorFrame {
- LoadFont("_dejavu sans Bold") .. {
- Text="Timing Difficulty :";
- InitCommand=cmd(horizalign,left;zoom,0.5);
- OnCommand=cmd(shadowlength,1);
- };
- LoadFont("_dejavu sans Bold") .. {
- Text=GetTimingDifficulty();
- AltText="";
- InitCommand=cmd(x,105;horizalign,left;zoom,0.5);
- OnCommand=function(self)
- (cmd(shadowlength,1))(self);
- if GetTimingDifficulty() == 9 then
- self:settext("Justice");
- (cmd())(self);
- else
- self:settext( GetTimingDifficulty() );
- end
- end;
- };
- OnCommand=cmd(x,SCREEN_LEFT+10;y,SCREEN_TOP+10);
- };
- --show Stepmania Version
- LoadFont("Common Normal") .. {
- OnCommand=cmd(settext," Version "..ProductVersion().." - Built "..VersionDate();horizalign,left;shadowlength,1;zoom,0.5;rotationz,-90;x,SCREEN_RIGHT-10;y,SCREEN_BOTTOM);
- };
- };
- return t;
Advertisement