-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchange scroll.lua
57 lines (42 loc) · 2.6 KB
/
change scroll.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
function onEvent(n, v1, v2)
if n == "change scroll" then
change()
end
end
function change()
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')
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
setPropertyFromGroup('playerStrums', 0, 'direction', -90);
setPropertyFromGroup('playerStrums', 1, 'direction', -90);
setPropertyFromGroup('playerStrums', 2, 'direction', -90);
setPropertyFromGroup('playerStrums', 3, 'direction', -90);
setPropertyFromGroup('opponentStrums', 0, 'direction', -90);
setPropertyFromGroup('opponentStrums', 1, 'direction', -90);
setPropertyFromGroup('opponentStrums', 2, 'direction', -90);
setPropertyFromGroup('opponentStrums', 3, 'direction', -90);
else
setPropertyFromClass("ClientPrefs", "downScroll", true)
setProperty("strumLine.y", screenHeight - 150)
doTweenY("tween10down", "healthBar", 54 ,0.25, 'quadOut')
doTweenY("tween11down", "scoreTxt", 94, 0.25, "quadOut")
doTweenY("tween8down", 'timeTxt', screenHeight - 45,0.25, 'quadOut')
doTweenY("tween9down", 'timeBar', screenHeight - 45 + getProperty('timeTxt.height') / 4,0.25, 'quadOut')
for i = 1, 2 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
setPropertyFromGroup('playerStrums', 0, 'direction', 90);
setPropertyFromGroup('playerStrums', 1, 'direction', 90);
setPropertyFromGroup('playerStrums', 2, 'direction', 90);
setPropertyFromGroup('playerStrums', 3, 'direction', 90);
setPropertyFromGroup('opponentStrums', 0, 'direction', 90);
setPropertyFromGroup('opponentStrums', 1, 'direction', 90);
setPropertyFromGroup('opponentStrums', 2, 'direction', 90);
setPropertyFromGroup('opponentStrums', 3, 'direction', 90);
end
end