Files
itgmania212121/Themes/default/BGAnimations/ScreenEvaluation overlay.lua
T
ListenerJubatus 73999c631d Evaluation adjustments
Move Holds count to sidebars, add song title display, move evaluation
stagedisplay to header, adjust placement of judgment counts/timing and
life difficulty/options
2018-01-18 19:19:31 -06:00

38 lines
1.3 KiB
Lua

if not GAMESTATE:IsCourseMode() then
return Def.ActorFrame {
LoadActor(THEME:GetPathG("ScreenEvaluation", "StageDisplay")) .. {
InitCommand=cmd(x,SCREEN_RIGHT-290;y,SCREEN_TOP+49;);
OffCommand=cmd(linear,0.3;diffusealpha,0;);
}
}
else
return Def.ActorFrame {
InitCommand=cmd(x,SCREEN_RIGHT-290;y,SCREEN_TOP+49;);
OffCommand=cmd(linear,0.3;diffusealpha,0;);
LoadActor(THEME:GetPathG("", "_sortFrame")) .. {
InitCommand=cmd(diffusealpha,0.9;zoom,1.5);
BeginCommand=function(self)
self:playcommand("Set")
end;
SetCommand=function(self)
local curStage = GAMESTATE:GetCurrentStage();
self:diffuse(StageToColor(curStage));
end
};
LoadFont("Common Italic Condensed") .. {
InitCommand=cmd(y,-1;zoom,1;shadowlength,1;uppercase,true;);
BeginCommand=function(self)
self:playcommand("Set")
end;
CurrentSongChangedMessageCommand= cmd(playcommand,"Set"),
SetCommand=function(self)
local curStage = GAMESTATE:GetCurrentStage();
local course = GAMESTATE:GetCurrentCourse()
self:settext(string.upper(ToEnumShortString( course:GetCourseType() )))
-- StepMania is being stupid so we have to do this here;
self:diffuse(StageToColor(curStage)):diffusetopedge(ColorLightTone(StageToColor(curStage)));
self:diffusealpha(0):smooth(0.3):diffusealpha(1);
end;
};
}
end;