Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Inorizushi committed Oct 6, 2017
1 parent 6fc976d commit b618f0c
Show file tree
Hide file tree
Showing 717 changed files with 10,502 additions and 0 deletions.
9 changes: 9 additions & 0 deletions BGAnimations/Screen cancel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
return Def.ActorFrame{
LoadActor(THEME:GetPathS("","Common back"))..{
StartTransitioningCommand=cmd(play);
};
Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,1"));
OnCommand=cmd(cropleft,1;fadeleft,0.5;linear,0.5;cropleft,-0.5;sleep,0.25);
};
};
6 changes: 6 additions & 0 deletions BGAnimations/ScreenAttract cancel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return Def.ActorFrame{
Def.Quad{
InitCommand=cmd(FullScreen;diffuse,color("0,0,0,0"));
OnCommand=cmd(sleep,0.8);
};
};
Binary file added BGAnimations/ScreenCaution background/back1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCaution background/back2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCaution background/back3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions BGAnimations/ScreenCaution background/default.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
local t = Def.ActorFrame{};

t[#t+1] = Def.ActorFrame{
LoadActor("back1.png")..{
InitCommand=cmd(Center;FullScreen;diffuse,color("1.0,0.8,0.8,1"));
};
Def.ActorFrame{
InitCommand=cmd(Center;);
LoadActor("back3")..{
InitCommand=cmd(y,-180;zoomtowidth,SCREEN_WIDTH;diffuse,color("1.0,0.8,0.8,1"));
OnCommand=function(self)
local w = SCREEN_HEIGHT*1.333333 / self:GetWidth();
local h = DISPLAY:GetDisplayHeight() / self:GetHeight();
self:customtexturerect(0,0,w,1);
self:texcoordvelocity(-0.2,0);
end;
};
LoadActor("back3")..{
InitCommand=cmd(y,180;zoomtowidth,SCREEN_WIDTH;diffuse,color("1.0,0.8,0.8,1"));
OnCommand=function(self)
local w = SCREEN_HEIGHT*1.333333 / self:GetWidth();
local h = DISPLAY:GetDisplayHeight() / self:GetHeight();
self:customtexturerect(0,0,w,1);
self:texcoordvelocity(0.2,0);
end;
};
};
};

--rings
t[#t+1] = Def.ActorFrame{
InitCommand=cmd(diffuse,color("1.0,0.8,0.8,1"));
--top left
Def.ActorFrame{
InitCommand=cmd(xy,SCREEN_LEFT,SCREEN_TOP;zoom,1);
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,0,50,0;);
};
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,50,0,0;);
};
};
--top right
Def.ActorFrame{
InitCommand=cmd(xy,SCREEN_RIGHT,SCREEN_TOP;zoom,1);
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,0,50,0;);
};
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,50,0,0;);
};
};
--bottom left
Def.ActorFrame{
InitCommand=cmd(xy,SCREEN_LEFT,SCREEN_BOTTOM;zoom,1);
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,0,50,0;);
};
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,50,0,0;);
};
};
--bottom right
Def.ActorFrame{
InitCommand=cmd(xy,SCREEN_RIGHT,SCREEN_BOTTOM;zoom,1);
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,0,50,0;);
};
LoadActor("back2")..{
OnCommand=cmd(spin;effectmagnitude,50,0,0;);
};
};
};

--cautions
t[#t+1] = Def.ActorFrame{
LoadActor("caution1")..{
InitCommand=cmd(Center;diffuse,color("1.0,0.8,0.8,1"));
OnCommand=cmd(spin;effectmagnitude,0,0,20;);
};
LoadActor("caution2")..{
InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_TOP+96;diffuse,color("0.8,0.8,1.0,1"));
OnCommand=cmd(addx,-640;linear,0.3;addx,640;);
};
LoadActor("caution3")..{
InitCommand=cmd(xy,SCREEN_CENTER_X,SCREEN_BOTTOM-96;diffuse,color("0.8,1.0,0.8,1"));
OnCommand=cmd(addx,640;linear,0.3;addx,-640;);
};
};

return t;
17 changes: 17 additions & 0 deletions BGAnimations/ScreenCompany background/default.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local t = Def.ActorFrame{
InitCommand=cmd(Center);
Def.Quad{
InitCommand=cmd(setsize,SCREEN_WIDTH,SCREEN_HEIGHT);
};
LoadActor("logo1")..{
OnCommand=cmd(diffusealpha,0;sleep,1;linear,0.5;diffusealpha,1;sleep,4;linear,0.5;diffusealpha,0;)
};
LoadActor("logo2")..{
OnCommand=cmd(diffusealpha,0;sleep,6;linear,0.5;diffusealpha,1;sleep,4;linear,0.5;diffusealpha,0;)
};
LoadActor("logo3")..{
OnCommand=cmd(diffusealpha,0;sleep,11;linear,0.5;diffusealpha,1;sleep,4;linear,0.5;diffusealpha,0;)
};
};

return t;
Binary file added BGAnimations/ScreenCompany background/logo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCompany background/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCompany background/logo3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions BGAnimations/ScreenCredits background/BGAnimation.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[BGAnimation]
LengthSeconds=20

[Layer1]
Type=3
TileVelocityY=-30
File=back1.png

[Layer2]
File=../star.png
Command=x,320;y,240;spin;diffuse,0.9,0.9,1.0,1;effectmagnitude,0,0,-5;

[Layer3]
File=back3.png
Command=spin;effectmagnitude,0,125,0;

[Layer4]
File=back2.png
Command=x,450;y,240;addy,512;linear,47;addy,-512;

[Layer5]
File=back4.png
Command=diffusealpha,0;x,320;y,240;sleep,45;linear,0.5;diffusealpha,1;
Binary file added BGAnimations/ScreenCredits background/back1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCredits background/back2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCredits background/back3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BGAnimations/ScreenCredits background/back4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions BGAnimations/ScreenCredits background/default.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
local t = Def.ActorFrame{};

t[#t+1] = Def.ActorFrame{
LoadActor("back1")..{
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;FullScreen);
OnCommand=function(self)
local w = DISPLAY:GetDisplayWidth() / self:GetWidth();
local h = DISPLAY:GetDisplayHeight() / self:GetHeight();
self:customtexturerect(0,0,w,h);
self:texcoordvelocity(0,0.1);
end;
};
LoadActor("../star.png")..{
InitCommand=cmd(Center;spin;diffuse,0.9,0.9,1.0,1;effectmagnitude,0,0,-5;)
};
LoadActor("back3.png")..{
InitCommand=cmd(Center;spin;effectmagnitude,0,125,0;);
};
LoadActor("back2.png")..{
InitCommand=cmd(xy,SCREEN_CENTER_X+130,SCREEN_CENTER_Y;);
OnCommand=cmd(addy,512;linear,47;addy,-512;);
};
LoadActor("back4.png")..{
InitCommand=cmd(Center);
OnCommand=cmd(diffusealpha,0;sleep,45;linear,0.5;diffusealpha,1;);
};
};

return t;
68 changes: 68 additions & 0 deletions BGAnimations/ScreenCredits overlay.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
-- To add a section to the credits, use the following:
-- local theme_credits= {
-- name= "Theme Credits", -- the name of your section
-- "Me", -- The people you want to list in your section.
-- "Myself",
-- "My other self",
-- {logo= "pro_dude", name= "Pro self"}, -- Someone who has a logo image.
-- -- This logo image would be "Graphics/CreditsLogo pro_dude.png".
-- }
-- StepManiaCredits.AddSection(theme_credits)
--
-- If you want to add your section after an existing section, use the following:
-- StepManiaCredits.AddSection(theme_credits, 7)
--
-- Or position can be the name of a section to insert after:
-- StepManiaCredits.AddSection(theme_credits, "Special Thanks")
--
-- Or if you want to add your section before a section:
-- StepManiaCredits.AddSection(theme_credits, "Special Thanks", true)

-- StepManiaCredits is defined in _fallback/Scripts/04 CreditsHelpers.lua.

local line_on = cmd(zoom,0.5;strokecolor,color("1,1,1,1");shadowlength,4;maxwidth,600)
local section_on = cmd(zoom,0.5;diffuse,color("0.5,0.5,1,1");shadowlength,4;maxwidth,600)
local subsection_on = cmd(zoom,0.5;diffuse,color("1,0.5,0.5,1");shadowlength,4;maxwidth,600)
local item_padding_start = 4;
local line_height= 30
-- Tell the credits table the line height so it can use it for logo sizing.
StepManiaCredits.SetLineHeight(line_height)

local creditScroller = Def.ActorScroller {
SecondsPerItem = 0.35;
NumItemsToDraw = 40;
TransformFunction = function( self, offset, itemIndex, numItems)
self:y(line_height*offset)
end;
OnCommand = cmd(scrollwithpadding,item_padding_start,15);
}

-- Add sections with padding.
for section in ivalues(StepManiaCredits.Get()) do
StepManiaCredits.AddLineToScroller(creditScroller, section.name, section_on)
for name in ivalues(section) do
if name.type == "subsection" then
StepManiaCredits.AddLineToScroller(creditScroller, name, subsection_on)
else
StepManiaCredits.AddLineToScroller(creditScroller, name, line_on)
end
end
StepManiaCredits.AddLineToScroller(creditScroller)
StepManiaCredits.AddLineToScroller(creditScroller)
end

creditScroller.BeginCommand=function(self)
SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_MenuTimer', (creditScroller.SecondsPerItem * (#creditScroller + item_padding_start) + 10) );
end;

return Def.ActorFrame{
creditScroller..{
InitCommand=cmd(x,SCREEN_CENTER_X+160;y,SCREEN_BOTTOM-64),
};
Def.Quad{
InitCommand=cmd(diffuse,color("0,0,0,1");texturewrapping,1;setsize,SCREEN_WIDTH,60;CenterX;y,SCREEN_TOP+30;diffusebottomedge,1,1,1,0);
};
Def.Quad{
InitCommand=cmd(diffuse,color("0,0,0,1");texturewrapping,1;setsize,SCREEN_WIDTH,60;CenterX;y,SCREEN_BOTTOM-30;diffusetopedge,1,1,1,0);
};
};
1 change: 1 addition & 0 deletions BGAnimations/ScreenDemonstration in.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_fade in
1 change: 1 addition & 0 deletions BGAnimations/ScreenDemonstration out.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_fade out
11 changes: 11 additions & 0 deletions BGAnimations/ScreenDemonstration overlay/default.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return Def.ActorFrame{
Def.Quad{
InitCommand=cmd(Center;setsize,SCREEN_WIDTH,120;diffusealpha,0.25);
};
LoadActor("demonstration")..{
InitCommand=cmd(CenterX;y,SCREEN_CENTER_Y-40;diffuseblink;effectperiod,1);
};
LoadActor("gameover")..{
InitCommand=cmd(CenterX;y,SCREEN_CENTER_Y+40;diffuseblink;effectperiod,1);
};
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions BGAnimations/ScreenEvaluation background.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_shared background pattern2
123 changes: 123 additions & 0 deletions BGAnimations/ScreenEvaluation decorations/default.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
local t = LoadFallbackB();

t[#t+1] = StandardDecorationFromFileOptional("StyleIcon","StyleIcon");
t[#t+1] = StandardDecorationFromFile("StageDisplay","StageDisplay");

local function GraphDisplay( pn )
local t = Def.ActorFrame {
Def.GraphDisplay {
InitCommand=cmd(Load,"GraphDisplay"..ToEnumShortString(pn););
BeginCommand=function(self)
local ss = SCREENMAN:GetTopScreen():GetStageStats();
self:Set( ss, ss:GetPlayerStageStats(pn) );
self:player( pn );
end
};
};
return t;
end

-- combo graph
local function ComboGraph( pn )
local t = Def.ActorFrame {
Def.ComboGraph {
InitCommand=cmd(Load,"ComboGraph"..ToEnumShortString(pn););
BeginCommand=function(self)
local ss = SCREENMAN:GetTopScreen():GetStageStats();
self:Set( ss, ss:GetPlayerStageStats(pn) );
self:player( pn );
end
};
};
return t;
end

if ShowStandardDecoration("GraphDisplay") and GAMESTATE:GetPlayMode() ~= "PlayMode_Rave" then
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
t[#t+1] = StandardDecorationFromTable( "GraphDisplay" .. ToEnumShortString(pn), GraphDisplay(pn) );
end
end

if ShowStandardDecoration("ComboGraph") then
for pn in ivalues(PlayerNumber) do
t[#t+1] = StandardDecorationFromTable("ComboGraph"..ToEnumShortString(pn), ComboGraph(pn));
end;
end;

-- difficulty display
if ShowStandardDecoration("DifficultyIcon") then
if GAMESTATE:GetPlayMode() == 'PlayMode_Rave' then
-- in rave mode, we always have two players.
else
-- otherwise, we only want the human players
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
local diffIcon = LoadActor(THEME:GetPathG(Var "LoadingScreen", "DifficultyIcon"), pn)
t[#t+1] = StandardDecorationFromTable("DifficultyIcon" .. ToEnumShortString(pn), diffIcon);
end
end
end

for pn in ivalues(PlayerNumber) do
local MetricsName = "MachineRecord" .. PlayerNumberToString(pn);
t[#t+1] = LoadActor( THEME:GetPathG(Var "LoadingScreen", "MachineRecord"), pn ) .. {
InitCommand=function(self)
self:player(pn);
self:name(MetricsName);
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
end;
};
end

for pn in ivalues(PlayerNumber) do
local MetricsName = "PersonalRecord" .. PlayerNumberToString(pn);
t[#t+1] = LoadActor( THEME:GetPathG(Var "LoadingScreen", "PersonalRecord"), pn ) .. {
InitCommand=function(self)
self:player(pn);
self:name(MetricsName);
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
end;
};
end
t[#t+1] = Def.ActorFrame {
Condition=GAMESTATE:HasEarnedExtraStage() and GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2();
InitCommand=cmd(draworder,105);
LoadActor( THEME:GetPathS("ScreenEvaluation","try Extra1" ) ) .. {
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
OnCommand=cmd(play);
};
};

t[#t+1] = Def.ActorFrame {
Condition=GAMESTATE:HasEarnedExtraStage() and GAMESTATE:IsExtraStage() and not GAMESTATE:IsExtraStage2();
InitCommand=cmd(draworder,105);
LoadActor( THEME:GetPathS("ScreenEvaluation","try Extra1" ) ) .. {
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
OnCommand=cmd(play);
};
-- LoadActor( THEME:GetPathG("ScreenStageInformation","Stage extra1" ) ) .. {
-- Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
-- InitCommand=cmd(Center);
-- OnCommand=cmd(diffusealpha,0;zoom,0.85;bounceend,1;zoom,1;diffusealpha,1;sleep,0;glow,Color("White");decelerate,1;glow,Color("Invisible");smooth,0.35;zoom,0.25;y,SCREEN_BOTTOM-72);
-- };
};
t[#t+1] = Def.ActorFrame {
Condition=GAMESTATE:HasEarnedExtraStage() and not GAMESTATE:IsExtraStage() and GAMESTATE:IsExtraStage2();
InitCommand=cmd(draworder,105);
LoadActor( THEME:GetPathS("ScreenEvaluation","try Extra2" ) ) .. {
Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
OnCommand=cmd(play);
};
-- LoadActor( THEME:GetPathG("ScreenStageInformation","Stage extra2" ) ) .. {
-- Condition=THEME:GetMetric( Var "LoadingScreen","Summary" ) == false;
-- InitCommand=cmd(Center);
-- OnCommand=cmd(diffusealpha,0;zoom,0.85;bounceend,1;zoom,1;diffusealpha,1;sleep,0;glow,Color("White");decelerate,1;glow,Color("Invisible");smooth,0.35;zoom,0.25;y,SCREEN_BOTTOM-72);
-- };
};

if ShowStandardDecoration("TryExtraStage") then
if GAMESTATE:HasEarnedExtraStage() then
t[#t+1] = StandardDecorationFromFile("TryExtraStage","TryExtraStage")
end
end

return t
Loading

0 comments on commit b618f0c

Please sign in to comment.