updates to midi-note and midi-vivid from saturn

This commit is contained in:
AJ Kelly
2010-08-18 14:16:57 -05:00
parent 5bc199c9b7
commit 23cd195157
33 changed files with 150 additions and 7 deletions
+21 -2
View File
@@ -14,7 +14,7 @@ ret.RedirTable =
local OldRedir = ret.Redir;
ret.Redir = function(sButton, sElement)
sButton, sElement = OldRedir(sButton, sElement);
-- sButton, sElement = OldRedir(sButton, sElement);
-- Instead of separate hold heads, use the tap note graphics.
if sElement == "Hold Head Inactive" or
@@ -30,16 +30,23 @@ ret.Redir = function(sButton, sElement)
return sButton, sElement;
end
-- local OldRedir = ret.Redir;
-- ret.Redir = function(sButton, sElement)
-- sButton = ret.RedirTable[sButton];
-- return sButton, sElement;
-- end
-- To have separate graphics for each hold part:
local OldRedir = ret.Redir;
ret.Redir = function(sButton, sElement)
-- Redirect non-hold, non-roll parts.
if string.find(sElement, "hold") then
if string.find(sElement, "hold") or string.find(sElement, "roll") then
return sButton, sElement;
end
return OldRedir(sButton, sElement);
end
--[[
local OldFunc = ret.Load;
function ret.Load()
local t = OldFunc();
@@ -52,6 +59,18 @@ function ret.Load()
end
return t;
end
]]
local OldFunc = ret.Load;
function ret.Load()
local t = OldFunc();
--Explosion should not be rotated; it calls other actors.
if Var "Element" == "Explosion" then
t.BaseRotationZ = nil;
end
return t;
end
ret.PartsToRotate =
{