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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -2,15 +2,55 @@ local player = Var "Player"
local blinkTime = 1.2
local barWidth = 256;
local barHeight = 32;
local c
local t = Def.ActorFrame{
Def.Quad{
InitCommand=cmd(diffuse,color("#666666");zoomto,barWidth,barHeight);
local function CreateLives(numLives)
local t = {};
for i=1,numLives do
t[#t+1] = Def.Quad {
Name=i;
OnCommand=cmd(zoom,1024);
};
end
return t
end
local t = Def.ActorFrame {
Def.ActorFrame {
Name="LifeContainer";
};
Def.Quad{
InitCommand=cmd(diffuse,color("#000000");zoomto,barWidth,barHeight;fadetop,1);
};
LoadActor("_lives")..{
InitCommand=function(self)
c = self:GetChildren();
end;
BeginCommand=function(self,param)
MESSAGEMAN:Broadcast("SystemMessage",{ Message = "TEST", NoAnimate = true});
local c = self:GetChildren();
local screen = SCREENMAN:GetTopScreen();
local lifemeter = screen:GetLifeMeter(player);
MESSAGEMAN:Broadcast("SystemMessage",{ Message = "TEST2", NoAnimate = true});
local TotalLives = lifemeter:GetTotalLives();
local CurLives = lifemeter:GetLivesLeft();
MESSAGEMAN:Broadcast("SystemMessage",{ Message = "ASSIGN CONTAINERS", NoAnimate = true});
c.LifeContainer[#c.LifeContainer+1] = CreateLives(TotalLives);
MESSAGEMAN:Broadcast("SystemMessage",{ Message = "LIVES = " .. TotalLives .. " | CUR = " .. CurLives .. " | ACTORS: " .. self:GetNumChildren(), NoAnimate = true});
end;
LifeChangedMessageCommand=function(self,param)
if param.Player == player then
return
end
end;
StartCommand=function(self,param)
if param.Player == player then
return
end
end;
FinishCommand=function(self,param)
if param.Player == player then
return
end
end;
--[[ LoadActor("_lives")..{
InitCommand=cmd(pause;horizalign,left;x,-(barWidth/2));
BeginCommand=function(self,param)
local screen = SCREENMAN:GetTopScreen();
@@ -40,7 +80,7 @@ local t = Def.ActorFrame{
end
end;
FinishCommand=cmd(playcommand,"Start");
};
}; ]]
};
@@ -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
@@ -0,0 +1,7 @@
local t = Def.ActorFrame {};
t[#t+1] = Def.Quad {
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH+1,32;diffuse,Color.Black);
};
return t;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

@@ -3,9 +3,9 @@ local t = Def.ActorFrame {};
t[#t+1] = Def.Quad {
InitCommand=cmd(vertalign,top;zoomto,SCREEN_WIDTH+1,48;diffuse,Color.Black);
}
t[#t+1] = LoadActor("Header") .. {
--[[ t[#t+1] = LoadActor("Header") .. {
InitCommand=cmd(vertalign,top;zoomtowidth,SCREEN_WIDTH+1;diffuse,color("#ffd400"));
};
}; ]]
--[[ t[#t+1] = LoadActor("_texture stripe") .. {
InitCommand=cmd(vertalign,top;zoomto,SCREEN_WIDTH+64,44;customtexturerect,0,0,SCREEN_WIDTH+64/8,44/32);
OnCommand=cmd(fadebottom,0.8;texcoordvelocity,1,0;skewx,-0.0025;diffuse,Color("Black");diffusealpha,0.235);