From ba28b735da4d0060ac9f41cfe93af28f9272142a Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Thu, 29 Jul 2021 20:32:21 +0200 Subject: [PATCH] - gap between songs at songselect & - debug logs --- scripts/songselect/songwheel.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index d29556b..cab520b 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -1,4 +1,4 @@ -game.Log("Something went wrong!", game.LOGGER_ERROR) +-- game.Log("Something went wrong!", game.LOGGER_ERROR) --Horizontal alignment TEXT_ALIGN_LEFT = 1 @@ -391,7 +391,7 @@ function deep_to_string(t) end draw_song = function(song, x, y, w, h, selected) - game.Log("draw_song", game.LOGGER_ERROR); + -- game.Log("draw_song", game.LOGGER_ERROR); local diffIndex = math.min(selectedDiff, #song.difficulties) local difficulty = song.difficulties[diffIndex] @@ -401,7 +401,7 @@ draw_song = function(song, x, y, w, h, selected) local clearLampA = 100 if difficulty ~= nil then - game.Log(deep_to_string(difficulty), game.LOGGER_ERROR); + -- game.Log(deep_to_string(difficulty), game.LOGGER_ERROR); if difficulty.scores[1] ~= nil then if difficulty.topBadge == 1 then -- fail/played clearLampR = 255 @@ -435,7 +435,7 @@ draw_song = function(song, x, y, w, h, selected) end end end - game.Log(" past difficulty check", game.LOGGER_ERROR); + -- game.Log(" past difficulty check", game.LOGGER_ERROR); check_or_create_cache(song) gfx.BeginPath() @@ -705,7 +705,7 @@ draw_songwheel = function(x,y,w,h) for i = math.max(selectedIndex - wheelSize/2, 1), math.max(selectedIndex - 1,0) do local song = songwheel.songs[i] local xpos = x + width - local offsetY = (selectedIndex - i + ioffset/2) * ( height * 1.05) + local offsetY = (selectedIndex - i + ioffset/2) * ( height * 1.0) local ypos = y+((h/2 - height/2) - offsetY) draw_song(song, xpos, ypos, width, height) end @@ -714,7 +714,7 @@ draw_songwheel = function(x,y,w,h) for i = math.min(selectedIndex + wheelSize/2, #songwheel.songs), selectedIndex + 1,-1 do local song = songwheel.songs[i] local xpos = x + width - local offsetY = (selectedIndex - i + ioffset/2) * ( height * 1.05) + local offsetY = (selectedIndex - i + ioffset/2) * ( height * 1.0) local ypos = y+((h/2 - height/2) - (selectedIndex - i) - offsetY) local alpha = 255 - (selectedIndex - i + ioffset) * 31 draw_song(song, xpos, ypos, width, height) @@ -801,7 +801,7 @@ render = function(deltaTime) timer = (timer + deltaTime) timer = timer % 2 resx,resy = game.GetResolution(); - game.Log("res :: " .. resx .. "," .. resy, game.LOGGER_ERROR); + -- game.Log("res :: " .. resx .. "," .. resy, game.LOGGER_ERROR); adjustScreen(resx,resy); gfx.BeginPath(); gfx.LoadSkinFont("dfmarugoth.ttf");