Skip to content

Commit

Permalink
fix permamirror not turning off mirror after exiting song
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 23, 2021
1 parent 3b9d0b1 commit 23d4ab8
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ local t = Def.ActorFrame {
-- it sets to nil properly by itself
displayScore = GetDisplayScore()

-- could not think of a good place to put this
-- this turns off mirror for the specific situation if you just finished a permamirrored chart
-- i have no idea why it works but it does
-- (shouldnt turning mirror off every time song changes break regular mirror? it doesnt)
if GetPlayerOrMachineProfile(PLAYER_1):IsCurrentChartPermamirror() then
local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred"
local playeroptions = GAMESTATE:GetPlayerState():GetPlayerOptions(modslevel)
playeroptions:Mirror(false)
end

-- cascade visual update to everything
self:playcommand("Set", {song = params.song, group = params.group, hovered = params.hovered, steps = params.steps})
end,
Expand All @@ -35,7 +45,7 @@ local t = Def.ActorFrame {
ChangedStepsMessageCommand = function(self, params)
displayScore = GetDisplayScore()
self:playcommand("Set", {song = GAMESTATE:GetCurrentSong(), hovered = lastHovered, steps = params.steps})
end
end,
}

local ratios = {
Expand Down

0 comments on commit 23d4ab8

Please sign in to comment.