diff --git a/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua b/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua index fd0f82ef87..0311def935 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua +++ b/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua @@ -1,7 +1,66 @@ local font = LoadFont( "_zeroesthree" ); local frame = LoadActor( "_score frame" ); local text = GAMESTATE:GetPlayMode() == 'PlayMode_Oni' and "time" or "score"; + +local function DifficultyLabelText(pn) + local yNormal = SCREEN_CENTER_Y+175; + local yReverse = SCREEN_CENTER_Y-189; + local xNormal = 286; + local xReverse = 310; + + local diffText = font .. { + InitCommand=function(self) + -- check to see if player is using reverse and set position accordingly. + if GAMESTATE:PlayerIsUsingModifier(pn,"reverse") then + if pn == PLAYER_1 then + -- player 1 reverse position + self:x(SCREEN_CENTER_X-xReverse); + self:y(yReverse); + else + -- player 2 reverse position + self:x(SCREEN_CENTER_X+xReverse); + self:y(yReverse); + end; + else + if pn == PLAYER_1 then + -- player 1 normal position + self:x(SCREEN_CENTER_X-xNormal); + self:y(yNormal); + else + -- player 2 normal position + self:x(SCREEN_CENTER_X+xNormal); + self:y(yNormal); + end; + end; + + -- set align based on player + if pn == PLAYER_1 then self:horizalign('HorizAlign_Left'); + else self:horizalign('HorizAlign_Right'); + end; + + -- other commands + self:zoom(0.75); + self:shadowlength(0); + end; + OnCommand=cmd(playcommand,'Update'); + CurrentStepsP1ChangedMessageCommand=cmd(playcommand,'Update'); + CurrentStepsP2ChangedMessageCommand=cmd(playcommand,'Update'); + UpdateCommand=function(self) + self:settext(DifficultyToLocalizedString(GAMESTATE:GetCurrentSteps(pn):GetDifficulty())); + end; + Condition=GAMESTATE:IsSideJoined(pn) == true or GAMESTATE:GetPlayMode() == 'PlayMode_Rave'; + }; + + return diffText; +end; + return Def.ActorFrame { + + -- text on difficulty labels + DifficultyLabelText(PLAYER_1); + DifficultyLabelText(PLAYER_2); + + -- text on bottom of score frames Def.ActorFrame { frame; font .. { diff --git a/stepmania/Themes/default/Graphics/ScreenGameplay difficulty icons 2x6.png b/stepmania/Themes/default/Graphics/ScreenGameplay difficulty icons 2x6.png index f91f696422..9b95de2f62 100644 Binary files a/stepmania/Themes/default/Graphics/ScreenGameplay difficulty icons 2x6.png and b/stepmania/Themes/default/Graphics/ScreenGameplay difficulty icons 2x6.png differ diff --git a/stepmania/Themes/default/Languages/en.ini b/stepmania/Themes/default/Languages/en.ini index 8ea630a048..b03d12300d 100644 --- a/stepmania/Themes/default/Languages/en.ini +++ b/stepmania/Themes/default/Languages/en.ini @@ -59,12 +59,12 @@ Oni=Oni Survival=Survival [Difficulty] -Beginner=BEGINNER -Challenge=CHALLENGE -Easy=LIGHT -Edit=EDIT -Hard=HEAVY -Medium=STANDARD +Beginner=Beginner +Challenge=Expert +Easy=Easy +Edit=Edit +Hard=Hard +Medium=Medium [EditInstallations] You must type a program directory before clicking Add.=You must type a program directory before clicking Add. diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index 6a5b4a9274..2d1aec04e5 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -925,15 +925,15 @@ DifficultyP1X= DifficultyP1Y= DifficultyP1OnCommand= DifficultyP1OffCommand=linear,0.5;addx,-200 -DifficultyP1SetReverseCommand=x,SCREEN_CENTER_X-254;y,SCREEN_CENTER_Y-196;addx,-200;linear,0.5;addx,200;cropbottom,0;croptop,0.5 -DifficultyP1SetNoReverseCommand=x,SCREEN_CENTER_X-230;y,SCREEN_CENTER_Y+183;addx,-200;linear,0.5;addx,200;cropbottom,0.5;croptop,0 +DifficultyP1SetReverseCommand=x,SCREEN_CENTER_X-254;y,SCREEN_CENTER_Y-196;cropbottom,0;croptop,0.5;addx,-200;linear,0.5;addx,200 +DifficultyP1SetNoReverseCommand=x,SCREEN_CENTER_X-230;y,SCREEN_CENTER_Y+183;cropbottom,0.5;croptop,0;addx,-200;linear,0.5;addx,200 DifficultyP2X= DifficultyP2Y= DifficultyP2OnCommand= DifficultyP2OffCommand=linear,0.5;addx,200 -DifficultyP2SetReverseCommand=x,SCREEN_CENTER_X+254;y,SCREEN_CENTER_Y-196;addx,-200;linear,0.5;addx,200;cropbottom,0;croptop,0.5 -DifficultyP2SetNoReverseCommand=x,SCREEN_CENTER_X+230;y,SCREEN_CENTER_Y+183;addx,-200;linear,0.5;addx,200;cropbottom,0.5;croptop,0 +DifficultyP2SetReverseCommand=x,SCREEN_CENTER_X+254;y,SCREEN_CENTER_Y-196;cropbottom,0;croptop,0.5;addx,-200;linear,0.5;addx,200 +DifficultyP2SetNoReverseCommand=x,SCREEN_CENTER_X+230;y,SCREEN_CENTER_Y+183;cropbottom,0.5;croptop,0;addx,-200;linear,0.5;addx,200 LyricsSetNoReverseCommand=x,SCREEN_CENTER_X+0;y,SCREEN_CENTER_Y+160 LyricsSetReverseCommand=x,SCREEN_CENTER_X+0;y,SCREEN_CENTER_Y-140 # This is used if one player is in reverse and the other isn't.