add effect radar toggle in skin settings

This commit is contained in:
Hersi 2023-11-23 07:29:10 +01:00
parent bc191e45f0
commit 0951fc029c
2 changed files with 12 additions and 0 deletions

View File

@ -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
}
}

View File

@ -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