[ create a new paste ] login | about

Link: http://codepad.org/aezIGt4s    [ raw code | fork ]

Lua, pasted on May 2:
1
2
3
4
5
6
7
8
9
10
11
12
for i=1, 6 do
	t[t+1] = LoadActor( "choice_frame.png" ) .. {
		InitCommand=cmd(Center;addx,146;addy,-176+(32*(i-1)));
		OnCommand=cmd(playcommand,"FocusIndex";rotationz,(i%2 == 1) and -2 or 2;zoomx,0;sleep,0.15;decelerate,0.083;zoomx,1.1;accelerate,0.016;zoomx,1);
		MenuSelectionChangedMessageCommand=cmd(stoptweening;playcommand,"FocusIndex");
		FocusIndexCommand=function(self)
			local player = GAMESTATE:GetMasterPlayerNumber();
			local selection = SCREENMAN:GetTopScreen():GetSelectionIndex(player)+1;
			self:diffuse(selection == i and color("1,1,1,1") or color("0.3,0.3,0.3,1"))
		end;
	};
end


Create a new paste based on this one


Comments: