local sButton = Var "Button";

local Colour = {
	Up = "0,1,1,1",
	Down = "0,1,1,1",
	Left = "1,0,0,1",
	Right = "1,0,0,1",
};

local t = Def.ActorFrame {
	OnCommand=function()
		getc = SCREENMAN:GetTopScreen():GetChild("PlayerP1"):GetChild("NoteField"):get_column_actors()
		for i2 in pairs(getc) do
			getc[i2]:rotationz(90);
			getc[i2]:rotationy(180);
			getc[i2]:y(64+(-64*i2));
			getc[i2]:x(128);
		end;
	end;
};

if sButton == "Left" then
	t[#t+1] = Def.Quad {
		OnCommand=cmd(valign,0;y,-64;diffuse,color("0,0,0,0.8");scaletoclipped,128,9001);
	};
end;

t[#t+1] = Def.ActorFrame {
	Def.Quad {
		OnCommand=cmd(valign,0;y,-64;diffuse,color(Colour[sButton]);scaletoclipped,128,512;fadebottom,1;diffusealpha,0);
		PressCommand=cmd(diffusealpha,1);
		LiftCommand=cmd(diffusealpha,0);
	};
	LoadActor("_Receptor");
};

return t;
