diff --git a/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourse overlay.redir b/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourse overlay.redir index d0ebdc9b73..511d786565 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourse overlay.redir +++ b/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourse overlay.redir @@ -1 +1 @@ -_shared edit courses.xml +_shared edit courses diff --git a/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourseEntry overlay.redir b/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourseEntry overlay.redir index d0ebdc9b73..511d786565 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourseEntry overlay.redir +++ b/stepmania/Themes/default/BGAnimations/ScreenOptionsEditCourseEntry overlay.redir @@ -1 +1 @@ -_shared edit courses.xml +_shared edit courses diff --git a/stepmania/Themes/default/BGAnimations/ScreenOptionsManageCourses overlay.redir b/stepmania/Themes/default/BGAnimations/ScreenOptionsManageCourses overlay.redir index d0ebdc9b73..511d786565 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenOptionsManageCourses overlay.redir +++ b/stepmania/Themes/default/BGAnimations/ScreenOptionsManageCourses overlay.redir @@ -1 +1 @@ -_shared edit courses.xml +_shared edit courses diff --git a/stepmania/Themes/default/BGAnimations/_shared edit courses.lua b/stepmania/Themes/default/BGAnimations/_shared edit courses.lua new file mode 100644 index 0000000000..54f9630a4b --- /dev/null +++ b/stepmania/Themes/default/BGAnimations/_shared edit courses.lua @@ -0,0 +1,37 @@ +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); + children = { + Def.BitmapText { + Font="Common Normal"; + Text=""; + 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; + }; + Def.BitmapText { + Font="Common Normal"; + Text=""; + 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 { children = { frame } };