From dba177400ed3bc9f3c123a42c23b7b92706f66d6 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Sun, 21 Nov 2021 17:03:10 +0100 Subject: [PATCH] + uc/puc diff chain colors setting --- config-definitions.json | 9 +++++++++ scripts/gameplay/chain.lua | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/config-definitions.json b/config-definitions.json index 844db8a..4236561 100644 --- a/config-definitions.json +++ b/config-definitions.json @@ -46,5 +46,14 @@ "label": "Turn on Rasis", "type": "bool", "default": false + }, + + "separator_e": {}, + "Gameplay": { "type": "label" }, + + "gameplay_ucDifferentColor": { + "label": "Use different colors for UC and PUC chain numbers", + "type": "bool", + "default": false } } diff --git a/scripts/gameplay/chain.lua b/scripts/gameplay/chain.lua index 1076974..ed2ffb6 100644 --- a/scripts/gameplay/chain.lua +++ b/scripts/gameplay/chain.lua @@ -81,6 +81,10 @@ local render = function (deltaTime, comboState, combo, critLineCenterX, critLine chainNumbers = chainNumbersPUC --puc elseif comboState == 1 then chainNumbers = chainNumbersUC --uc + + if (not game.GetSkinSetting('gameplay_ucDifferentColor')) then + chainNumbers = chainNumbersPUC -- force the PUC numbers in case the setting is turned off + end end -- \_ chain _/