Skip to content

Commit

Permalink
update rates at a more correct time
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 26, 2024
1 parent 7419c3f commit a97aaf6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local AvatarYP1 = 44

local bpms = {}
if GAMESTATE:GetCurrentSong() then
bpms = GAMESTATE:GetCurrentSong():GetDisplayBpms(false)
bpms = GAMESTATE:GetCurrentSong():GetDisplayBpms(true)
bpms[1] = math.round(bpms[1])
bpms[2] = math.round(bpms[2])
end
Expand Down Expand Up @@ -114,6 +114,9 @@ t[#t + 1] =
RateListOptionChangedMessageCommand = function(self, params)
self:finishtweening():sleep(0.01):queuecommand("DelayedThing")
end,
RateListOptionSavedMessageCommand = function(self, params)
self:finishtweening():sleep(0.01):queuecommand("DelayedThing")
end,
DelayedThingCommand = function(self)
self:playcommand("SpeedChoiceChanged", {pn = PLAYER_1, mode = self.mode, speed = self.speed})
end,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ t[#t + 1] = UIElements.TextToolTip(1, 1, "Common Large") .. {
capWideScale(get43size(360), 360) / capWideScale(get43size(0.45), 0.45)
)
end,
CurrentRateChangedMessageCommand = function(self)
self:queuecommand("MintyFresh")
end,
MintyFreshCommand = function(self)
if song then
self:settext(getCurRateDisplayString())
Expand Down
2 changes: 2 additions & 0 deletions Themes/_fallback/Scripts/02 ThemePrefs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ function RateList()
GAMESTATE:GetSongOptionsObject("ModsLevel_Preferred"):MusicRate(r)
GAMESTATE:GetSongOptionsObject("ModsLevel_Song"):MusicRate(r)
GAMESTATE:GetSongOptionsObject("ModsLevel_Current"):MusicRate(r)
MESSAGEMAN:Broadcast("RateListOptionSaved", {rate = getCurRateValue()})
MESSAGEMAN:Broadcast("CurrentRateChanged")
break
end
end
Expand Down

0 comments on commit a97aaf6

Please sign in to comment.