Files
itgmania212121/stepmania/Themes/default/BGAnimations/_shared edit courses.lua
T

32 lines
1020 B
Lua
Raw Normal View History

2007-02-10 22:45:25 +00:00
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);
2007-05-04 18:41:55 +00:00
LoadFont("Common", "normal") .. {
2009-04-03 16:22:22 +00:00
OnCommand=cmd(horizalign,left;x,-80;y,-130;playcommand,"CurrentCourseChanged");
2007-05-04 18:41:55 +00:00
CurrentCourseChangedMessageCommand=function(self)
local c = GAMESTATE:GetCurrentCourse()
if c then
self:settext( c:GetDisplayFullTitle() )
else
self:settext( "" )
end
end;
};
LoadFont("Common", "normal") .. {
2009-04-03 16:22:22 +00:00
OnCommand=cmd(horizalign,left;x,-80;y,-100;playcommand,"CurrentTrailP1Changed");
2007-05-04 18:41:55 +00:00
CurrentTrailP1ChangedMessageCommand=function(self)
local t = GAMESTATE:GetCurrentTrail( PLAYER_1 )
if t then
2008-03-24 12:50:45 +00:00
local st = GameManager.StepsTypeToLocalizedString( t:GetStepsType() )
2007-05-04 18:41:55 +00:00
local cd = CourseDifficultyToLocalizedString( t:GetDifficulty() )
self:settext( st .. ", " .. cd )
else
self:settext( "" )
end
end;
2007-02-10 22:45:25 +00:00
};
};
2007-05-04 18:41:55 +00:00
return Def.ActorFrame { frame };