mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 18:49:03 -06:00
Added the ability to toggle next piece SFX
This commit is contained in:
parent
06cbec4bc8
commit
f4779c9847
@ -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"}}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user