Radar LAG in songselect #48

Merged
hersi merged 2 commits from feature/radar into master 2023-11-23 12:23:22 +01:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit d0b1bcfb79 - Show all commits

View File

@ -114,7 +114,7 @@ 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 showEffectRadar = game.GetSkinSetting("songselect_showEffectRadar") or false
local LEADERBOARD_PLACE_NAMES = { local LEADERBOARD_PLACE_NAMES = {
'1st', '1st',
@ -1053,7 +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 not 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
@ -1125,7 +1125,7 @@ render = function (deltaTime)
Sound.stopMusic() Sound.stopMusic()
if updateRadar then if showEffectRadar and updateRadar then
local difficultyNames = {"nov","adv","exh","mxm","inf","grv","hvn","vvd","exc"} local difficultyNames = {"nov","adv","exh","mxm","inf","grv","hvn","vvd","exc"}
local diff = songwheel.songs[selectedIndex].difficulties[selectedDifficulty].difficulty + 1 local diff = songwheel.songs[selectedIndex].difficulties[selectedDifficulty].difficulty + 1
radar:updateGraph(songwheel.songs[selectedIndex].path, difficultyNames[diff]) radar:updateGraph(songwheel.songs[selectedIndex].path, difficultyNames[diff])