From 976edebe03302651db263d5808789d8c1fb1edd6 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Thu, 26 Aug 2021 19:04:20 +0200 Subject: [PATCH] + skin setting for bpm dependent animations --- config-definitions.json | 10 ++++++++++ scripts/songselect/songwheel.lua | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config-definitions.json b/config-definitions.json index d193280..daa4acf 100644 --- a/config-definitions.json +++ b/config-definitions.json @@ -1,7 +1,17 @@ { + "User information": {"type": "label"}, "username": { "type": "text", "label": "Username (max 8 characters)", "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 } } diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 67a2845..164e31c 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -646,7 +646,7 @@ function tickTransitions(deltaTime) -- Flash transition if transitionFlashScale < 1 then local songBpm = 120; - if (songwheel.songs[selectedIndex]) then + if (songwheel.songs[selectedIndex] and game.GetSkinSetting('animations_affectWithBPM')) then songBpm = songwheel.songs[selectedIndex].bpm; -- Is a variable BPM