From c0498446c8aa80bf306579cf4da5b279a5d46842 Mon Sep 17 00:00:00 2001 From: RealFD Date: Mon, 9 May 2022 19:54:26 +0200 Subject: [PATCH] minor changes --- scripts/gameplay/song_panel.lua | 25 ++++++++++++++++++++++++- scripts/result.lua | 4 ++-- scripts/shared/idol.lua | 13 ------------- 3 files changed, 26 insertions(+), 16 deletions(-) delete mode 100644 scripts/shared/idol.lua diff --git a/scripts/gameplay/song_panel.lua b/scripts/gameplay/song_panel.lua index 6d2f90f..fb7c63e 100644 --- a/scripts/gameplay/song_panel.lua +++ b/scripts/gameplay/song_panel.lua @@ -99,11 +99,34 @@ local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, pro 0 ); - if gameplay.autoplay then + if gameplay.autoplay and gameplay.demoMode == false and gameplay.practice_setup == false then + gfx.BeginPath(); gfx.ImageRect(0,y+310,245,67,notify,1,0); gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) renderOutlinedText(30,y+354.5, "AUTOPLAY IS ENABLED", 1.5); + + elseif gameplay.demoMode == true and gameplay.practice_setup == false then + + gfx.BeginPath(); + gfx.ImageRect(0,y+310,245,67,notify,1,0); + gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) + renderOutlinedText(30,y+354.5, "DEMO MODE IS ENABLED", 1.5); + + elseif gameplay.scoreReplays and gameplay.demoMode == false and gameplay.practice_setup == false then + + gfx.BeginPath(); + gfx.ImageRect(0,y+310,245,67,notify,1,0); + gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) + renderOutlinedText(30,y+354.5, "REPLAY MODE IS ENABLED", 1.5); + + elseif gameplay.practice_setup == true then + + gfx.BeginPath(); + gfx.ImageRect(0,y+310,245,67,notify,1,0); + gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) + renderOutlinedText(30,y+354.5, "PRACTICE MODE IS ENABLED", 1.5); + end -- Draw diff rectangle diff --git a/scripts/result.lua b/scripts/result.lua index 1bf7fd9..02bc25c 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -518,8 +518,8 @@ local drawRightPanelContent = function() gfx.ClosePath(); gfx.FillColor(255, 255, 255, 255); gfx.FontSize(19.25) - gfx.Text(Fillmihd.."ms",timmingX + 420,timmingY + 9 + detailTextMargin) - gfx.Text(Fillmhd.."ms",timmingX + 420,timmingY + 9 + 25 + detailTextMargin) + gfx.Text(Fillmihd.."ms",timmingX + 420,timmingY + 9 + 25 + detailTextMargin) + gfx.Text(Fillmhd.."ms",timmingX + 420,timmingY + 9 + detailTextMargin) gfx.FontSize(24) diff --git a/scripts/shared/idol.lua b/scripts/shared/idol.lua deleted file mode 100644 index 8367f5c..0000000 --- a/scripts/shared/idol.lua +++ /dev/null @@ -1,13 +0,0 @@ -local idols ={ - -- SDVX IV - nearnoah_summer={"crew/anim/nearnoah_summer", 1 / 30, 0, true} - -- SDVX V - - -- SDVX III -} - - - - - -return idols \ No newline at end of file