Added the ability to toggle next piece SFX

This commit is contained in:
Ishaan Bhardwaj 2020-12-05 17:32:15 -05:00
parent 06cbec4bc8
commit f4779c9847
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ ConfigScene.options = {
{"manlock", "Manual locking",{"Per ruleset","Per gamemode","Harddrop", "Softdrop"}}, {"manlock", "Manual locking",{"Per ruleset","Per gamemode","Harddrop", "Softdrop"}},
{"piece_colour", "Piece Colours", {"Per ruleset","Arika" ,"TTC"}}, {"piece_colour", "Piece Colours", {"Per ruleset","Arika" ,"TTC"}},
{"world_reverse","A Button Rotation", {"Left" ,"Auto" ,"Right"}}, {"world_reverse","A Button Rotation", {"Left" ,"Auto" ,"Right"}},
{"next_se", "Next Piece SFX", {"On", "Off"}},
{"das_last_key", "DAS Switch", {"Default", "Instant"}}, {"das_last_key", "DAS Switch", {"Default", "Instant"}},
{"synchroes_allowed", "Synchroes", {"Per ruleset", "On", "Off"}} {"synchroes_allowed", "Synchroes", {"Per ruleset", "On", "Off"}}
} }

View File

@ -415,7 +415,7 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next
table.remove(self.next_queue, 1) table.remove(self.next_queue, 1)
table.insert(self.next_queue, self:getNextPiece(ruleset)) table.insert(self.next_queue, self:getNextPiece(ruleset))
end end
self:playNextSound() if config.gamesettings.next_se == 1 then self:playNextSound() end
end end
function GameMode:playNextSound() function GameMode:playNextSound()