From 0951fc029c0c04a1a20190b1cad30c5099b351b8 Mon Sep 17 00:00:00 2001 From: Hersi Date: Thu, 23 Nov 2023 07:29:10 +0100 Subject: [PATCH] add effect radar toggle in skin settings --- config-definitions.json | 9 +++++++++ scripts/songselect/songwheel.lua | 3 +++ 2 files changed, 12 insertions(+) diff --git a/config-definitions.json b/config-definitions.json index d2b5376..91af2dd 100644 --- a/config-definitions.json +++ b/config-definitions.json @@ -97,5 +97,14 @@ "label": "Show debug information (sometimes in the middle of the screen when you're playing)", "type": "bool", "default": false + }, + + "separator_g": {}, + "Experimental features": { "type": "label" }, + + "songselect_showEffectRadar": { + "label": "Show Effect Radar for compatible songs (VERY WIP)", + "type": "bool", + "default": false } } diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 34754ea..030f687 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -114,6 +114,8 @@ game.LoadSkinSample('song_wheel/diff_change.wav') local scoreNumbers = Numbers.load_number_image("score_num") local difficultyNumbers = Numbers.load_number_image("diff_num") +local songselect_showEffectRadar = game.GetSkinSetting("songselect_showEffectRadar") or false + local LEADERBOARD_PLACE_NAMES = { '1st', '2nd', @@ -1051,6 +1053,7 @@ end ---This function is basically a workaround for the ForceRender call local function drawRadar() + if not songselect_showEffectRadar then return end if isFilterWheelActive or transitionLeaveScale ~= 0 then return end local x, y = 375, 650