Skip to content

Commit

Permalink
updated downnote script to make it work on antivoid
Browse files Browse the repository at this point in the history
  • Loading branch information
infernoangel301ut committed May 1, 2022
1 parent 5005f05 commit eb784e0
Showing 1 changed file with 24 additions and 27 deletions.
51 changes: 24 additions & 27 deletions modsFolderThingies/addToNoteTypes/DOWNNOTE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eb784e0

Please sign in to comment.