Files
itgmania212121/Themes/themekit/BGAnimations/ScreenWithMenuElements background/default.lua
T

76 lines
1.6 KiB
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
local t = Def.ActorFrame {};
--
t[#t+1] = Def.ActorFrame {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
end;
2011-03-17 01:47:30 -04:00
LoadActor("VOL1-29-NTSC") .. {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffusealpha(0.75);
end;
2011-03-17 01:47:30 -04:00
};
};
--
local bShow = 0;
t[#t+1] = Def.ActorFrame {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:visible(false);
end;
2011-03-17 01:47:30 -04:00
ToggleConsoleDisplayMessageCommand=function(self)
bShow = 1 - bShow;
self:visible( bShow == 1 );
end;
-- Grid
LoadActor("_32") .. {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
self:customtexturerect(0, 0, SCREEN_WIDTH / 32, SCREEN_HEIGHT / 32);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
2011-03-17 01:47:30 -04:00
};
LoadActor("_16") .. {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
self:customtexturerect(0, 0, SCREEN_WIDTH / 16, SCREEN_HEIGHT / 16);
end;
OnCommand=function(self)
self:diffuse(color("1,1,1,0.125"));
end;
2011-03-17 01:47:30 -04:00
};
-- Left
Def.Quad {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:horizalign(left);
self:x(SCREEN_LEFT);
self:y(SCREEN_CENTER_Y)
self:zoomto(16, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
2011-03-17 01:47:30 -04:00
};
-- Right
Def.Quad {
2013-07-01 22:08:27 -04:00
InitCommand=function(self)
self:horizalign(right);
self:x(SCREEN_RIGHT);
self:y(SCREEN_CENTER_Y)
self:zoomto(16, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
2011-03-17 01:47:30 -04:00
};
};
--
2011-03-14 13:08:48 -07:00
return t