Skip to content

Commit

Permalink
allow changing target percent on wifetwirl goal percent display
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 8, 2017
1 parent 2008720 commit cfc9719
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,24 @@ t[#t+1] = LoadFont("Common Large") .. {
RefreshChartInfoMessageCommand=cmd(queuecommand,"Set"),
}

t[#t+1] = Def.Quad{
InitCommand=cmd(xy,frameX+135,frameY+45;zoomto,50,40;diffusealpha,0),
MouseLeftClickMessageCommand=function(self)
local sg = profile:GetEasiestGoalForChartAndRate(steps:GetChartKey(), getCurRateValue())
if sg and isOver(self) and update then
sg:SetPercent(sg:GetPercent()+0.01)
MESSAGEMAN:Broadcast("RefreshChartInfo")
end
end,
MouseRightClickMessageCommand=function(self)
local sg = profile:GetEasiestGoalForChartAndRate(steps:GetChartKey(), getCurRateValue())
if sg and isOver(self) and update then
sg:SetPercent(sg:GetPercent()-0.01)
MESSAGEMAN:Broadcast("RefreshChartInfo")
end
end
}

-- perhaps need this perhaps not
-- t[#t+1] = LoadFont("Common Large") .. {
-- InitCommand=cmd(xy,frameX+135,frameY+65;zoom,0.3;halign,0.5;valign,1),
Expand Down

0 comments on commit cfc9719

Please sign in to comment.