smsvn -> ssc-hg glue: rearrange directory structure

This commit is contained in:
Devin J. Pohly
2013-06-10 15:38:43 -04:00
parent 51576d5942
commit 80057f53cd
3362 changed files with 0 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
local ret = ... or {}
ret.Redir = function(sButton, sElement)
-- To redirect files for Up to Down:
-- if sButton == "Up" then sButton = "Down"; end
return sButton, sElement;
end
ret.Rotate =
{
};
ret.PartsToRotate =
{
};
ret.Blank =
{
-- To blank tap notes:
-- ["tap note"] = true,
};
local function func()
local sButton = Var "Button";
local sElement = Var "Element";
if ret.Blank[sElement] then
-- Return a blank element. If SpriteOnly is set,
-- we need to return a sprite; otherwise just return
-- a dummy actor.
local t;
if Var "SpriteOnly" then
t = LoadActor( "_blank" );
else
t = Def.Actor {};
end
return t .. {
cmd(hidden,true);
};
end
local sButtonToLoad, sElementToLoad = ret.Redir(sButton, sElement);
assert( sButtonToLoad );
assert( sElementToLoad );
local sPath = NOTESKIN:GetPath( sButtonToLoad, sElementToLoad );
local t = LoadActor( sPath );
if ret.PartsToRotate[sElement] then
t.BaseRotationZ = ret.Rotate[sButton];
end
return t;
end
-- This is the only required function.
ret.Load = func;
-- Use this to override the game types' default Load() functions.
ret.CommonLoad = func;
return ret;