Skip to content

Commit

Permalink
Show Chord Cohesion text only when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kangalio committed Jun 9, 2019
1 parent 1206987 commit a5545c0
Showing 1 changed file with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,26 +504,24 @@ function scoreBoard(pn, position)
}
end

t[#t + 1] =
if score:GetChordCohesion() == true then
t[#t + 1] =
LoadFont("Common Large") ..
{
InitCommand = function(self)
self:xy(frameX + 5, frameY + 210):zoom(0.25):halign(0)
end,
BeginCommand = function(self)
self:queuecommand("Set")
end,
ScoreChangedMessageCommand = function(self)
self:queuecommand("Set")
end,
SetCommand = function(self)
if score:GetChordCohesion() == true then
self:settext("Chord Cohesion: Yes")
else
self:settext("Chord Cohesion: No")
{
InitCommand = function(self)
self:xy(frameX + 5, frameY + 210):zoom(0.25):halign(0)
end,
BeginCommand = function(self)
self:queuecommand("Set")
end,
ScoreChangedMessageCommand = function(self)
self:queuecommand("Set")
end,
SetCommand = function(self)
self:settext("Chord Cohesion on")
end
end
}
}
end

--[[
The following section first adds the ratioText and the maRatio. Then the paRatio is added and positioned. The right
Expand Down

0 comments on commit a5545c0

Please sign in to comment.