Files
itgmania212121/stepmania/Themes/default/BGAnimations/_shared edit courses.lua
T
Glenn Maynard 1af23e291e simplify
2007-05-04 18:41:55 +00:00

32 lines
1.0 KiB
Lua

local frame = Def.ActorFrame
{
OnCommand=cmd(x,SCREEN_CENTER_X+180;y,SCREEN_CENTER_Y);--;addx,SCREEN_WIDTH/2;decelerate,0.5;addx,-SCREEN_WIDTH/2);
OffCommand=cmd(accelerate,0.5;addx,SCREEN_WIDTH/2);
LoadFont("Common", "normal") .. {
OnCommand=cmd(horizalign,left;x,-80;y,-130;zoom,0.65;playcommand,"CurrentCourseChanged");
CurrentCourseChangedMessageCommand=function(self)
local c = GAMESTATE:GetCurrentCourse()
if c then
self:settext( c:GetDisplayFullTitle() )
else
self:settext( "" )
end
end;
};
LoadFont("Common", "normal") .. {
OnCommand=cmd(horizalign,left;x,-80;y,-100;zoom,0.65;playcommand,"CurrentTrailP1Changed");
CurrentTrailP1ChangedMessageCommand=function(self)
local t = GAMESTATE:GetCurrentTrail( PLAYER_1 )
if t then
local st = GAMEMAN:StepsTypeToLocalizedString( t:GetStepsType() )
local cd = CourseDifficultyToLocalizedString( t:GetDifficulty() )
self:settext( st .. ", " .. cd )
else
self:settext( "" )
end
end;
};
};
return Def.ActorFrame { frame };