theme changes (incomplete)

This commit is contained in:
Jonathan Payne
2012-12-27 21:47:29 -08:00
parent 380bce948e
commit 4da45222aa
10 changed files with 77 additions and 32 deletions
@@ -3,20 +3,25 @@ local colors = {
Easy = color("#00ff00"),
Normal = color("#feee00"),
Hard = color("#feee00"),
Rave = color("#c44dff"),
Rave = color("#db93ff"),
Nonstop = color("#00ffff"),
Oni = color("#d70b8c"),
Endless = color("748392"),
Endless = color("#b4c3d2"),
};
local t = Def.ActorFrame {};
-- Background!
t[#t+1] = Def.ActorFrame {
-- GainFocusCommand=cmd(visible,true);
-- LoseFocusCommand=cmd(visible,false);
LoadActor(THEME:GetPathG("ScreenSelectPlayMode","BackgroundFrame")) .. {
InitCommand=cmd(diffuse,Color("Black");diffusealpha,0.7);
GainFocusCommand=cmd(visible,true);
LoseFocusCommand=cmd(visible,false);
};
LoadActor("_HighlightFrame") .. {
InitCommand=cmd(diffuse,ModeIconColors[gc:GetName()];diffusealpha,0);
GainFocusCommand=cmd(stoptweening;linear,0.125;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;linear,0.125;diffusealpha,0);
GainFocusCommand=cmd(finishtweening;diffusealpha,1;glow,Color.Alpha(Color.White,1);linear,0.25;glow,Color.Invisible);
LoseFocusCommand=cmd(finishtweening;diffusealpha,0;glow,Color.Invisible);
OffFocusedCommand=cmd(finishtweening;glow,Color("White");decelerate,1;glow,Color("Invisible"));
};
};
@@ -60,6 +65,6 @@ t[#t+1] = Def.ActorFrame {
LoseFocusCommand=cmd(stoptweening;x,320;accelerate,0.25;diffusealpha,0;x,320+16;diffusealpha,0);
};
};
-- t.GainFocusCommand=cmd(visible,true);
-- t.LoseFocusCommand=cmd(visible,false);
t.GainFocusCommand=cmd(finishtweening;visible,true;zoom,1.1;bounceend,0.25;zoom,1);
t.LoseFocusCommand=cmd(finishtweening;visible,false;zoom,1);
return t