From 2292908baf6997e29d345538aa560d95f2a6ae43 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Fri, 6 Aug 2021 20:18:18 +0200 Subject: [PATCH] + bars to songwheel --- scripts/components/bars.lua | 30 ++++++++++++++++-------------- scripts/songselect/songwheel.lua | 5 ++++- textures/song_select/score_bg.png | Bin 1721 -> 0 bytes 3 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 textures/song_select/score_bg.png diff --git a/scripts/components/bars.lua b/scripts/components/bars.lua index d7cff0e..01deea4 100644 --- a/scripts/components/bars.lua +++ b/scripts/components/bars.lua @@ -116,6 +116,7 @@ local progressTransitions = function () end local draw = function () + gfx.Save() resx, resy = game.GetResolution(); -- Draw top background @@ -125,28 +126,29 @@ local draw = function () gfx.Fill(); gfx.ClosePath(); - -- Draw the 'glow' effect - gfx.LoadSkinFont("digital/digital.ttf"); - gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE); - gfx.FontSize(47); - gfx.FillColor(128,200,255,190); + -- -- Draw the 'glow' effect + -- gfx.LoadSkinFont("Digital-Serial-Bold.ttf"); + -- gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE); + -- gfx.FontSize(47); + -- gfx.FillColor(128,200,255,190); - gfx.Text(titleText, resx/2+1, TOP_BAR_HEIGHT/2+1); - gfx.Text(titleText, resx/2+1, TOP_BAR_HEIGHT/2-1); - gfx.Text(titleText, resx/2-1, TOP_BAR_HEIGHT/2+1); - gfx.Text(titleText, resx/2-1, TOP_BAR_HEIGHT/2+1); + -- gfx.Text(titleText, resx/2+1, TOP_BAR_HEIGHT/2+1); + -- gfx.Text(titleText, resx/2+1, TOP_BAR_HEIGHT/2-1); + -- gfx.Text(titleText, resx/2-1, TOP_BAR_HEIGHT/2+1); + -- gfx.Text(titleText, resx/2-1, TOP_BAR_HEIGHT/2+1); - -- Draw top label + -- -- Draw top label - gfx.FillColor(255,255,255); - gfx.Text(titleText, resx/2, TOP_BAR_HEIGHT/2); - -- Draw the top label lines - drawTopBarLines() + -- gfx.FillColor(255,255,255); + -- gfx.Text(titleText, resx/2, TOP_BAR_HEIGHT/2); + -- -- Draw the top label lines + -- drawTopBarLines() gfx.LoadSkinFont("NotoSans-Regular.ttf"); drawBottomBar(); progressTransitions(); + gfx.Restore() end return { diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index 1f3d426..4a2a122 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -1,5 +1,6 @@ local Easing = require('common.easings'); +local Bars = require('components.bars'); local backgroundImage = gfx.CreateSkinImage("song_select/bg.png", 1) local dataPanelImage = gfx.CreateSkinImage("song_select/data_bg_overlay.png", 1) @@ -513,13 +514,15 @@ render = function (deltaTime) drawSearch(); + Bars.draw(); + gfx.BeginPath(); gfx.FontSize(18) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_TOP) local debugScrollingUp= "FALSE" if scrollingUp then debugScrollingUp = "TRUE" end; - gfx.Text('DELTA: ' .. deltaTime .. ' // SELECTED_INDEX: ' .. selectedIndex .. ' // SELECTED_DIFF: ' .. selectedDifficulty .. ' // SCROLLING_UP: ' .. debugScrollingUp .. ' // AC_TS: ' .. transitionAfterscrollScale, 8, 8); + gfx.Text('S_I: ' .. selectedIndex .. ' // S_D: ' .. selectedDifficulty .. ' // S_UP: ' .. debugScrollingUp .. ' // AC_TS: ' .. transitionAfterscrollScale, 8, 8); end set_index = function(newIndex) diff --git a/textures/song_select/score_bg.png b/textures/song_select/score_bg.png deleted file mode 100644 index b1a78afe9e8f9c0ba04efb9d86e44e9224ea3a8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1721 zcmV;q21fabP)h6y2H zXVCr_W3v?f|sa$zE5Qwmmkptq{`t!i};e+|azZ*~(2Lj;le-P8s>GXGfeSKd9gb-Kd zdr#Vh<(#7yvY8P2$*cV^hb90{$Dl!5xTw+z`9uiuDVM-WIxssQc3@DURqZWHHAv{y zvY>(O+NJ^Xzp7+Jz>c$CCu+70Iv^(YmNE|3x{dxMRtZd5)Z}Y4LF-rnqI|Ln#nV*} zYHtI!gtgk4vthn;ShHy0WztI*R6=S(2nMESQ^=Eo8c@4|b@wMMnKR>Hh8fGET+ldS z)ILjlVY`b}f?5x%qge$iWYAJ&cLB`+Q#&oaP?*ZIGL+YNf943Xk!4{mU-@daYmFuI zwV>{eChl<>$*8ZQ2lZR@pni)U)Nj#)`Yn1;zeNw~x9CCr7OxG|iC)02#87k?lauc- zE>r2tj1CPA?hV4y#&ucNLydL8xKGFc`R3?mp0 zKxmo>1%qrTIs`&qUYN()>Wbh>@qKNF9y|7--g9{4#+{nw6b1xCa^OhWJ(xrdik=k0 z$U!A$8g$}}PDb&B3=H%m66r@Klg2=#AJ?xXk;~e*F0HOHR$#?Mlr4w8CPs*kx5!Z~JzT z>C)mhKYH}&)w#L3yYy|&m(YdZws|ZTyD~R7M@rHauT-uivVR zTnDh}>5Sg^J5vj}Ntu+-3C}|Rx?L5SFsiG35PHj#(0`WeBG+Xm2}!-}JDzK!ckX7J zM$!#~r=ZKLts!X$$}`Z_`>iA4m9J^{9<+y~p<>4`Ml@Y!@QwZYjFVs(2$-hd(7#L< zpNq3kpcQcK=6c&mI6ZTWkYi&9+0&;Rf}o+SoPJXQN{{80l=-%A7ZT`MBt_uDg$qaMkLl@Y%39QPbv3H(wyd_EMFPP8tLr^~Wfk?& P00000NkvXXu0mjfNrF@~