Skip to content

Commit

Permalink
replace accidentally removed codeblock for handling oneshot/permamirror
Browse files Browse the repository at this point in the history
also fixes a bug with chartpreview sound resetting unintentionally
  • Loading branch information
MinaciousGrace committed Nov 28, 2018
1 parent d9b59e3 commit 3c2c634
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -23,7 +23,13 @@ local t =
OnCommand = function(self)
self:bouncebegin(0.2):xy(0, 0):diffusealpha(1)
end,
CurrentSongChanged = function()
CurrentSongChangedMessageCommand = function()
-- This will disable mirror when switching songs if OneShotMirror is enabled or if permamirror is flagged on the chart (it is enabled if so in screengameplayunderlay/default)
if playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).OneShotMirror or profile:IsCurrentChartPermamirror() then
local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred"
local playeroptions = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions(modslevel)
playeroptions:Mirror(false)
end
if getTabIndex() ~= 0 then
boolthatgetssettotrueonsongchangebutonlyifonatabthatisntthisone = true
end
Expand Down

0 comments on commit 3c2c634

Please sign in to comment.