Files
itgmania212121/Themes/default/BGAnimations/ScreenSelectMusic overlay.lua
T

45 lines
1.6 KiB
Lua
Raw Normal View History

2017-08-08 01:07:34 -06:00
local t = Def.ActorFrame {};
2017-08-08 01:07:34 -06:00
-- Sort order
t[#t+1] = Def.ActorFrame {
2018-08-14 14:19:02 -06:00
InitCommand=cmd(x,SCREEN_RIGHT-290;y,SCREEN_TOP+49);
OffCommand=cmd(linear,0.3;diffusealpha,0);
2017-08-08 01:07:34 -06:00
LoadActor(THEME:GetPathG("", "_sortFrame")) .. {
InitCommand=cmd(diffusealpha,0.9;zoom,1.5);
OnCommand=function(self)
2018-02-08 23:35:28 -06:00
self:diffuse(ColorMidTone(ScreenColor(SCREENMAN:GetTopScreen():GetName())));
2017-08-08 01:07:34 -06:00
end
};
2017-08-08 01:07:34 -06:00
LoadFont("Common Condensed") .. {
2018-08-14 14:19:02 -06:00
InitCommand=cmd(zoom,1;diffuse,color("#FFFFFF");diffusealpha,0.85;horizalign,left;addx,-115);
2017-08-08 01:07:34 -06:00
OnCommand=cmd(queuecommand,"Set");
ChangedLanguageDisplayMessageCommand=cmd(queuecommand,"Set");
SetCommand=function(self)
self:settext("SORT:");
self:queuecommand("Refresh");
end;
};
LoadFont("Common Condensed") .. {
2018-08-14 14:19:02 -06:00
InitCommand=cmd(zoom,1;maxwidth,SCREEN_WIDTH;addx,115;diffuse,color("#FFFFFF");uppercase,true;horizalign,right;maxwidth,157);
2017-08-08 01:07:34 -06:00
OnCommand=cmd(queuecommand,"Set");
SortOrderChangedMessageCommand=cmd(queuecommand,"Set");
ChangedLanguageDisplayMessageCommand=cmd(queuecommand,"Set");
SetCommand=function(self)
local sortorder = GAMESTATE:GetSortOrder();
if sortorder then
self:finishtweening();
self:smooth(0.4);
self:diffusealpha(0);
self:settext(SortOrderToLocalizedString(sortorder));
self:queuecommand("Refresh"):stoptweening():diffusealpha(0):smooth(0.3):diffusealpha(1)
else
self:settext("");
self:queuecommand("Refresh");
end
end;
};
2014-08-31 23:26:23 -07:00
};
2014-08-30 16:14:03 -07:00
2017-08-08 01:07:34 -06:00
return t