Effect Radar Implementation v1 #46

Merged
hersi merged 12 commits from feature/radar into master 2023-11-23 07:41:15 +01:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 0951fc029c - Show all commits

View File

@ -97,5 +97,14 @@
"label": "Show debug information (sometimes in the middle of the screen when you're playing)", "label": "Show debug information (sometimes in the middle of the screen when you're playing)",
"type": "bool", "type": "bool",
"default": false "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 scoreNumbers = Numbers.load_number_image("score_num")
local difficultyNumbers = Numbers.load_number_image("diff_num") local difficultyNumbers = Numbers.load_number_image("diff_num")
local songselect_showEffectRadar = game.GetSkinSetting("songselect_showEffectRadar") or false
local LEADERBOARD_PLACE_NAMES = { local LEADERBOARD_PLACE_NAMES = {
'1st', '1st',
'2nd', '2nd',
@ -1051,6 +1053,7 @@ end
---This function is basically a workaround for the ForceRender call ---This function is basically a workaround for the ForceRender call
local function drawRadar() local function drawRadar()
if not songselect_showEffectRadar then return end
if isFilterWheelActive or transitionLeaveScale ~= 0 then return end if isFilterWheelActive or transitionLeaveScale ~= 0 then return end
local x, y = 375, 650 local x, y = 375, 650