+ skin setting for bpm dependent animations

This commit is contained in:
FajsiEx 2021-08-26 19:04:20 +02:00
parent efa50e0c1a
commit 976edebe03
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,17 @@
{ {
"User information": {"type": "label"},
"username": { "username": {
"type": "text", "type": "text",
"label": "Username (max 8 characters)", "label": "Username (max 8 characters)",
"default": "GUEST" "default": "GUEST"
},
"separator_a": {},
"Animations": {"type": "label"},
"animations_affectWithBPM": {
"type": "bool",
"label": "Affect speed of some animations with the current song's BPM",
"default": false
} }
} }

View File

@ -646,7 +646,7 @@ function tickTransitions(deltaTime)
-- Flash transition -- Flash transition
if transitionFlashScale < 1 then if transitionFlashScale < 1 then
local songBpm = 120; local songBpm = 120;
if (songwheel.songs[selectedIndex]) then if (songwheel.songs[selectedIndex] and game.GetSkinSetting('animations_affectWithBPM')) then
songBpm = songwheel.songs[selectedIndex].bpm; songBpm = songwheel.songs[selectedIndex].bpm;
-- Is a variable BPM -- Is a variable BPM