-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNoteSkin.lua
97 lines (85 loc) · 2.16 KB
/
NoteSkin.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
local noteskin = ... or {}
local OldRedir = noteskin.Redir
noteskin.Redir = function(sButton, sElement)
sButton, sElement = OldRedir(sButton, sElement)
--Point the head files back to the tap note
if sElement == "Tap Fake"
or string.find(sElement, "Head")
or string.find(sElement, "Tap Note") then
sButton = ""
sElement = "Tap Note"
end
if string.find(sElement, "Tap Explosion") then
sElement = "Tap Explosion Bright"
sButton = ""
end
if string.find(sElement, "Receptor")
or string.find(sElement, "Active")
or string.find(sElement, "Inactive")
or string.find(sElement, "Tap Mine") then
sButton = ""
end
if string.find(sElement, "Roll") then
if string.find(sElement, "Bottomcap") then
if string.find(sElement, "Active") then
sElement = "Hold Bottomcap Active"
else
sElement = "Hold Bottomcap Inactive"
end
end
if string.find(sElement, "Topcap") then
if string.find(sElement, "Active") then
sElement = "Hold Topcap Active"
else
sElement = "Hold Topcap Inactive"
end
end
end
return sButton, sElement
end
local OldFunc = noteskin.Load
function noteskin.Load()
local t = OldFunc()
-- The main "Explosion" part just loads other actors; don't rotate
-- it. The "Hold Explosion" part should not be rotated.
if Var "Element" == "Explosion"
or Var "Element" == "Roll Explosion" then
t.BaseRotationZ = nil
end
return t
end
noteskin.PartsToRotate = {
["Receptor"] = false,
["Tap Note"] = true,
["Tap Lift"] = false,
["Tap Fake"] = true,
["Ready Receptor"] = false,
["Tap Explosion Bright"] = true,
["Tap Explosion Dim"] = true,
["Hold Head Active"] = true,
["Hold Head Inactive"] = true,
["Roll Head Active"] = true,
["Roll Head Inactive"] = true
}
noteskin.Rotate = {
Up = 180,
Down = 0,
Left = 90,
Right = -90,
UpLeft = 135,
UpRight = 225
}
noteskin.Blank = {
["Hold Explosion"] = true,
["Roll Explosion"] = true,
["Hold Topcap Active"] = true,
["Hold Topcap Inactive"] = true,
["Roll Topcap Active"] = true,
["Roll Topcap Inactive"] = true,
["Hold Tail Active"] = true,
["Hold Tail Inactive"] = true,
["Roll Tail Active"] = true,
["Roll Tail Inactive"] = true,
["Tap Lift"] = true
}
return noteskin