From eb784e01a7e685fab5f0eadc8f752dd3aee8e73f Mon Sep 17 00:00:00 2001 From: infernoangel301ut <97916728+infernoangel301ut@users.noreply.github.com> Date: Sun, 1 May 2022 13:08:42 +0200 Subject: [PATCH] updated downnote script to make it work on antivoid --- .../addToNoteTypes/DOWNNOTE.lua | 51 +++++++++---------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/modsFolderThingies/addToNoteTypes/DOWNNOTE.lua b/modsFolderThingies/addToNoteTypes/DOWNNOTE.lua index f185dc6..4240886 100644 --- a/modsFolderThingies/addToNoteTypes/DOWNNOTE.lua +++ b/modsFolderThingies/addToNoteTypes/DOWNNOTE.lua @@ -3,48 +3,45 @@ function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'DOWNNOTE' then --Check if the note on the chart is a Bullet Note setPropertyFromGroup('unspawnNotes', i, 'texture', 'DOWNNOTE_assets'); --Change texture - setPropertyFromGroup('unspawnNotes', i, 'noteSplashHue', 0); --custom notesplash color, why not - setPropertyFromGroup('unspawnNotes', i, 'noteSplashSat', -20); - setPropertyFromGroup('unspawnNotes', i, 'noteSplashBrt', 1); if getPropertyFromGroup('unspawnNotes', i, 'mustPress') then --Doesn't let Dad/Opponent notes get ignored setPropertyFromGroup('unspawnNotes', i, 'ignoreNote', true); --Miss has penalties end + + setPropertyFromGroup('unspawnNotes', i, 'colorSwap.hue', 0) + setPropertyFromGroup('unspawnNotes', i, 'colorSwap.saturation', 0) + setPropertyFromGroup('unspawnNotes', i, 'colorSwap.saturation', 0) end end end function goodNoteHit(id, direction, noteType, isSustainNote) if noteType == 'DOWNNOTE' then - characterPlayAnim('boyfriend', 'hurt', true); - setProperty('boyfriend.specialAnim', true); + characterPlayAnim('boyfriend', 'hurt', true); + setProperty('boyfriend.specialAnim', true); - if getPropertyFromClass('ClientPrefs', 'downScroll') then - setPropertyFromClass("ClientPrefs", "downScroll", false) - doTweenY("tween10", "healthBar", screenHeight * 0.89 ,0.25, 'quadOut') - doTweenY("tween11down", "scoreTxt", screenHeight * 0.89 + 36, 0.25, "quadOut") - setProperty("strumLine.y", 50) - doTweenY("tween8", 'timeTxt', 20 ,0.25, 'quadOut') - setProperty("timeTxt.y", 20) - doTweenY("tween9", 'timeBar', 20 + getProperty('timeTxt.height') / 4,0.25, 'quadOut') - - for i = 1, 2 do doTweenY("tweenicon"..i, "iconP"..i, screenHeight * 0.9 - (getProperty('iconP'..i..".height") / 2) ,0.25, 'quadOut') end - - for i = 0, 8 do noteTweenY("tween"..i, i, 50, 0.25, 'quadOut') end - else + if getPropertyFromClass('ClientPrefs', 'downScroll') then + setPropertyFromClass("ClientPrefs", "downScroll", false) + setProperty("healthBar.y", screenHeight * 0.89) + setProperty("scoreTxt.y", screenHeight * 0.89 + 36) + setProperty("strumLine.y", 50) + setProperty("timeTxt.y", 20) + setProperty('timeBar.y', 20 + getProperty('timeTxt.height') / 4) + + for i = 1, 3 do doTweenY("tweenicon"..i, "iconP"..i, screenHeight * 0.9 - (getProperty('iconP'..i..".height") / 2) ,0.25, 'quadOut') end + + for i = 0, 12 do noteTweenY("tween"..i, i, 50, 0.25, 'quadOut') end + else setPropertyFromClass("ClientPrefs", "downScroll", true) - setProperty("strumLine.y", screenHeight - 150) - - doTweenY("tween10down", "healthBar", 54 ,0.25, 'quadOut') - doTweenY("tween11down", "scoreTxt", 94, 0.25, "quadOut") - + setProperty("healthBar.y", 54) + setProperty("scoreTxt.y", 94) setProperty("timeTxt.y", screenHeight - 45) - doTweenY("tween9down", 'timeBar', screenHeight - 45 + getProperty('timeTxt.height') / 4,0.25, 'quadOut') + setProperty('timeBar.y', screenHeight - 45 + getProperty('timeTxt.height') / 4) - for i = 1, 2 do doTweenY("tweenicon"..i.."down", "iconP"..i, 50 - (getProperty('iconP'..i..".height") / 2) ,0.25, 'quadOut') end + for i = 1, 3 do doTweenY("tweenicon"..i.."down", "iconP"..i, 50 - (getProperty('iconP'..i..".height") / 2) ,0.25, 'quadOut') end - for i = 0, 8 do noteTweenY("tween"..i.."down", i, getProperty('strumLine.y'), 0.25, 'quadOut') end - end + for i = 0, 12 do noteTweenY("tween"..i.."down", i, getProperty('strumLine.y'), 0.25, 'quadOut') end + end end end \ No newline at end of file