Skip to content

Commit

Permalink
update some playerinfo values on screengameplay if course mode is bei…
Browse files Browse the repository at this point in the history
…ng used
  • Loading branch information
MinaciousGrace committed May 15, 2017
1 parent 8bf3b3d commit f9c3284
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ local t = Def.ActorFrame{
},
LoadFont("Common Large") .. {
InitCommand=cmd(xy,PlayerFrameX+90,PlayerFrameY+24;halign,0;zoom,0.45;maxwidth,120;diffuse,getMainColor('positive')),
BeginCommand=function(self)
SetCommand=function(self)
self:settext(getDifficulty(GAMESTATE:GetCurrentSteps(PLAYER_1):GetDifficulty()))
self:diffuse(getDifficultyColor(GetCustomDifficulty(GAMESTATE:GetCurrentSteps(PLAYER_1):GetStepsType(),GAMESTATE:GetCurrentSteps(PLAYER_1):GetDifficulty())))
end,
DoneLoadingNextSongMessageCommand=cmd(queuecommand,"Set")
},
LoadFont("Common Large") .. {
InitCommand=cmd(xy,PlayerFrameX+52,PlayerFrameY+28;halign,0;zoom,0.75;maxwidth,50),
BeginCommand=function(self)
SetCommand=function(self)
local meter = GAMESTATE:GetCurrentSteps(PLAYER_1):GetMSD(getCurRateValue(),1)
self:settextf("%05.2f",meter)
self:diffuse(ByMSD(meter))
end,
DoneLoadingNextSongMessageCommand=cmd(queuecommand,"Set")
},
LoadFont("Common Normal") .. {
InitCommand=cmd(xy,PlayerFrameX+91,PlayerFrameY+39;halign,0;zoom,0.4;maxwidth,SCREEN_WIDTH*0.8),
Expand Down

0 comments on commit f9c3284

Please sign in to comment.