Skip to content

Commit

Permalink
Account for steps first/lastsecond in progress bar (replays)
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Jul 9, 2020
1 parent 3130e40 commit 4cffbec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ local replaySlider =
Widg.SliderBase {
width = width,
height = height,
min = GAMESTATE:GetCurrentSong():GetFirstSecond(),
min = GAMESTATE:GetCurrentSteps():GetFirstSecond(),
visible = true,
max = GAMESTATE:GetCurrentSong():GetLastSecond(),
max = GAMESTATE:GetCurrentSteps():GetLastSecond(),
onInit = function(slider)
slider.actor:diffusealpha(0)
end,
Expand Down Expand Up @@ -1157,14 +1157,14 @@ local pm =
--self:zoomto(MovableValues.PracticeCDGraphWidth, MovableValues.PracticeCDGraphHeight)
end,
BeginCommand = function(self)
musicratio = GAMESTATE:GetCurrentSong():GetLastSecond() / (wodth)
musicratio = GAMESTATE:GetCurrentSteps():GetLastSecond() / (wodth)
SCREENMAN:GetTopScreen():AddInputCallback(duminput)
cd:GetChild("cdbg"):diffusealpha(0)
self:SortByDrawOrder()
self:queuecommand("GraphUpdate")
end,
PracticeModeReloadMessageCommand = function(self)
musicratio = GAMESTATE:GetCurrentSong():GetLastSecond() / wodth
musicratio = GAMESTATE:GetCurrentSteps():GetLastSecond() / wodth
end,
Def.Quad {
Name = "BG",
Expand Down

0 comments on commit 4cffbec

Please sign in to comment.