Skip to content

Commit

Permalink
add main skillset to score display for scores
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 23, 2018
1 parent 296f30a commit 1dab361
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ local l = Def.ActorFrame{ -- stuff inside the frame.. so we can move it all at o
{
Name = "Score",
InitCommand = function(self)
self:xy(55, 33):zoom(0.6):halign(0):settext("")
self:xy(55, 30):zoom(0.6):halign(0):settext("")
end,
DisplayCommand = function(self)
if score:GetWifeScore() == 0 then
Expand All @@ -346,11 +346,26 @@ local l = Def.ActorFrame{ -- stuff inside the frame.. so we can move it all at o
end
},

LoadFont("Common Normal") ..
{
Name = "Score",
InitCommand = function(self)
self:xy(55, 43):zoom(0.5):halign(0):settext("")
end,
DisplayCommand = function(self)
if score:GetWifeScore() == 0 then
self:settext("")
else
self:settext(GAMESTATE:GetCurrentSteps(PLAYER_1):GetRelevantSkillsetsByMSDRank(getCurRateValue(), 1))
end
end
},

LoadFont("Common Normal") ..
{
Name = "ClearType",
InitCommand = function(self)
self:y(41):zoom(0.5):halign(0):halign(0):settext("No Play"):diffuse(
self:y(43):zoom(0.5):halign(0):settext("No Play"):diffuse(
color(colorConfig:get_data().clearType["NoPlay"])
)
end,
Expand Down

0 comments on commit 1dab361

Please sign in to comment.